CVE-2020-7766 Prototype Pollution
CriticalCVSS 9.8
EPSS 1.9%
- Published
- Updated
- Exploit status
- No public exploit known
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.
Upgrade path
2 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| json-ptr project json-ptr | < 2.0.0 | 2.0.0 | Fixed |
| npm json-ptr(npm) | < 2.1.0 | 2.1.0 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm json-ptr(npm) | < 2.1.0 | 2.1.0 |
| json-ptr project json-ptr | < 2.0.0 | 2.0.0 |
References
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com patch
- github.com broken-link
- snyk.io exploit third-party-advisory
- snyk.io exploit third-party-advisory
- www.npmjs.com
- www.huntr.dev exploit
- github.com patch
- github.com