Medium

Misinterpretation of malicious XML input

  • Disclosed: 12.03.2021
  • Updated: 11.10.2026 10:22

Impact

xmldom versions 0.4.0 and older do not correctly preserve system identifiers, FPIs or namespaces when repeatedly parsing and serializing maliciously crafted documents.

This may lead to unexpected syntactic changes during XML processing in some downstream applications.

Patches

Update to 0.5.0 (once it is released)

Workarounds

Downstream applications can validate the input and reject the maliciously crafted documents.

References

Similar to this one reported on the Go standard library:

For more information

If you have any questions or comments about this advisory:

  • Open an issue in xmldom/xmldom
  • Email us: send an email to all addresses that are shown by npm owner ls xmldom

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
npm package xmldom < 0.5.0 0.5.0

References

CVSS score 4.3/10
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
Weakness (CWE)
CWE-115, CWE-436
Platform
npm
Package
xmldom
Disclosed
12.03.2021
Updated
11.10.2026 10:22

Sources and licenses

OSV / GitHub Advisory Database - GHSA-h6q6-9hqw-rwfv - CC BY 4.0

Vulnerability history: xmldom

All published vulnerabilities of this package (npm package), newest first. Shows whether this is a one-off slip or a package that needs watching.

All (17) in the archive
Total entries
17
First → latest
03.2021 09.2026
Without a fix
16
Exploited in attacks
0

Severity breakdown

  • Critical 1
  • High 12
  • Medium 4

Disclosures per year

  1. 2021: 2
  2. 2022: 1
  3. 2023: 0
  4. 2024: 0
  5. 2025: 0
  6. 2026: 14
Severity:
  1. High CVE-2026-83613 <= 0.6.0 no fix
  2. High CVE-2026-83615 >= 0.1.5, <= 0.6.0 no fix
  3. Critical · 9.8 CVE-2022-39353 <= 0.6.0 no fix
  4. Misinterpretation of malicious XML input this entry
    Medium · 4.3 CVE-2021-21366 < 0.5.0 0.5.0

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.