Improper Input Validation Affecting @xmldom/xmldom package, versions <0.7.0
Threat Intelligence
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 ID SNYK-JS-XMLDOMXMLDOM-2813775
- published 28 Jul 2021
- disclosed 28 Jul 2021
- credit Unknown
Introduced: 28 Jul 2021
CVE-2021-32796 Open this link in a new tabHow 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.