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

CVE-2022-37616: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')

October 11, 2022 (updated February 10, 2023)

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.

References

  • github.com/advisories/GHSA-9pgh-qqpf-7wqj
  • github.com/xmldom/xmldom/blob/bc36efddf9948aba15618f85dc1addfc2ac9d7b2/lib/dom.js
  • github.com/xmldom/xmldom/blob/bc36efddf9948aba15618f85dc1addfc2ac9d7b2/lib/dom.js
  • github.com/xmldom/xmldom/issues/436
  • github.com/xmldom/xmldom/pull/437
  • github.com/xmldom/xmldom/security/advisories/GHSA-9pgh-qqpf-7wqj
  • nvd.nist.gov/vuln/detail/CVE-2022-37616

Code Behaviors & Features

Detect and mitigate CVE-2022-37616 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 up to 0.7.6, all versions starting from 0.8.0 before 0.8.3, version 0.9.0

Fixed versions

  • 0.7.7
  • 0.8.3

Solution

Upgrade to versions 0.7.7, 0.8.3 or above.

Impact 9.8 CRITICAL

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

Learn more about CVSS

Weakness

  • CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')

Source file

npm/@xmldom/xmldom/CVE-2022-37616.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Wed, 14 May 2025 12:15:02 +0000.