Improper Input Validation Affecting @xmldom/xmldom package, versions <0.7.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.08% (38th 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-JS-XMLDOMXMLDOM-2813775
  • published28 Jul 2021
  • disclosed28 Jul 2021
  • creditUnknown

Introduced: 28 Jul 2021

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

How to fix?

Upgrade @xmldom/xmldom to version 0.7.0 or higher.

Overview

@xmldom/xmldom is a javascript ponyfill to provide the following APIs that are present in modern browsers to other runtimes. Since version 0.7.0 this package is published to npm as @xmldom/xmldom and no longer as xmldom

Affected versions of this package are vulnerable to Improper Input Validation. It does not correctly escape special characters when serializing elements are removed from their ancestor. This may lead to unexpected syntactic changes during XML processing in some downstream applications.

Note: Customers who use "xmldom" package, should use "@xmldom/xmldom" instead, as "xmldom" is no longer maintained.

CVSS Scores

version 3.1