Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. object-path-set
  4. ›
  5. CVE-2021-23507

CVE-2021-23507: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')

February 4, 2022 (updated February 9, 2022)

The package object-path-set is vulnerable to Prototype Pollution via the setPath method, as it allows an attacker to merge object prototypes into it. Note: This vulnerability derives from an incomplete fix in https://security.snyk.io/vuln/SNYK-JS-OBJECTPATHSET-607908

References

  • github.com/skratchdot/object-path-set/blob/577f5299fed15bb9edd11c940ff3cf0b9f4748d5/index.js%23L8
  • github.com/skratchdot/object-path-set/commit/2d67a714159c4099589b6661fa84e6d2adc31761
  • nvd.nist.gov/vuln/detail/CVE-2021-23507
  • snyk.io/blog/remediate-javascript-type-confusion-bypassed-input-validation/
  • snyk.io/vuln/SNYK-JS-OBJECTPATHSET-2388576

Code Behaviors & Features

Detect and mitigate CVE-2021-23507 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 before 1.0.2

Fixed versions

  • 1.0.2

Solution

Upgrade to version 1.0.2 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/object-path-set/CVE-2021-23507.yml

Spotted a mistake? Edit the file on GitLab.

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

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