xmldom: XML fragment injection via invalid EntityReference.nodeName during requireWellFormed serialization — GHSA-6GMQ-8VP8-GCM6
GitHub · GitHub · GHSA-6GMQ-8VP8-GCM6
ID
GHSA-6GMQ-8VP8-GCM6
GHSA-6GMQ-8VP8-GCM6
Date
Source
GitHub
GitHub
Vendor
GitHub
GitHub
Threat
medium
medium
CVSS
6.3
6.3
Summary
## Summary An `EntityReference` node can be created with an invalid, attacker-controlled name through `Document.createEntityReference(name)`. When this node is serialized directly with: ```js serializer.serializeToString(ref, { requireWellFormed: true }) ``` the invalid `nodeName` is emitted into the serialized XML fragment without validation or escaping. This can produce real XML markup in the serialized output.…
Timeline
- Published by source
- 2026-09-02
Risk context
- Reported severity or threat level: medium.
- Reported CVSS score: 6.3 out of 10.
- Review exposure for the affected product or family: npm: @xmldom/xmldom | npm: xmldom.
Product
npm: @xmldom/xmldom | npm: xmldom
What to do
General, cautious steps (verify details in the official source):
- Review exposure and plan remediation based on risk and environment.
- Identify affected product versions in your inventory and verify whether you are impacted.
- Apply vendor patches/updates or recommended mitigations as soon as available.
- Read the official advisory for exact affected versions and remediation steps.
Official advisory
Evidence and provenance
- Canonical advisory ID
- GHSA-6GMQ-8VP8-GCM6
- Source
- GitHub
- Vendor
- GitHub
- Published by source
- 2026-09-02
- Last source activity
- 2026-09-02
- Additional identifiers
- CVE-2026-83610
- Curated by
- hlukh.ch
Related advisories and connections
These advisories are connected by shared CVE, product, vendor, source, or time signals.