CVE-2026-83607: xmldom: Element name injection via createElement() bypasses requireWellFormed

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.14 and 0.9.11, and in xmldom version 0.6.0 and earlier, Document.createElement(tagName) stores an unvalidated element name and XMLSerializer.serializeToString() emits that name verbatim. The requireWellFormed: true path did not validate the element qualified name or synthesized xmlns:PREFIX declaration, so attacker-controlled tag names could inject attributes, elements, or processing instructions into serialized XML or HTML and could cause cross-site scripting when browser-consumed. The unchecked values violate the XML QName constraint, and default serialization and creation-time createElement() behavior remain permissive. This issue is fixed in @xmldom/xmldom versions 0.8.14 and 0.9.11; no fixed version is available for xmldom.

Affected Software

3 affected components
npm/@xmldom/xmldom<0.8.14
npm/@xmldom/xmldom<0.9.11
npm/@xmldom/xmldom<=0.6.0

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.14
  2. Upgrade

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

    Fixed in 0.9.11

Event History

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

Frequently Asked Questions

1

Which applications are most exposed to this issue?

Applications that pass attacker-controlled strings to Document.createElement() and later serialize the resulting DOM are exposed. Risk is highest when the serialized XML or HTML is consumed by a browser, where injected markup can lead to cross-site scripting.

2

Is the default behavior affected?

Yes. Element creation and default serialization remain permissive, and requireWellFormed: true did not validate the element qualified name or synthesized namespace declaration.

3

What attacker-controlled input is needed to exploit this?

An attacker needs control over a tagName passed to Document.createElement(). A malformed name can then be emitted verbatim by XMLSerializer.serializeToString(), allowing injection of attributes, elements, or processing instructions.

4

Which versions have a fix?

@xmldom/xmldom is fixed in versions 0.8.14 and 0.9.11. xmldom has no fixed version available; affected releases include 0.6.0 and earlier.

5

What can be done if upgrading is not immediately possible?

Do not pass untrusted values to Document.createElement(). Enforce XML QName validation on tag names before element creation, and avoid rendering serialized output in browsers when untrusted names may have entered the DOM.

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