# CVE-2026-41674: xmldom: XML injection through unvalidated DocumentType serialization

- Severity: High 8.7 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.56%, higher than 48% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-22T20:19:12.000Z
- Modified: 2026-09-10T13:20:02.843Z
- Also known as: GHSA-f6ww-3ggp-fr8h
- Weaknesses: CWE-91
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- xmldom xmldom: xmldom <= 0.6.0; @xmldom/xmldom >= 0.9.0, < 0.9.10; @xmldom/xmldom < 0.8.13
- rhdh/rhdh-hub-rhel9: no versions given (not affected: from 1779841586 before *; from 1781187342 before *)
- openshift4/ose-agent-installer-ui-rhel9: no versions given (not affected: from 1779864090 before *; from 1779252093 before *)
- rh-podman-desktop.git: no versions given
- xmldom: no versions given
- rhoai/odh-mlflow-rhel9: no versions given
- ansible-automation-platform/automation-portal: no versions given
- @xmldom/xmldom (npm): before 0.8.13; from 0.9.0 before 0.9.10
- xmldom (npm): up to 0.6.0

## Every score

- GitHub_M: 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`
- redhat-SADP: 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`
- GitHub: CVSS:4.0 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`

## References

- <https://github.com/xmldom/xmldom/security/advisories/GHSA-f6ww-3ggp-fr8h> (exploit, web)
- <https://github.com/xmldom/xmldom/commit/372008f9ae0e20fd69f761c7b79e202598267314> (web)
- <https://github.com/xmldom/xmldom/releases/tag/0.8.13> (web)
- <https://github.com/xmldom/xmldom/releases/tag/0.9.10> (web)
- <https://access.redhat.com/security/cve/CVE-2026-41674> (vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2467620> (issue-tracking)
- <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-41674.json>
- <https://access.redhat.com/errata/RHSA-2026:21338> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:26234> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:21703> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:20034> (vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-41674> (advisory)
- <https://github.com/xmldom/xmldom> (package)

## Sources

- CVE List: [CVE-2026-41674](https://www.cve.org/CVERecord?id=CVE-2026-41674), CVE Terms of Use, modified 2026-09-10
- GitHub Advisory Database: [GHSA-f6ww-3ggp-fr8h](https://github.com/advisories/GHSA-f6ww-3ggp-fr8h), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-41674](https://nvd.nist.gov/vuln/detail/CVE-2026-41674), Public domain, modified 2026-09-10

---

Page: https://cve.day/CVE-2026-41674 · Whole record: https://cve.day/CVE-2026-41674.json · Rebuilt by cve.day 2026-11-25T22:59:20.856Z
