Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution') Affecting node-xmldom package, versions <0.7.5-1ubuntu0.22.10.1


Severity

Recommended
medium

Based on Ubuntu security rating.

Threat Intelligence

EPSS
2.12% (82nd 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-UBUNTU2210-NODEXMLDOM-3064917
  • published11 Oct 2022
  • disclosed11 Oct 2022

Introduced: 11 Oct 2022

CVE-2022-37616  (opens in a new tab)
CWE-1321  (opens in a new tab)

How to fix?

Upgrade Ubuntu:22.10 node-xmldom to version 0.7.5-1ubuntu0.22.10.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 Ubuntu. See How to fix? for Ubuntu:22.10 relevant fixed versions and status.

A prototype pollution vulnerability exists in the function copy in dom.js in the xmldom (published as @xmldom/xmldom) package before 0.8.3 for Node.js via the p variable. NOTE: the vendor states "we are in the process of marking this report as invalid"; however, some third parties takes the position that "A prototype injection/Prototype pollution is not just when global objects are polluted with recursive merge or deep cloning but also when a target object is polluted."

CVSS Base Scores

version 3.1