CVE-2021-23509:
Prototype Pollution in json-ptr
5.6
CVSS ScoreBasic Information
CVE ID
GHSA ID
EPSS Score
-
CWE
Published
11/8/2021
Updated
2/1/2023
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
json-ptr | npm | < 3.0.0 | 3.0.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The commit diff shows critical validation was added to both functions: 1) Type checks for path segments (string/number) to prevent array-based type confusion 2) Explicit blocking of proto/constructor/prototype paths. The added tests demonstrate these were the vectors for prototype pollution. The vulnerability description specifically mentions array-based keys bypassing previous protections (CVE-2020-7766), which aligns with the missing type checks in these functions' path parameter handling.