In short
- CVE-2020-7766 is a CRITICAL (CVSS 9.8) vulnerability affecting json-ptr (json-ptr project), json-ptr.
- Chance of exploitation in the next 30 days (EPSS): 1.9%, higher than 79.8% of all vulnerabilities.
- Fix: update to 2.0.0, 2.1.0 or later.
| Package | Affected versions | Patched versions |
|---|
| json-ptr | < 2.0.0
| 2.0.0
|
| json-ptr npm | < 2.1.0
| 2.1.0
|
Description
npm json-ptr before 2.1.0 has an arbitrary code execution vulnerability. The issue occurs in the set operation 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.
NVD 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.
Running one of these products? Scan your site to see whether it exposes a vulnerable version.
Scan my site free