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

Published Sep 1, 2026
·
Updated

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.

Affected Software

1 affected component
npm/@xmldom/xmldom>=0.9.0-beta.1<0.9.12

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade @xmldom/xmldom to a version that resolves this vulnerability.

    Fixed in 0.9.12

Event History

Sep 1, 2026
CVE Published
via MITRE·02:36 PM
Data Sourced
via MITRE·02:36 PM
DescriptionWeakness

Frequently Asked Questions

1

Which applications are exposed to this issue?

Applications using @xmldom/xmldom versions from 0.9.0-beta.1 through 0.9.12 are exposed when they parse untrusted text/html with DOMParser.parseFromString() and subsequently serialize the result. The affected handling applies to script, style, textarea, and title raw-text elements.

2

What must an attacker provide to trigger the amplification?

An attacker needs to supply a small HTML document containing a mixed-case closing tag for an affected raw-text element. Parsing it in HTML mode can cause unstable parser progression and quadratic output amplification, consuming disproportionate CPU and memory.

3

Is XML parsing affected?

The issue is described in HTML-mode parsing through DOMParser.parseFromString() for untrusted text/html input. The provided information does not identify XML-mode parsing as affected.

4

What is the available remediation?

Update @xmldom/xmldom to version 0.9.12, which is identified as the fixed version.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203