CVE-2026-83618
published high CVSS 4.0 · 8.7xmldom: requireWellFormed DocType publicId/systemId validation is bypassable via an embedded line terminator
Package status and fixes
Description
xmldom is a pure JavaScript W3C standard-based (XML DOM Level 2 Core) DOMParser and XMLSerializer module. From 0.9.10 until 0.9.12, the requireWellFormed: true serializer validates DocumentType.publicId and DocumentType.systemId with PubidLiteral_match and SystemLiteral_match expressions produced by reg() in lib/grammar.js, which inherit the multiline flag. A complete valid literal on the first line can therefore satisfy the matcher while U+000A, U+000D, U+2028, or U+2029 and breakout markup remain in the emitted <!DOCTYPE ...> declaration. This bypasses the strict-serialization mitigation for the earlier DocumentType injection advisory; creation and direct property assignment remain unvalidated by design. This issue is fixed in @xmldom/xmldom version 0.9.12.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 8.7 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- 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
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| xmldom | xmldom | >= 0.9.10, < 0.9.12 (affected) | GitHub_M · cna |
| @xmldom | xmldom | >= 0.9.10, < 0.9.12 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-91 CWE-91: XML Injection (aka Blind XPath Injection)
- CWE-625 CWE-625: Permissive Regular Expression
References
4Provider assertions
2GitHub_M · cna
xmldom: requireWellFormed DocType publicId/systemId validation is bypassable via an embedded line terminator
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 7a3c25c78ec51ade7d7464136766a515061d476a3118b2d6cceb749d4f227345
- Ingested
- 23 Sep 2026, 09:36:16 UTC
- Source record
- Official CVE record