XML Injection Affecting node-xmldom package, versions <0.7.3-1


Severity

Recommended
0.0
medium
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
1.36% (70th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-ECHOLATEST-NODEXMLDOM-19498271
  • published2 Sept 2026
  • disclosed27 Jul 2021

Introduced: 27 Jul 2021

CVE-2021-32796  (opens in a new tab)
CWE-91  (opens in a new tab)
CWE-116  (opens in a new tab)

How to fix?

Upgrade Echo:latest node-xmldom to version 0.7.3-1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream node-xmldom package and not the node-xmldom package as distributed by Echo. See How to fix? for Echo:latest relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1