CVE Catalog

CVE-2026-83619

HighCVSS 8.7
Published: Translated: NVD NIST

Summary

xmldom is a JavaScript module implementing DOMParser and XMLSerializer. In versions from 0.7.0 to 0.8.15, the parser in lib/sax.js uses an unanchored global expression to trim end-tag names, leading to quadratic backtracking on long whitespace runs. A small unauthenticated XML document can stall the Node.js event loop. This issue is fixed in version 0.8.15.

Risk Assessment

An attacker can cause a denial of service (DoS) by sending a small XML document that stalls the Node.js application, potentially affecting service availability.

Recommendation

It is recommended to upgrade @xmldom/xmldom to version 0.8.15 or later, which contains the fix.

Other vulnerabilities in @xmldom/xmldom

See all
Original NVD description (English source)

xmldom is a pure JavaScript W3C standard-based (XML DOM Level 2 Core) DOMParser and XMLSerializer module. From 0.7.0 until 0.8.15, the release-0.8.x parser in lib/sax.js trims captured end-tag names with the unanchored global expression /[ \t\n\r]+$/g. For an end tag containing a long whitespace run followed by a non-whitespace character, the expression retries from each possible starting position and backtracks quadratically before failing its end anchor. DOMParser.parseFromString() reaches the path under default options, allowing a small unauthenticated XML input to stall the Node.js event loop; the 0.9.x and unscoped npm lines do not contain this expression. This issue is fixed in @xmldom/xmldom version 0.8.15.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS