npmWorst: Critical18 advisories
xmldom: known vulnerabilities
xmldom has 18 reviewed security advisories in the GitHub Advisory Database — 2 critical, 12 high, 4 moderate. The most recent was published 2026-09-01. Each one below lists the affected version range, the release that fixes it, its CVE and severity. SkyShield matches these against the xmldom versions running across your servers, containers and images, and ranks what to patch first.
How to fix xmldom
Upgrade xmldom to a release at or above the fixed version shown for each advisory below. For npm:
npm install xmldom@0.5.0 (or run npm audit fix)
SkyShield checks the installed version on every machine and container, so you can see which hosts are still on an affected release after you roll the fix out.
Advisories (18)
xmldom: DocType `name` Injection Bypasses requireWellFormed
High CWE-91
— Affected: up to and including 0.6.0. No fixed release is listed. Published 2026-09-01. GHSA-27p8-2357-5qqv · CVE-2026-83608
xmldom: Attribute name injection via setAttribute() bypasses requireWellFormed
High CWE-91
— Affected: up to and including 0.6.0. No fixed release is listed. Published 2026-09-01. GHSA-4w3w-2rp5-g8jm · CVE-2026-83605
xmldom: XML fragment injection via invalid EntityReference.nodeName during requireWellFormed serialization
Moderate CWE-116
— Affected: up to and including 0.6.0. No fixed release is listed. Published 2026-09-01. GHSA-6gmq-8vp8-gcm6 · CVE-2026-83610
xmldom: Parser silently accepts a not-well-formed end tag whose name is followed by a line break and trailing content
Moderate CWE-1286
— Affected: up to and including 0.6.0. No fixed release is listed. Published 2026-09-01. GHSA-6h8r-xr42-gp59 · CVE-2026-83611
xmldom: Quadratic-time attribute deduplication
High CWE-407
— Affected: up to and including 0.6.0. No fixed release is listed. Published 2026-09-01. GHSA-8344-3jmq-59r6 · CVE-2026-83613
xmldom: Quadratic-time parsing via the malformed-input recovery path — `parseElementStartPart` re-scan and `normalize()` adjacent-text merge
High CWE-400 CWE-407
— Affected: 0.3.0 through 0.6.0. No fixed release is listed. Published 2026-09-01. GHSA-93r5-fhx6-vmg9 · CVE-2026-83614
xmldom: Quadratic-memory consumption
High CWE-770
— Affected: 0.1.5 through 0.6.0. No fixed release is listed. Published 2026-09-01. GHSA-965w-775f-mr7g · CVE-2026-83615
xmldom: Processing Instruction Target Injection Bypasses requireWellFormed
High CWE-91
— Affected: up to and including 0.6.0. No fixed release is listed. Published 2026-09-01. GHSA-c7q8-3ch8-vqpv · CVE-2026-83616
xmldom: Element name injection via createElement() bypasses requireWellFormed
High CWE-91
— Affected: up to and including 0.6.0. No fixed release is listed. Published 2026-09-01. GHSA-w2rr-34g9-rvrj · CVE-2026-83607
xmldom: Uncontrolled recursion in XML serialization leads to DoS
High CWE-674
— Affected: up to and including 0.6.0. No fixed release is listed. Published 2026-05-07. GHSA-2v35-w6hq-6mfw · CVE-2026-41673
xmldom has XML injection through unvalidated DocumentType serialization
High CWE-91
— Affected: up to and including 0.6.0. No fixed release is listed. Published 2026-05-07. GHSA-f6ww-3ggp-fr8h · CVE-2026-41674
xmldom has XML node injection through unvalidated comment serialization
High CWE-91
— Affected: up to and including 0.6.0. No fixed release is listed. Published 2026-05-07. GHSA-j759-j44w-7fr8 · CVE-2026-41672
xmldom has XML node injection through unvalidated processing instruction serialization
High CWE-91
— Affected: up to and including 0.6.0. No fixed release is listed. Published 2026-05-07. GHSA-x6wf-f3px-wcqx · CVE-2026-41675
xmldom: XML injection via unsafe CDATA serialization allows attacker-controlled markup insertion
High 7.5 CWE-91
— Affected: up to and including 0.6.0. No fixed release is listed. Published 2026-04-02. GHSA-wh4c-j3r5-mjhp · CVE-2026-34601
xmldom allows multiple root nodes in a DOM
Critical 9.8 CWE-1288 CWE-20
— Affected: up to and including 0.6.0. No fixed release is listed. Published 2022-11-02. GHSA-crh6-fp67-6883 · CVE-2022-39353
Withdrawn: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution') in @xmldom/xmldom and xmldom
Critical 9.8 CWE-1321
— Affected: up to and including 0.6.0. No fixed release is listed. Published 2022-10-11. GHSA-9pgh-qqpf-7wqj · CVE-2022-37616
Misinterpretation of malicious XML input
Moderate 6.5 CWE-116
— Affected: up to and including 0.6.0. No fixed release is listed. Published 2021-07-27. GHSA-5fg8-2547-mr8q · CVE-2021-32796
Misinterpretation of malicious XML input
Moderate 4.3 CWE-115 CWE-436
— Affected: before 0.5.0. Fixed in 0.5.0. Published 2021-03-12. GHSA-h6q6-9hqw-rwfv · CVE-2021-21366
Find xmldom across your fleet
Install one agent per server and connect your cloud. SkyShield matches your packages and images against GHSA,
CISA KEV and EPSS and shows the fix per machine. Free for one server, then from $49 per server a month.
Start free.