{"id":"CVE-2026-83611","published":"2026-09-01T14:34:12Z","modified":"2026-09-01T14:53:37Z","title":"xmldom: Parser silently accepts a not-well-formed end tag whose name is followed by a line break and trailing content","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. Prior to @xmldom/xmldom versions 0.8.15 and 0.9.12, and in xmldom version 0.6.0 and earlier, DOMParser.parseFromString() can silently accept an end tag such as </a\\njunk>, close the element, and discard the trailing content. On 0.9.x, the lib/sax.js end-tag validator inherits the multiline flag from reg(), allowing the first line to satisfy the anchored XML ETag production; older lines have no equivalent residue validation. This parser differential can bypass a parse-before-trust well-formedness gate, although it does not inject the discarded content; onError on 0.9.x and errorHandler on 0.8.x are the relevant reporting interfaces. This issue is fixed in @xmldom/xmldom versions 0.8.15 and 0.9.12; no fixed version is available for xmldom.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.9,"severity":"MEDIUM","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00619,"percentile":0.43982,"provenance":"source"},"cwes":[{"id":"CWE-1286","name":"Improper Validation of Syntactic Correctness of Input"}],"references":[{"url":"https://github.com/xmldom/xmldom/security/advisories/GHSA-6h8r-xr42-gp59","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/xmldom/xmldom/pull/1071","tags":["x_refsource_MISC"]},{"url":"https://github.com/xmldom/xmldom/pull/1072","tags":["x_refsource_MISC"]},{"url":"https://github.com/xmldom/xmldom/commit/4430189660b0d380ee9c9ee7550a1358688e8828","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.8.15","tags":["x_refsource_MISC"]},{"url":"https://github.com/xmldom/xmldom/releases/tag/0.9.12","tags":["x_refsource_MISC"]}],"priority":{"score":13.6,"factors":[{"name":"EPSS percentile","points":8.8},{"name":"CVSS severity","points":4.83}]},"vendorSlug":"xmldom","affectedVersions":[{"vendor":"xmldom","product":"xmldom","versions":["<= 0.6.0"]},{"vendor":"@xmldom","product":"xmldom","versions":[">= 0.9.0, < 0.9.12",">= 0.7.0, < 0.8.15"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-09-01T14:53:15.050065Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@xmldom/xmldom","vulnerableRanges":[">=0.7.0, <0.8.15",">=0.9.0, <0.9.12"],"patched":["0.8.15","0.9.12"],"from":["GHSA-6h8r-xr42-gp59"],"provenance":"source"},{"ecosystem":"npm","package":"xmldom","vulnerableRanges":["<=0.6.0"],"patched":[],"from":["GHSA-6h8r-xr42-gp59"],"provenance":"source"}],"summary":{"text":"xmldom's DOMParser.parseFromString() in @xmldom/xmldom versions before 0.8.15 and 0.9.12, and in xmldom 0.6.0 and earlier, fails to reject malformed end tags: an end tag such as </a followed by a line break and trailing content is silently accepted, with the element closed and the trailing content discarded. An attacker who can supply XML to a service that uses this parser before a well-formedness check can exploit this parser differential, with no authentication, privileges or user interaction required, provided the application relies on parsing as its validation gate.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:33:04Z"},"euvd":{"id":"EUVD-2026-69225","exploited":false,"provenance":"source"}}