Parser accepts an empty element or attribute name

Open Beginner friendly
#1,042 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@ychampion is already working on this.

Since Nov 14, 2026.

  • #1043 by @ychampion — open

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
68/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
rust
Domain
backend

Research direction

Start by tracing how the parser handles element and attribute names, then check the serialization paths that produce the two malformed examples in the issue. Add coverage for parsing both empty names and confirm the parser rejects them; done means both reproductions fail as malformed XML while valid names continue to parse.

Written by the indexing model from the issue text.

Description

The parser accepts an empty element or attribute name, which is malformed XML. This can be reproduced by serializing a map with an empty key, which writes <root></></root>, and by serializing an element with an empty attribute name, which writes <root ="1"/>.

Dominant language
Rust
Stars
1.6k
Forks
299
Avg merge
2d 4h
Merged PRs (30d)
9

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from tafia/quick-xml

All issues in tafia/quick-xml

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.