High severity · published May 7, 2026
CVE-2026-41674
xmldom: XML injection through unvalidated DocumentType serialization
7.5
CVSS
0.6%
EPSS
No
On KEV
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 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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
None
Integrity
High
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.6% · higher than 47% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
XM
xmldom · xmldom
xmldom <= 0.6.0; @xmldom/xmldom >= 0.9.0, < 0.9.10; @xmldom/xmldom < 0.8.13 · source: vendor
RH
Red Hat Build of Podman Desktop · Red Hat
All versions, or not specified · source: CISA
RH
Red Hat Developer Hub 1.8 · Red Hat
All versions, or not specified · source: CISA
RH
Red Hat Developer Hub 1.9 · Red Hat
All versions, or not specified · source: CISA
RH
Red Hat Fuse 7 · Red Hat
All versions, or not specified · source: CISA
RH
Red Hat OpenShift Container Platform 4.20 · Red Hat
All versions, or not specified · source: CISA
RH
Red Hat OpenShift Container Platform 4.21 · Red Hat
All versions, or not specified · source: CISA
SA
Self-service automation portal 2 · Red Hat
All versions, or not specified · source: CISA
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2026-41674
CVE.org
https://www.cve.org/CVERecord?id=CVE-2026-41674
github.com
https://github.com/xmldom/xmldom/commit/372008f9ae0e20fd69f761c7b79e202598267314
github.com
https://github.com/xmldom/xmldom/releases/tag/0.8.13
github.com
https://github.com/xmldom/xmldom/releases/tag/0.9.10
github.com
https://github.com/xmldom/xmldom/security/advisories/GHSA-f6ww-3ggp-fr8h
access.redhat.com
https://access.redhat.com/errata/RHSA-2026:20034
access.redhat.com
https://access.redhat.com/errata/RHSA-2026:21338
More from xmldom
9.8
CVE-2022-39353
xmldom allows multiple root nodes in a DOM
8.7
CVE-2026-83619
xmldom: End-tag Whitespace-Trim Regex ReDoS — quadratic backtracking in the 0.8.x end-tag parser
8.7
CVE-2026-83618
xmldom: requireWellFormed DocType publicId/systemId validation is bypassable via an embedded line terminator
8.7
CVE-2026-83617
xmldom: requireWellFormed element/attribute name validation is bypassable via an embedded line terminator
8.7
CVE-2026-83616
xmldom: Processing Instruction Target Injection Bypasses requireWellFormed
