xmldom: Creation-time XML Name/QName validation is bypassable via an embedded line terminator, allowing injection on the default serialization path
xmldom is a pure JavaScript W3C standard-based (XML DOM Level 2 Core) DOMParser and XMLSerializer module. From 0.9.0 until 0.9.12, the shared reg() builder in lib/grammar.js compiles the anchored QName_exact validator with the multiline flag, so ^ and $ validate only one line instead of the complete name. createElementNS, createAttributeNS, createDocumentType, and createAttribute consequently accept a malformed XML name whose first line is valid and whose later text injects markup when serialized through either the default path or requireWellFormed: true. The triggering ECMAScript line terminators are U+000A, U+000D, U+2028, and U+2029. This issue is fixed in @xmldom/xmldom version 0.9.12.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2026-83609
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 14:13 UTC · Revision 1
Source evidence
xmldom: Creation-time XML Name/QName validation is bypassable via an embedded line terminator, allowing injection on the default serialization path
core-osv · Original sourcePublished 1 Sept 2026, 14:29 UTC
xmldom is a pure JavaScript W3C standard-based (XML DOM Level 2 Core) DOMParser and XMLSerializer module. From 0.9.0 until 0.9.12, the shared reg() builder in lib/grammar.js compiles the anchored QName_exact validator with the multiline flag, so ^ and $ validate only one line instead of the complete name. createElementNS, createAttributeNS, createDocumentType, and createAttribute consequently accept a malformed XML name whose first line is valid and whose later text injects markup when serialized through either the default path or requireWellFormed: true. The triggering ECMAScript line terminators are U+000A, U+000D, U+2028, and U+2029. This issue is fixed in @xmldom/xmldom version 0.9.12.
osv:CVE-2026-83609
Complete source record
{
"id": "8053a7a4704d7ca8913ff0179f3c04c3695b9c4c3ad6d59c30c7497addfbb399",
"url": "https://osv.dev/vulnerability/CVE-2026-83609",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "xmldom: Creation-time XML Name/QName validation is bypassable via an embedded line terminator, allowing injection on the default serialization path",
"summary": "xmldom is a pure JavaScript W3C standard-based (XML DOM Level 2 Core) DOMParser and XMLSerializer module. From 0.9.0 until 0.9.12, the shared reg() builder in lib/grammar.js compiles the anchored QName_exact validator with the multiline flag, so ^ and $ validate only one line instead of the complete name. createElementNS, createAttributeNS, createDocumentType, and createAttribute consequently accept a malformed XML name whose first line is valid and whose later text injects markup when serialized through either the default path or requireWellFormed: true. The triggering ECMAScript line terminators are U+000A, U+000D, U+2028, and U+2029. This issue is fixed in @xmldom/xmldom version 0.9.12.",
"evidence": "osv:CVE-2026-83609",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2026-83609",
"aliases": [
"CVE-2026-83609",
"GHSA-3px3-54cx-rmw9"
],
"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": "8c7c7afe89027641aa59c101d20eefedc0f54c6f"
},
{
"fixed": "0af8cf829d8a92bbac612903422c6947f5458f06"
},
{
"fixed": "7b2ec67e1750daadd0bb06c92e875e726544a362"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "0.9.0"
},
{
"fixed": "0.9.12"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"range": [
{
"fixed": "7b2ec67e1750daadd0bb06c92e875e726544a362"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"fixed": "0af8cf829d8a92bbac612903422c6947f5458f06"
}
],
"source": "REFERENCES_TAG",
"original_tag": "0.9.12"
}
]
}
}
],
"versions": [
"0.9.11",
"0.9.10",
"0.9.9",
"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"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-83609.json"
}
}
],
"modified": "2026-10-28T02:30:29.368768479Z",
"provider": "osv",
"references": [
"https://github.com/xmldom/xmldom/releases/tag/0.9.12",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/83xxx/CVE-2026-83609.json",
"https://github.com/xmldom/xmldom/security/advisories/GHSA-3px3-54cx-rmw9",
"https://nvd.nist.gov/vuln/detail/CVE-2026-83609",
"https://github.com/xmldom/xmldom/commit/7b2ec67e1750daadd0bb06c92e875e726544a362",
"https://github.com/xmldom/xmldom/pull/1071"
],
"provider_metadata": {
"cwe_ids": [
"CWE-625",
"CWE-91"
],
"cna_assigner": "GitHub_M",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/83xxx/CVE-2026-83609.json"
}
},
"related_cves": [
{
"value": "CVE-2026-83609",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 496270,
"published_at": "2026-09-01T14:29:40.475+00:00"
}