CVE-2026-41674
High · 7.5CVSS
7.5
EPSS
0.7%
Published
May 7, 2026
CISA due date
—
The record
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.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| npm | @xmldom/xmldom | 0 | 0.8.13 |
| npm | @xmldom/xmldom | 0.9.0 | 0.9.10 |
| npm | xmldom | 0 | No fix |
Related vulnerabilities
- GHSA-f6ww-3ggp-fr8h xmldom has XML injection through unvalidated DocumentType serialization Same vulnerability
- CVE-2026-41672 xmldom is a pure JavaScript W3C standard-based (XML DOM Level 2 Core) `DOMParser` and… Also affects @xmldom/xmldom
- CVE-2026-41675 xmldom is a pure JavaScript W3C standard-based (XML DOM Level 2 Core) `DOMParser` and… Also affects @xmldom/xmldom
- CVE-2026-41673 xmldom is a pure JavaScript W3C standard-based (XML DOM Level 2 Core) `DOMParser` and… Also affects @xmldom/xmldom
- GHSA-2v35-w6hq-6mfw xmldom: Uncontrolled recursion in XML serialization leads to DoS Also affects @xmldom/xmldom
- GHSA-x6wf-f3px-wcqx xmldom has XML node injection through unvalidated processing instruction serialization Also affects @xmldom/xmldom
- GHSA-j759-j44w-7fr8 xmldom has XML node injection through unvalidated comment serialization Also affects @xmldom/xmldom
- CVE-2026-34601 xmldom is a pure JavaScript W3C standard-based (XML DOM Level 2 Core) `DOMParser` and… Also affects @xmldom/xmldom