xmldom: XML node injection through unvalidated processing instruction serialization
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 allows attacker-controlled processing instruction data to be serialized into XML without validating or neutralizing the PI-closing sequence ?>. As a result, an attacker can terminate the processing instruction early and inject arbitrary XML nodes into the serialized output. This issue has been patched in versions @xmldom/xmldom versions 0.9.10 and 0.8.13.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2026-41675
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 5 Nov 2026, 23:58 UTC · Revision 1
Source evidence
xmldom: XML node injection through unvalidated processing instruction serialization
core-osv · Original sourcePublished 7 May 2026, 03:49 UTC
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 allows attacker-controlled processing instruction data to be serialized into XML without validating or neutralizing the PI-closing sequence ?>. As a result, an attacker can terminate the processing instruction early and inject arbitrary XML nodes into the serialized output. This issue has been patched in versions @xmldom/xmldom versions 0.9.10 and 0.8.13.
osv:CVE-2026-41675
Complete source record
{
"id": "ffe6a3b281ec5920d28d7abd3c3ae9e5eda0c0c2d53452268a0bee1cca462a33",
"url": "https://osv.dev/vulnerability/CVE-2026-41675",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "xmldom: XML node injection through unvalidated processing instruction serialization",
"summary": "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 allows attacker-controlled processing instruction data to be serialized into XML without validating or neutralizing the PI-closing sequence ?>. As a result, an attacker can terminate the processing instruction early and inject arbitrary XML nodes into the serialized output. This issue has been patched in versions @xmldom/xmldom versions 0.9.10 and 0.8.13.",
"evidence": "osv:CVE-2026-41675",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2026-41675",
"aliases": [
"CVE-2026-41675",
"GHSA-x6wf-f3px-wcqx"
],
"metrics": [
{
"type": "CVSS_V4",
"score": "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"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/xmldom/xmldom",
"type": "GIT",
"events": [
{
"introduced": "c80a161172cc4d8733583bf0cf59abfa589f6d9e"
},
{
"fixed": "7207a4b0e0bcc228868075ed991665ef9f73b1c2"
},
{
"fixed": "e5c14802592685bb872c042c54c3f73758875c85"
},
{
"fixed": "bf396a575c4dd32ce4bd925b849dcb7e778d957c"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "xmldom <= 0.6.0"
},
{
"last_affected": "xmldom <= 0.6.0"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandaloneSingleVersion"
},
{
"range": [
{
"introduced": "@xmldom/xmldom < 0.8.13"
},
{
"last_affected": "@xmldom/xmldom < 0.8.13"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandaloneSingleVersion"
},
{
"range": [
{
"fixed": "7207a4b0e0bcc228868075ed991665ef9f73b1c2"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"fixed": "e5c14802592685bb872c042c54c3f73758875c85"
}
],
"source": "REFERENCES_TAG",
"original_tag": "0.8.13"
},
{
"range": [
{
"fixed": "bf396a575c4dd32ce4bd925b849dcb7e778d957c"
}
],
"source": "REFERENCES_TAG",
"original_tag": "0.9.10"
}
]
}
}
],
"versions": [
"@xmldom/xmldom < 0.8.13",
"xmldom <= 0.6.0",
"0.9.9",
"0.8.12",
"0.8.11",
"0.8.10",
"0.9.8",
"0.9.7",
"0.9.6",
"0.9.5",
"0.9.4",
"0.9.3",
"0.9.2",
"0.9.1",
"0.9.0",
"0.9.0-beta.11",
"0.9.0-beta.10",
"0.8.9",
"0.9.0-beta.9",
"0.8.8",
"0.9.0-beta.8",
"0.9.0-beta.7",
"0.8.7",
"0.8.6",
"0.9.0-beta.6",
"0.8.5",
"0.8.4",
"0.9.0-beta.5",
"0.9.0-beta.4",
"0.8.3",
"0.9.0-beta.3",
"0.9.0-beta.2",
"0.9.0-beta.1",
"0.8.2",
"0.8.1",
"0.8.0",
"0.7.3",
"0.7.2",
"0.7.1",
"0.7.0+scoped",
"v0.7.0",
"0.7.0+unscoped",
"0.7.0",
"0.6.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-41675.json"
}
}
],
"modified": "2026-10-28T02:30:45.419506875Z",
"provider": "osv",
"references": [
"https://github.com/xmldom/xmldom/releases/tag/0.8.13",
"https://github.com/xmldom/xmldom/releases/tag/0.9.10",
"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-41675.json",
"https://access.redhat.com/errata/RHSA-2026:26234",
"https://access.redhat.com/errata/RHSA-2026:60520",
"https://access.redhat.com/security/cve/CVE-2026-41675",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/41xxx/CVE-2026-41675.json",
"https://github.com/xmldom/xmldom/security/advisories/GHSA-x6wf-f3px-wcqx",
"https://nvd.nist.gov/vuln/detail/CVE-2026-41675",
"https://bugzilla.redhat.com/show_bug.cgi?id=2467629",
"https://github.com/xmldom/xmldom/commit/7207a4b0e0bcc228868075ed991665ef9f73b1c2"
],
"provider_metadata": {
"cwe_ids": [
"CWE-91"
],
"cna_assigner": "GitHub_M",
"unresolved_ranges": [
{
"extracted_events": [
{
"range": [
{
"introduced": "@xmldom/xmldom >= 0.9.0, < 0.9.10"
},
{
"last_affected": "@xmldom/xmldom >= 0.9.0, < 0.9.10"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandaloneSingleVersion"
}
]
}
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/41xxx/CVE-2026-41675.json"
}
},
"related_cves": [
{
"value": "CVE-2026-41675",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 513280,
"published_at": "2026-05-07T03:49:34.056+00:00"
}