Skip to content
OpenAdvisories
Medium · 6.3 CVE-2026-83610 EUVD-2026-69222GHSA-6gmq-8vp8-gcm6

xmldom: XML fragment injection via invalid EntityReference.nodeName during requireWellFormed serialization

Published Sep 1, 2026 · Updated Sep 3, 2026 · Assigned by GitHub_M

Description

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 ENTITY_REFERENCE_NODE 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 products

VendorProductAffectedFixed
xmldom xmldom <= 0.6.0 —
@xmldom xmldom >= 0.7.0, < 0.8.15, >= 0.9.0, < 0.9.12 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 node-xmldom 0.9.12-1 —
Debian 13 node-xmldom No fix yet —
Debian 12 node-xmldom No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 node-xmldom No fix yet —
Ubuntu 26.04 LTS node-xmldom No fix yet —
Ubuntu 24.04 LTS node-xmldom No fix yet —
Ubuntu 22.04 LTS node-xmldom No fix yet —
Ubuntu 20.04 LTS node-xmldom No fix yet —

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 python-tensorboard No fix yet —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling sqlpad 7.5.7-r37 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm @xmldom/xmldom >= 0.7.0, < 0.8.15 0.8.15 GHSA-6gmq-8vp8-gcm6
npm @xmldom/xmldom >= 0.9.0, < 0.9.12 0.9.12 GHSA-6gmq-8vp8-gcm6
npm xmldom <= 0.6.0 — GHSA-6gmq-8vp8-gcm6

Advisories 1

References