{"id":"CVE-2026-83618","published":"2026-09-01T14:49:46Z","modified":"2026-09-04T01:59:23Z","title":"xmldom: requireWellFormed DocType publicId/systemId validation is bypassable via an embedded line terminator","vendor":"xmldom","product":"xmldom","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.7,"severity":"HIGH","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0057,"percentile":0.40992,"provenance":"source"},"cwes":[{"id":"CWE-91","name":"XML Injection"},{"id":"CWE-625","name":"Permissive Regular Expression"}],"references":[{"url":"https://github.com/xmldom/xmldom/security/advisories/GHSA-vr34-hp96-76pp","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/xmldom/xmldom/pull/1071","tags":["x_refsource_MISC"]},{"url":"https://github.com/xmldom/xmldom/commit/7b2ec67e1750daadd0bb06c92e875e726544a362","tags":["x_refsource_MISC"]},{"url":"https://github.com/xmldom/xmldom/releases/tag/0.9.12","tags":["x_refsource_MISC"]}],"priority":{"score":14.3,"factors":[{"name":"EPSS percentile","points":8.2},{"name":"CVSS severity","points":6.09}]},"vendorSlug":"xmldom","affectedVersions":[{"vendor":"xmldom","product":"xmldom","versions":[">= 0.9.10, < 0.9.12"]},{"vendor":"@xmldom","product":"xmldom","versions":[">= 0.9.10, < 0.9.12"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total","timestamp":"2026-09-04T01:58:55.616999Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@xmldom/xmldom","vulnerableRanges":[">=0.9.10, <0.9.12"],"patched":["0.9.12"],"from":["GHSA-vr34-hp96-76pp"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-69244","exploited":false,"provenance":"source"}}