cve.bz

CVE-2026-41674

8.7 highEPSS 0.6%

High (8.7). EPSS 0.6% chance of exploitation in the next 30 days. Fixed in @xmldom/xmldom 0.8.13, 0.9.10.

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.

Severity

CVSS 4.0

8.7 high
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
EPSS
0.6% chance of exploitation in the next 30 days; higher than 46% of CVEs (scores of 2026-10-31)
CWE
CWE-91
Published
Modified
Record from
the NVD, synced

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-f6ww-3ggp-fr8hnpm@xmldom/xmldom<0.8.130.8.13
GHSA-f6ww-3ggp-fr8hnpm@xmldom/xmldom>=0.9.0 <0.9.100.9.10
GHSA-f6ww-3ggp-fr8hnpmxmldom<=0.6.0no fix published

References

Check your stackJSON