CVE-2026-61727
Stack overflow from unbounded recursion in DTD content-model parsing
Also known as GHSA-7jmw-29gc-ffx4, RUSTSEC-2026-0599
Mitigation
- Upgrade xmloxide to 0.4.4 or later.
Who should check
- Projects that depend on crates.io package xmloxide (>= 0.0.0-0, < 0.4.4)
Vulnerability facts
- Affected
- xmloxide >= 0.0.0-0, < 0.4.4
- Fixed in
- 0.4.4
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Unknown
- CVSS
- Not scored yet
- Modified
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
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| crates.io xmloxide | >= 0.0.0-0, < 0.4.4 | 0.4.4 | osv |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
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.
References
Vendor advisories
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.