CVE-2026-41673: xmldom: Denial of service via uncontrolled recursion in XML serialization
xmldom is a pure JavaScript W3C standard-based (XML DOM Level 2 Core) `DOMParser` and `XMLSerializer` module. In @xmldom/xmldom prior to versions 0.9.10 and 0.8.13 and xmldom version 0.6.0 and prior, seven recursive traversals in lib/dom.js operate without a depth limit. A sufficiently deeply nested DOM tree causes a RangeError: Maximum call stack size exceeded, crashing the application. This issue has been patched in versions @xmldom/xmldom versions 0.9.10 and 0.8.13.
Security readout for executives and security teams
Plain-English summary
Applications using affected xmldom versions can crash when processing a sufficiently deeply nested XML document or DOM tree. An unauthenticated remote attacker may cause service disruption where attacker-controlled XML reaches vulnerable serialization paths. The supplied evidence indicates availability impact, not data theft or modification.
Executive priority
Prioritize internet-facing or business-critical XML-processing services for prompt remediation. Although no active exploitation is established, exploitation requires no authentication or user interaction where untrusted XML reaches the vulnerable code. Schedule other confirmed deployments through normal high-severity patching, with compensating controls until upgraded.
Technical view
Seven recursive traversals in lib/dom.js lack depth limits. Deeply nested DOM structures can exhaust the JavaScript call stack, raising a RangeError and potentially terminating the application process. Affected versions include xmldom 0.6.0 and earlier, plus vulnerable @xmldom/xmldom 0.8.x and 0.9.x releases.
Likely exposure
Exposure is highest in network-facing services that accept, construct, transform, or serialize attacker-influenced XML using an affected direct or transitive dependency. Applications without attacker-controlled XML paths may have substantially lower practical risk, but still require inventory confirmation.
Exploitation context
The CVSS 4.0 score is 8.7, reflecting low-complexity, unauthenticated network exploitation with high availability impact. The supplied bundle marks this CVE as absent from KEV and provides no evidence of active exploitation. Public proof-of-concept status is not established by the supplied sources.
Researcher notes
Confirm reachable vulnerable traversal paths rather than relying solely on package presence. Review both package identities because legacy xmldom and scoped @xmldom/xmldom have different affected ranges. The supplied material identifies recursive serialization-related traversals but does not establish universal reachability, public exploitation, or a fixed legacy xmldom release.
Mitigation direction
Upgrade @xmldom/xmldom 0.9.x to 0.9.10 or later.
Upgrade @xmldom/xmldom 0.8.x to 0.8.13 or later.
For legacy xmldom, follow vendor guidance to migrate to a maintained, fixed release.
Until upgraded, restrict attacker-controlled XML and enforce application-level input complexity limits.
Use process isolation and restart controls to reduce outage impact from unexpected parser failures.
Validation and detection
Inspect manifests, lockfiles, deployed artifacts, and SBOMs for affected direct or transitive versions.
Trace whether untrusted XML can reach xmldom parsing, DOM construction, transformation, or serialization paths.
Confirm production resolves only fixed @xmldom/xmldom versions after dependency installation.
Regression-test deeply nested XML handling and verify rejection or controlled failure without process termination.
Monitor application logs for call-stack RangeError events associated with XML processing.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · low confidence lookup
CWE-674: Exact CWE lookup
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-674 · source CWE mapping
Uncontrolled Recursion
Uncontrolled Recursion represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.
Improper Restriction of Recursive Entity References in DTDs ('XML Entity Expansion')
Improper Restriction of Recursive Entity References in DTDs ('XML Entity Expansion') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.