CVE-2026-41674xmldom: XML injection through unvalidated DocumentType serialization
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 serializes DocumentType node fields (internalSubset, publicId, systemId) verbatim without any escaping or validation. When these fields are set programmatically to attacker-controlled strings, XMLSerializer.serializeToString can produce output where the DOCTYPE declaration is terminated early and arbitrary markup appears outside it. This issue has been patched in versions @xmldom/xmldom versions 0.9.10 and 0.8.13.
What to do
Fixed builds are available from Debian, npm: see the table below for the fixed version per release.
Debian, Ubuntu, npm have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | node-xmldom | Fix pending | UBUNTU-CVE-2026-41674 | |
| Ubuntu 26.04 | node-xmldom | Under investigation | UBUNTU-CVE-2026-41674 | |
| Ubuntu 25.10 | node-xmldom | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2026-41674 | |
| Ubuntu 24.04 | node-xmldom | Under investigation | UBUNTU-CVE-2026-41674 | |
| Ubuntu 22.04 | node-xmldom | Under investigation | UBUNTU-CVE-2026-41674 | |
| Ubuntu 20.04 | node-xmldom | Fix pending | UBUNTU-CVE-2026-41674 | |
| Debian 14 | node-xmldom | Fixed | 0.9.10-1 | DEBIAN-CVE-2026-41674 |
| Debian 13 | node-xmldom | Fix pending | DEBIAN-CVE-2026-41674 | |
| Debian 12 | node-xmldom | Fix pending | DEBIAN-CVE-2026-41674 | |
| npm library | @xmldom/xmldom | Fixed | 0.9.10 | GHSA-f6ww-3ggp-fr8h |
| npm library | xmldom | Fix pending | GHSA-f6ww-3ggp-fr8h |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- xmldom: affected: xmldom <= 0.6.0, @xmldom/xmldom >= 0.9.0, < 0.9.10, @xmldom/xmldom < 0.8.13
References
- https://github.com/xmldom/xmldom/security/advisories/GHSA-f6ww-3ggp-fr8h
- https://github.com/xmldom/xmldom/commit/372008f9ae0e20fd69f761c7b79e202598267314
- https://github.com/xmldom/xmldom/releases/tag/0.8.13
- https://github.com/xmldom/xmldom/releases/tag/0.9.10
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.