Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. dset
  4. ›
  5. CVE-2022-25645

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

May 1, 2022 (updated September 12, 2023)

All versions of package dset is vulnerable to Prototype Pollution via dset/merge mode, as the dset function checks for prototype pollution by validating if the top-level path contains __proto__, constructor or protorype. By crafting a malicious object, it is possible to bypass this check and achieve prototype pollution.

References

  • github.com/lukeed/dset/blob/master/src/merge.js%23L9
  • nvd.nist.gov/vuln/detail/CVE-2022-25645
  • snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2431974
  • snyk.io/vuln/SNYK-JS-DSET-2330881

Code Behaviors & Features

Detect and mitigate CVE-2022-25645 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 3.1.2

Fixed versions

  • 3.1.2

Solution

Upgrade to version 3.1.2 or above.

Impact 8.1 HIGH

CVSS:3.1/AV:N/AC:H/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/dset/CVE-2022-25645.yml

Spotted a mistake? Edit the file on GitLab.

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

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