CVE-2021-23509 Prototype Pollution
An attacker can bypass previous security fixes in the json-ptr library by using array keys in pointer parameters, leading to potential security control evasion.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2021-23509?
CVE-2021-23509 is a medium-severity vulnerability in json-ptr, published on 3 Nov 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
This affects the package json-ptr before 3.0.0. A type confusion vulnerability can lead to a bypass of CVE-2020-7766 when the user-provided keys used in the pointer parameter are arrays.
Weakness: CWE-843
Which versions are affected by CVE-2021-23509?
2 open source packages ship an affected version, including json-ptr. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
json-ptr npm | All versions | 3.0.0 |
json-ptr npm | All versions | 3.0.0 |
Products include Json-Ptr Project Json-Ptr.
How do I fix CVE-2021-23509?
Upgrade json-ptr to 3.0.0 or later.
Is CVE-2021-23509 being exploited?
There is no known exploitation of CVE-2021-23509 in the wild and no public exploit code.
Other vulnerabilities in json-ptr
Sources
Also known as GHSA-8gwj-8hxc-285w.