Quick answers
- Is CVE-2026-83612 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2026-83612 being exploited in the wild.
- How severe is CVE-2026-83612?
- High severity, with a CVSS score of 4, published 1 September 2026.
- Which products and versions are affected?
- @xmldom/xmldom (npm) >= 0.9.0-beta.1, <= 0.9.11, SEMVER:introduced=0.9.0-beta.1,fixed=0.9.12.
- Is there a fix for CVE-2026-83612?
- Yes. @xmldom/xmldom (npm): upgrade to 0.9.12 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2026-83612 attacked?
- It is attacked over the network, in a software library.
- Am I affected by CVE-2026-83612?
- Check whether you run @xmldom/xmldom (npm) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
- @xmldom/xmldom (npm): upgrade to 0.9.12 or later
npm install @xmldom/xmldom@0.9.12
Technical details
The vulnerability is a combination of improper case-sensitive matching and unguarded array index handling in the `parseHtmlSpecialContent` function (lib/sax.js). The parser searches for closing tags using a case-sensitive `indexOf` operation, contrary to the WHATWG HTML specification which requires case-insensitive matching for raw-text element end tags. When a mixed-case closing tag is encountered (e.g., `</ScRiPt>` instead of `</script>`), the search fails and returns -1. The code then calls `source.substring(elStartEnd + 1, -1)`, which extracts text backwards from the document start instead of the element's content. The function returns -1 to the parse loop, which cannot advance normally and falls back to character-by-character reprocessing. This causes every raw-text element to re-capture all preceding source text, resulting in O(n²) output growth. An attacker can craft HTML with multiple case-mismatched raw-text elements to force disproportionate resource consumption. The fix (applied in version 0.9.12) implements case-insensitive matching per the HTML specification and properly handles missing closing tags. Only 0.9.x versions (0.9.0-beta.1 through 0.9.11) are affected; 0.8.x is unaffected.
Affected products
- xmldom xmldom >=0.9.0-beta.1, <=0.9.11
Identifiers
- CVE-2026-83612
- GHSA-6mj3-qw4j-hgrw
Timeline
- 2026-09-08: disclosed: Published to GitHub Advisory Database
- 2026-09-01: advisory: Published to NVD
- 2026-09-08: patched: Patch released in version 0.9.12
References
- https://api.github.com/users/KarimTantawey
- https://github.com/KarimTantawey
- https://api.github.com/users/KarimTantawey/gists%7B/gist_id%7D
- https://api.github.com/users/KarimTantawey/repos
- https://avatars.githubusercontent.com/u/111700861?v=4
- https://api.github.com/users/KarimTantawey/events%7B/privacy%7D