# CVE-2026-61727: Stack overflow from unbounded recursion in DTD content-model parsing

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **Aliases:** GHSA-7jmw-29gc-ffx4, RUSTSEC-2026-0599
- **Published:** 2026-07-20T12:00:00.000Z
- **Modified:** 2026-11-24T22:00:02.131Z

## Who should check

- Projects that depend on crates.io package xmloxide (\>= 0.0.0-0, \< 0.4.4)

## Description

\`xmloxide\`'s DTD parser recursed without a depth bound when parsing the
parenthesised content model of an \`\<!ELEMENT\>\` declaration. A small document
whose internal DTD subset contains many nested \`(\` drives unbounded mutual
recursion between \`DtdParser::parse\_content\_particle\` and
\`DtdParser::parse\_content\_spec\_group\`, exhausting the stack and aborting the
process.

The internal DTD subset is parsed during ordinary document parsing, so this is
reachable through the default parse entry points (for example
\`Document::parse\_str\`) on any input that carries a \`DOCTYPE\`. The existing
\`ParseOptions::max\_depth\` limit does not prevent it: it bounds element nesting,
not DTD content-model nesting. A stack overflow cannot be caught as an error,
so any process that parses attacker-controlled XML with \`xmloxide\` can be
crashed with a small payload.

Fixed in 0.4.4: a parenthesis-nesting depth counter is threaded through the
content-model parser, and nesting deeper than 256 levels is rejected with a
normal \`ParseError\`. Well-formed DTDs are unaffected.

Applications that cannot upgrade should reject or strip the \`DOCTYPE\` from
untrusted input before parsing.

## Affected and fixed versions

- crates.io `xmloxide`: affected \>= 0.0.0-0, \< 0.4.4; fixed 0.4.4 (osv)

## Mitigation

- Upgrade xmloxide to 0.4.4 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-61727. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-61727.md
Affected: xmloxide >= 0.0.0-0, < 0.4.4
Fixed in: 0.4.4

Steps:
1. Search this machine and project for xmloxide (crates.io): dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-61727 being exploited?

There is no confirmed exploitation: CVE-2026-61727 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

### How serious is CVE-2026-61727?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-61727?

xmloxide \>= 0.0.0-0, \< 0.4.4.

### Is there a fix for CVE-2026-61727?

Yes. Fixed in 0.4.4. Upgrade xmloxide to 0.4.4 or later.

### How do I check if I'm affected by CVE-2026-61727?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://rustsec.org/advisories/RUSTSEC-2026-0599.html>
- patch: <https://github.com/jonwiggins/xmloxide/commit/d606e11ddaf033272d85c5422addd91b79788aba>
- other: <https://crates.io/crates/xmloxide>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/RUSTSEC-2026-0599> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-61727> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-61727>
