Vulnerability · Published Nov 10, 2020 · Assigned by snyk

CVE-2020-7766Prototype Pollution

High 7.3

In plain English

A high-severity security flaw in json-ptr. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.9% (higher than 80% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.3High
Exploit odds (30 days)1.9%top 20.2% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official description

This affects all versions of package json-ptr. The issue occurs in the set operation (https://flitbit.github.io/json-ptr/classes/_src_pointer_.jsonpointer.htmlset) when the force flag is set to true. The function recursively set the property in the target object, however it does not properly check the key being set, leading to a prototype pollution.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
npmjson-ptr2.1.0GHSA-x5r6-x823-9848

Affected products (as reported)

VendorProductVersions
n/a json-ptr 0 – before unspecified

References