Description
xmldom is an open source pure JavaScript W3C standard-based (XML DOM Level 2 Core) DOMParser and XMLSerializer module. xmldom versions 0.6.0 and older do not correctly escape special characters when serializing elements removed from their ancestor. This may lead to unexpected syntactic changes during XML processing in some downstream applications. This issue has been resolved in version 0.7.0. As a workaround downstream applications can validate the input and reject the maliciously crafted documents.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| xmldom | xmldom | < 0.7.0 | — |
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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | node-xmldom | 0.7.3-1 | — |
| Debian 13 | node-xmldom | 0.7.3-1 | — |
| Debian 12 | node-xmldom | 0.7.3-1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | node-xmldom | No fix yet | — |
| Ubuntu 26.04 LTS | node-xmldom | No fix yet | — |
| Ubuntu 25.10 | node-xmldom | No fix yet | — |
| Ubuntu 24.04 LTS | node-xmldom | No fix yet | — |
| Ubuntu 20.04 LTS | node-xmldom | No fix yet | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | @xmldom/xmldom | < 0.7.0 | 0.7.0 | GHSA-5fg8-2547-mr8q |
| npm | xmldom | <= 0.6.0 | — | GHSA-5fg8-2547-mr8q |
Advisories 1
- WID-SEC-2025-1893 IBM App Connect Enterprise (xmldom): Schwachstelle ermöglicht Manipulation von Daten BSI CERT-Bund (WID) · Aug 21, 2025