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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | json-ptr | 2.1.0 | GHSA-x5r6-x823-9848 |
Affected products (as reported)
References
- https://snyk.io/vuln/SNYK-JS-JSONPTR-1016939 x_refsource_MISC
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1038396 x_refsource_MISC
- https://github.com/flitbit/json-ptr/blob/master/src/util.ts%23L174 x_refsource_MISC