Description
xmldom is a pure JavaScript W3C standard-based (XML DOM Level 2 Core) `DOMParser` and `XMLSerializer` module. In @xmldom/xmldom prior to versions 0.9.10 and 0.8.13 and xmldom version 0.6.0 and prior, the package allows attacker-controlled comment content to be serialized into XML without validating or neutralizing comment-breaking sequences. As a result, an attacker can terminate the comment early and inject arbitrary XML nodes into the serialized output. This issue has been patched in versions @xmldom/xmldom versions 0.9.10 and 0.8.13.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| xmldom | xmldom | xmldom <= 0.6.0, @xmldom/xmldom >= 0.9.0, < 0.9.10, @xmldom/xmldom < 0.8.13 | — |
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.9.10-1 | — |
| Debian 13 | node-xmldom | No fix yet | — |
| Debian 12 | node-xmldom | No fix yet | — |
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 22.04 LTS | node-xmldom | No fix yet | — |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | node-xmldom | No fix yet | — |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | npm | 11.13.0-r1 | — |
| Wolfi rolling | saf | 1.6.0-r0 | — |
| Wolfi rolling | sqlpad | 7.5.7-r18 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | @xmldom/xmldom | < 0.8.13 | 0.8.13 | GHSA-j759-j44w-7fr8 |
| npm | @xmldom/xmldom | >= 0.9.0, < 0.9.10 | 0.9.10 | GHSA-j759-j44w-7fr8 |
| npm | xmldom | <= 0.6.0 | — | GHSA-j759-j44w-7fr8 |
Advisories 1
- WID-SEC-2026-1833 IBM App Connect Enterprise (basic-ftp, xmldom): Mehrere Schwachstellen BSI CERT-Bund (WID) · Jun 15, 2026
References
- https://github.com/xmldom/xmldom/security/advisories/GHSA-j759-j44w-7fr8
- https://github.com/xmldom/xmldom/pull/987
- https://github.com/xmldom/xmldom/commit/b397540889086da868c30c366ad5c220d1a750c7
- https://github.com/xmldom/xmldom/commit/fda7cc313de30243fea35cada64e0bb12099c2a1
- https://github.com/xmldom/xmldom/releases/tag/0.8.13
- https://github.com/xmldom/xmldom/releases/tag/0.9.10