Vulnerability · Published May 7, 2026 · Assigned by GitHub_M

CVE-2026-41672xmldom: XML node injection through unvalidated comment serialization

High 7.5

In plain English

A high-severity security flaw in xmldom from xmldom. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 40% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.5High
Exploit odds (30 days)0.5%top 60.2% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official description

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, the package allows attacker-controlled comment content to be serialized into XML without validating or neutralizing comment-breaking sequences. As a result, an attacker can terminate the comment early and inject arbitrary XML nodes into the serialized output. This issue has been patched in versions @xmldom/xmldom versions 0.9.10 and 0.8.13.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12node-xmldomno fix listedDEBIAN-CVE-2026-41672
Debian:13node-xmldomno fix listedDEBIAN-CVE-2026-41672
Debian:14node-xmldom0.9.10-1DEBIAN-CVE-2026-41672
Ubuntu:22.04:LTSnode-xmldomno fix listedUBUNTU-CVE-2026-41672
Ubuntu:24.04:LTSnode-xmldomno fix listedUBUNTU-CVE-2026-41672
Ubuntu:25.10node-xmldomno fix listedUBUNTU-CVE-2026-41672
Ubuntu:26.04:LTSnode-xmldomno fix listedUBUNTU-CVE-2026-41672
Ubuntu:26.10node-xmldomno fix listedUBUNTU-CVE-2026-41672
npm@xmldom/xmldom0.9.10GHSA-j759-j44w-7fr8
npm@xmldom/xmldom0.8.13GHSA-j759-j44w-7fr8
npmxmldomno fix listedGHSA-j759-j44w-7fr8

Affected products (as reported)

VendorProductVersions
xmldom xmldom xmldom <= 0.6.0@xmldom/xmldom >= 0.9.0, < 0.9.10@xmldom/xmldom < 0.8.13

Weakness: CWE-91 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

References