CVE-2026-61727
Published:November 25, 2026
Updated:November 26, 2026
"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 Packages
https://github.com/jonwiggins/xmloxide.git (GITHUB):
Affected version(s) >=v0.1.0 <v0.4.4Fix Suggestion:
Update to version v0.4.4xmloxide (RUST):
Affected version(s) >=0.1.0 <0.4.4Fix Suggestion:
Update to version 0.4.4Related Resources (3)
Do you need more information?
Contact UsCVSS v4
Base Score:
8.7
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
NONE
Vulnerable System Integrity
NONE
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
7.5
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Weakness Type (CWE)
Uncontrolled Recursion