{"id":"CVE-2026-41674","published":"2026-05-07T03:47:51Z","modified":"2026-09-10T12:05:00Z","title":"xmldom: XML injection through unvalidated DocumentType serialization","vendor":"xmldom","product":"xmldom","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.7,"severity":"HIGH","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0065,"percentile":0.45863,"provenance":"source"},"cwes":[{"id":"CWE-91","name":"XML Injection"}],"references":[{"url":"https://github.com/xmldom/xmldom/security/advisories/GHSA-f6ww-3ggp-fr8h","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/xmldom/xmldom/commit/372008f9ae0e20fd69f761c7b79e202598267314","tags":["x_refsource_MISC"]},{"url":"https://github.com/xmldom/xmldom/releases/tag/0.8.13","tags":["x_refsource_MISC"]},{"url":"https://github.com/xmldom/xmldom/releases/tag/0.9.10","tags":["x_refsource_MISC"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-41674","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2467620","tags":["issue-tracking","x_refsource_REDHAT"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-41674.json","tags":["x_sadp-csaf-vex"]},{"url":"https://access.redhat.com/errata/RHSA-2026:21338","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:26234","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:21703","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:20034","tags":["vendor-advisory","x_refsource_REDHAT"]}],"priority":{"score":15.3,"factors":[{"name":"EPSS percentile","points":9.17},{"name":"CVSS severity","points":6.09}]},"vendorSlug":"xmldom","affectedVersions":[{"vendor":"xmldom","product":"xmldom","versions":["xmldom <= 0.6.0","@xmldom/xmldom >= 0.9.0, < 0.9.10","@xmldom/xmldom < 0.8.13"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-05-07T12:35:22.818916Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@xmldom/xmldom","vulnerableRanges":["<0.8.13",">=0.9.0, <0.9.10"],"patched":["0.8.13","0.9.10"],"from":["GHSA-f6ww-3ggp-fr8h"],"provenance":"source"},{"ecosystem":"npm","package":"xmldom","vulnerableRanges":["<=0.6.0"],"patched":[],"from":["GHSA-f6ww-3ggp-fr8h"],"provenance":"source"}],"summary":{"text":"The xmldom package (@xmldom/xmldom before 0.9.10 and 0.8.13, and xmldom 0.6.0 and earlier) serializes DocumentType fields (internalSubset, publicId, systemId) without escaping or validation in its XMLSerializer module. An attacker who can supply those field values to the application, with no authentication or user interaction required over the network, can cause serializeToString to emit markup outside the DOCTYPE declaration, injecting arbitrary XML into the output.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:26:14Z"},"euvd":{"id":"EUVD-2026-28289","exploited":false,"provenance":"source"}}