# @xmldom/xmldom (npm)

A pure JavaScript W3C standard-based (XML DOM Level 2 Core) DOMParser and XMLSerializer module.

- Latest: 0.9.12 (2026-08-21)
- Licence: MIT
- Downloads: 392832576 last month
- Advisories on the latest version: 0

- CVE-2026-83608 HIGH: xmldom: DocType `name` Injection Bypasses requireWellFormed Fixed in 0.8.15, 0.9.12.
- CVE-2026-83609 HIGH: xmldom: Creation-time XML Name/QName validation is bypassable via an embedded line terminator, allowing injection on the default serialization path Fixed in 0.9.12.
- CVE-2026-83605 HIGH: xmldom: Attribute name injection via setAttribute() bypasses requireWellFormed Fixed in 0.9.11, 0.8.14.
- CVE-2026-83611 MODERATE: xmldom: Parser silently accepts a not-well-formed end tag whose name is followed by a line break and trailing content Fixed in 0.8.15, 0.9.12.
- CVE-2026-83612 HIGH: xmldom: HTML raw-text closing-tag case mismatch causes output amplification Fixed in 0.9.12.
- CVE-2026-83613 HIGH: xmldom: Quadratic-time attribute deduplication Fixed in 0.8.15, 0.9.12.
- CVE-2026-83614 HIGH: xmldom: Quadratic-time parsing via the malformed-input recovery path — `parseElementStartPart` re-scan and `normalize()` adjacent-text merge Fixed in 0.8.15, 0.9.12.
- CVE-2026-83615 HIGH: xmldom: Quadratic-memory consumption Fixed in 0.8.15, 0.9.12.
- CVE-2026-83616 HIGH: xmldom: Processing Instruction Target Injection Bypasses requireWellFormed Fixed in 0.8.15, 0.9.12.
- CVE-2026-83606 HIGH: xmldom PI grammar regex ReDoS: quadratic backtracking on unterminated processing instructions Fixed in 0.9.11.
- CVE-2026-83617 HIGH: xmldom: requireWellFormed element/attribute name validation is bypassable via an embedded line terminator Fixed in 0.9.12.
- CVE-2026-83618 HIGH: xmldom: requireWellFormed DocType publicId/systemId validation is bypassable via an embedded line terminator Fixed in 0.9.12.
- CVE-2026-83607 HIGH: xmldom: Element name injection via createElement() bypasses requireWellFormed Fixed in 0.9.11, 0.8.14.
- CVE-2026-83619 HIGH: xmldom: End-tag Whitespace-Trim Regex ReDoS — quadratic backtracking in the 0.8.x end-tag parser Fixed in 0.8.15.
- CVE-2026-83610 MODERATE: xmldom: XML fragment injection via invalid EntityReference.nodeName during requireWellFormed serialization Fixed in 0.8.15, 0.9.12.
- CVE-2026-41673 HIGH: xmldom: Uncontrolled recursion in XML serialization leads to DoS Fixed in 0.8.13, 0.9.10.
- CVE-2026-41674 HIGH: xmldom has XML injection through unvalidated DocumentType serialization Fixed in 0.8.13, 0.9.10.
- CVE-2026-41672 HIGH: xmldom has XML node injection through unvalidated comment serialization Fixed in 0.8.13, 0.9.10.
- CVE-2026-41675 HIGH: xmldom has XML node injection through unvalidated processing instruction serialization Fixed in 0.8.13, 0.9.10.
- CVE-2026-34601 HIGH: xmldom: XML injection via unsafe CDATA serialization allows attacker-controlled markup insertion Fixed in 0.8.12, 0.9.9.
- CVE-2022-39353 CRITICAL: xmldom allows multiple root nodes in a DOM Fixed in 0.7.7, 0.8.4, 0.9.0-beta.4.
- CVE-2021-32796 MODERATE: Misinterpretation of malicious XML input Fixed in 0.7.0.

Sources: npm, deps.dev (CC BY 4.0), OSV. Last checked 4 Dec 2026.
