Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. set-in
  4. ›
  5. CVE-2022-25354

CVE-2022-25354: Prototype Pollution in set-in

March 17, 2022 (updated March 24, 2022)

The package set-in before 2.0.3 is vulnerable to Prototype Pollution via the setIn method, as it allows an attacker to merge object prototypes into it. Note: This vulnerability derives from an incomplete fix of CVE-2020-28273

References

  • github.com/advisories/GHSA-6956-83fg-5wc5
  • github.com/ahdinosaur/set-in/blob/dfc226d95cce8129de6708661e06e0c2c06f3490/index.js%23L5
  • github.com/ahdinosaur/set-in/commit/6bad255961d379e4b1f5fbc52ef9dc8420816f24
  • nvd.nist.gov/vuln/detail/CVE-2022-25354
  • snyk.io/vuln/SNYK-JS-SETIN-2388571

Code Behaviors & Features

Detect and mitigate CVE-2022-25354 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 2.0.3

Fixed versions

  • 2.0.3

Solution

Upgrade to version 2.0.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/set-in/CVE-2022-25354.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:15 +0000.