CVE-2026-83610: xmldom: XML fragment injection via invalid EntityReference.nodeName during requireWellFormed serialization

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, Document.createEntityReference(name) accepts an invalid name and the ENTITYREFERENCENODE serializer emits the resulting nodeName directly in &name; form. Directly serializing the node or fragment with XMLSerializer.serializeToString() and requireWellFormed: true can therefore break the entity-reference boundary and produce attacker-controlled XML markup when reparsed. The parser does not ordinarily create these nodes, and element-child insertion is rejected, so exploitation requires an application to create and directly serialize an EntityReference. 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.9.12<
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.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:31 PM
Data Sourced
via MITRE·02:31 PM
DescriptionWeakness

Frequently Asked Questions

1

Which applications are realistically exposed to this issue?

Exposure requires application code to call Document.createEntityReference() with attacker-influenced input and directly serialize the resulting EntityReference node or fragment using XMLSerializer.serializeToString() with requireWellFormed: true. The parser does not normally create these nodes, and inserting them as element children is rejected.

2

Are normal XML parsing workflows affected?

The parser does not ordinarily create the affected EntityReference nodes. The issue arises from application-created EntityReference nodes that are directly serialized and whose output is later reparsed.

3

What should be done if upgrading is not immediately possible?

Do not create EntityReference nodes from untrusted names, and avoid directly serializing application-created EntityReference nodes or fragments containing them. Validate entity-reference names before calling Document.createEntityReference().

4

Which versions contain fixes?

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

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