Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @xmldom/xmldom
  4. ›
  5. CVE-2026-41672

CVE-2026-41672: xmldom has XML node injection through unvalidated comment serialization

April 22, 2026 (updated May 8, 2026)

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.


References

  • github.com/advisories/GHSA-j759-j44w-7fr8
  • github.com/xmldom/xmldom
  • github.com/xmldom/xmldom/commit/b397540889086da868c30c366ad5c220d1a750c7
  • github.com/xmldom/xmldom/commit/fda7cc313de30243fea35cada64e0bb12099c2a1
  • github.com/xmldom/xmldom/pull/987
  • github.com/xmldom/xmldom/releases/tag/0.8.13
  • github.com/xmldom/xmldom/releases/tag/0.9.10
  • github.com/xmldom/xmldom/security/advisories/GHSA-j759-j44w-7fr8
  • nvd.nist.gov/vuln/detail/CVE-2026-41672

Code Behaviors & Features

Detect and mitigate CVE-2026-41672 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.8.13, all versions starting from 0.9.0 before 0.9.10

Fixed versions

  • 0.8.13
  • 0.9.10

Solution

Upgrade to versions 0.8.13, 0.9.10 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-91: XML Injection (aka Blind XPath Injection)

Source file

npm/@xmldom/xmldom/CVE-2026-41672.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 09 May 2026 12:18:41 +0000.