CVE-2021-23509 Prototype Pollution

Medium 5.6 Published Updated

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.

PackageAffectedFixed in
json-ptr npmAll versions3.0.0
json-ptr npmAll versions3.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.

Sources

Also known as GHSA-8gwj-8hxc-285w.

Is CVE-2021-23509 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free