ZeroHour

CVE-2026-83614

mass

Quadratic-CPU Denial-of-Service in @xmldom/xmldom XML Parser

CVSS 4.0
8.7 high
EPSS
<1%p28
Published
()
Modified
AI analysis

CVE-2026-83614 is a denial-of-service vulnerability in the xmldom npm packages caused by two independent quadratic-complexity code paths (CWE-400/CWE-407) rather than memory corruption or code execution. An attacker triggers it by supplying malformed XML to the default DOMParser.parseFromString() flow, where lib/sax.js repeatedly rescans a malformed tag name to the next '>' during single-character recovery; a second path in lib/dom.js normalize() repeatedly removes and re-appends adjacent text nodes, causing quadratic reindexing, and this normalization also runs automatically via endDocument after parsing. The result is disproportionate CPU consumption on a single crafted document, enabling unauthenticated, network-reachable CPU exhaustion that denies service to the parsing process with no confidentiality or integrity impact (CVSS 4.0: 8.7, VA:H only). Any Node.js or browser application using vulnerable versions of @xmldom/xmldom (including via transitive dependencies) or the legacy xmldom package to parse attacker-controlled XML is affected. Exploitation status: no known exploitation, no public proof-of-concept, not in CISA KEV, with a modest 0.4% EPSS probability of exploitation within 30 days.

What to do: Upgrade @xmldom/xmldom to 0.8.15 (0.8.x line) or 0.9.12 (0.9.x line); there is no fixed release of the legacy xmldom package, so migrate it to @xmldom/xmldom or restrict/validate XML input size and structure. Run 'npm ls xmldom @xmldom/xmldom' (and equivalent lockfile checks) to find transitive use, and prioritize any service that parses untrusted XML from external users.

Affected
xmldom @xmldom/xmldom (npm)all versions prior to 0.8.15 and prior to 0.9.12
xmldom (legacy npm package)0.3.0 through 0.6.0 (no fixed version available)
Estimated exposure
mass≈1M+ downstream npm installations (package receives millions of weekly npm downloads as a common transitive XML-parsing dependency) — Estimated from @xmldom/xmldom's very high npm download counts and its role as a transitive dependency across many packages, implying far more than 100k installed copies, though only deployments parsing attacker-supplied XML with a…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description

xmldom is a pure JavaScript W3C standard-based (XML DOM Level 2 Core) DOMParser and XMLSerializer module. Prior to @xmldom/xmldom versions 0.8.15 and 0.9.12, and in xmldom versions 0.3.0 through 0.6.0, two independent quadratic paths can cause denial of service. In lib/sax.js, parseElementStartPart repeatedly rescans a malformed tag name to the next > during single-character recovery; in lib/dom.js, normalize() repeatedly removes and appends adjacent text nodes, causing quadratic reindexing and string rebuilding. The first path is reachable through default DOMParser.parseFromString() processing, while the second is also reachable through a direct normalize() call on a programmatically constructed DOM, and endDocument invokes that normalization after parsing. This issue is fixed in @xmldom/xmldom versions 0.8.15 and 0.9.12; no fixed version is available for xmldom.

Ecosystems
npm
Weakness
CWE-400, CWE-407
Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
GHSA
GHSA-93r5-fhx6-vmg9 (high)

In the news

No ingested article mentions this CVE yet.