CVE-2026-41674 Details
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.
A vulnerability in the xmldom package, specifically in versions prior to 0.9.10 and 0.8.13, allows for XML injection through unvalidated serialization of DocumentType node fields. The issue arises because the XMLSerializer.serializeToString method emits these fields verbatim, without any escaping or validation. When fields are populated with attacker-controlled strings, the serialization can be manipulated to terminate the DOCTYPE declaration early, causing arbitrary markup to appear outside of it. This vulnerability is present in the @xmldom/xmldom package in versions prior to 0.8.13 and in the 0.9.0 to 0.9.10 range.
Users can update to xmldom version 0.9.10 or 0.8.13, where this vulnerability has been patched. After updating, it's important to review all serialization calls and add the { requireWellFormed: true } option to ensure proper validation of DocumentType fields before serialization.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed May 7, 2026CISA-ADP
Assessed May 7, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://access.redhat.com/errata/RHSA-2026:20034 | redhat-SADP | |
| https://access.redhat.com/errata/RHSA-2026:21338 | redhat-SADP | |
| https://access.redhat.com/errata/RHSA-2026:21703 | redhat-SADP | |
| https://access.redhat.com/errata/RHSA-2026:26234 | redhat-SADP | |
| https://access.redhat.com/security/cve/CVE-2026-41674 | redhat-SADP | |
| https://bugzilla.redhat.com/show_bug.cgi?id=2467620 | redhat-SADP | |
| https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-41674.json | redhat-SADP | |
| https://github.com/xmldom/xmldom/security/advisories/GHSA-f6ww-3ggp-fr8h | CISA-ADP | AdvisoryExploitRemedyVendor |
| https://github.com/xmldom/xmldom/commit/372008f9ae0e20fd69f761c7b79e202598267314 | [email protected] | Source CodeVendor |
| https://github.com/xmldom/xmldom/releases/tag/0.8.13 | [email protected] | Release NotesVendor |
| https://github.com/xmldom/xmldom/releases/tag/0.9.10 | [email protected] | Release NotesVendor |
| https://github.com/xmldom/xmldom/security/advisories/GHSA-f6ww-3ggp-fr8h | [email protected] | AdvisoryExploitRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-91 | XML Injection (aka Blind XPath Injection) | redhat-SADP |
| CWE-91 | XML Injection (aka Blind XPath Injection) | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| @xmldom/xmldom | < 0.8.13 (semver) >= 0.9.0, < 0.9.10 (semver) |
CPE
Remediation
| |
| xmldom | All versions |
CPE
Remediation
| |
Change History
19 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Sep 10, 2026 | CVE Modified | redhat-SADP |
| Sep 7, 2026 | CVE Modified | redhat-SADP |
| Aug 26, 2026 | CVE Modified | redhat-SADP |
| Aug 26, 2026 | CVE Modified | CISA-ADP |
| Aug 26, 2026 | CVE Modified | [email protected] |
| Aug 17, 2026 | CVE Modified | redhat-SADP |
| Aug 11, 2026 | CVE Modified | redhat-SADP |
| Aug 10, 2026 | CVE Modified | redhat-SADP |
| Aug 5, 2026 | CVE Modified | redhat-SADP |
| Aug 3, 2026 | CVE Modified | redhat-SADP |
| Jul 27, 2026 | CVE Modified | redhat-SADP |
| Jul 22, 2026 | CVE Modified | redhat-SADP |
| Jul 20, 2026 | CVE Modified | redhat-SADP |
| Jul 15, 2026 | CVE Modified | redhat-SADP |
| Jun 30, 2026 | CVE Modified | redhat-SADP |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 17, 2026 | CVE Modified | [email protected] |
| May 7, 2026 | CVE Modified | CISA-ADP |
| May 7, 2026 | New CVE Received | [email protected] |
Volerion