# CVE-2026-83612: xmldom: HTML raw-text closing-tag case mismatch causes output amplification

- Severity: High 8.7 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.38%, higher than 34% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-09-01T14:36:23.638Z
- Modified: 2026-09-08T21:15:03.941Z
- Also known as: GHSA-6mj3-qw4j-hgrw
- Weaknesses: CWE-178, CWE-400
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

xmldom is a pure JavaScript W3C standard-based (XML DOM Level 2 Core) DOMParser and XMLSerializer module. From 0.9.0-beta.1 until 0.9.12, HTML-mode parsing through DOMParser.parseFromString() mishandles a mixed-case closing tag for the script, style, textarea, or title raw-text elements. parseHtmlSpecialContent, selected by isHTMLRawTextElement or isHTMLEscapableRawTextElement, uses a case-sensitive indexOf() and then calls substring() with a missing-close result of negative one, causing unstable parser progression and quadratic output amplification. A small untrusted text/html document can consequently consume disproportionate CPU and memory when parsed and serialized. This issue is fixed in @xmldom/xmldom version 0.9.12.

(As written by CVE List.)

## Affected

- xmldom xmldom: >= 0.9.0-beta.1, < 0.9.12
- @xmldom xmldom: >= 0.9.0-beta.1, < 0.9.12
- @xmldom/xmldom (npm): from 0.9.0-beta.1 before 0.9.12

## Every score

- GitHub_M: CVSS:4.0 8.7 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`

## References

- <https://github.com/xmldom/xmldom/security/advisories/GHSA-6mj3-qw4j-hgrw> (exploit, web)
- <https://github.com/xmldom/xmldom/pull/1071> (web)
- <https://github.com/xmldom/xmldom/commit/7ced40c06c28d151e996a97045018c3559ae4707> (web)
- <https://github.com/xmldom/xmldom/releases/tag/0.9.12> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-83612> (advisory)
- <https://github.com/xmldom/xmldom> (package)

## Sources

- CVE List: [CVE-2026-83612](https://www.cve.org/CVERecord?id=CVE-2026-83612), CVE Terms of Use, modified 2026-09-01
- GitHub Advisory Database: [GHSA-6mj3-qw4j-hgrw](https://github.com/advisories/GHSA-6mj3-qw4j-hgrw), CC-BY-4.0, modified 2026-09-08
- NVD: [CVE-2026-83612](https://nvd.nist.gov/vuln/detail/CVE-2026-83612), Public domain, modified 2026-09-08

---

Page: https://cve.day/CVE-2026-83612 · Whole record: https://cve.day/CVE-2026-83612.json · Rebuilt by cve.day 2026-11-25T22:59:35.967Z
