CVE-2026-83613: xmldom: Quadratic-time attribute deduplication

Published Sep 1, 2026
·
Updated

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, DOMHandler.startElement in lib/dom-parser.js inserts every parsed attribute through setAttributeNode, while NamedNodeMap.setNamedItem in lib/dom.js calls the linear getNamedItem or getNamedItemNS lookup for each insertion. A well-formed element with many distinct attributes therefore requires quadratic comparisons during DOMParser.parseFromString() and can stall a Node.js event loop before application validation. This issue is fixed in @xmldom/xmldom versions 0.8.15 and 0.9.12; no fixed version is available for xmldom.

Affected Software

3 affected components
npm/@xmldom/xmldom>0.8.15<
npm/@xmldom/xmldom<0.8.15
npm/@xmldom/xmldom<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.8.15
  2. 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:38 PM
Data Sourced
via MITRE·02:38 PM
DescriptionWeakness

Frequently Asked Questions

1

Which deployments are realistically exposed to denial of service?

Applications that parse attacker-controlled or otherwise untrusted XML with DOMParser.parseFromString() are exposed. A single well-formed XML element containing many distinct attributes can stall the Node.js event loop before application-level validation runs.

2

What must an attacker provide to trigger the issue?

The attacker needs to cause the application to parse a well-formed XML document containing an element with many distinct attributes. No malformed XML is required.

3

Are fixed versions available for all affected package lines?

Fixed releases are available for @xmldom/xmldom 0.8.15 and 0.9.12. No fixed version is available for the xmldom package; version 0.6.0 and earlier are affected.

4

What can be done if an immediate upgrade is not possible?

Avoid parsing untrusted XML with the affected parser, or reject inputs with excessive attribute counts before they reach DOMParser.parseFromString(). Application validation after parsing does not prevent the event-loop stall.

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