CVE-2020-7766
Summary
| CVE | CVE-2020-7766 |
|---|---|
| State | PUBLIC |
| Assigner | [email protected] |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2020-11-10 16:15:00 UTC |
| Updated | 2022-12-02 19:44:00 UTC |
| 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. |
Risk And Classification
Problem Types: CWE-1321
NVD Known Affected Configurations (CPE 2.3)
| Type | Vendor | Product | Version | Update | Edition | Language |
|---|---|---|---|---|---|---|
| Application | Json-ptr Project | Json-ptr | All | All | All | All |
| Application | Json-ptr Project | Json-ptr | All | All | All | All |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| Prototype Pollution in org.webjars.npm:json-ptr | Snyk | MISC | snyk.io | Exploit, Third Party Advisory |
| Prototype Pollution in json-ptr | Snyk | MISC | snyk.io | Exploit, Third Party Advisory |
| github.com/flitbit/json-ptr/blob/master/src/util.ts%23L174 | MISC | github.com | Broken Link |
| json-ptr/util.ts at master · flitbit/json-ptr · GitHub | MITRE | github.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
Vendor Comments And Credit
Discovery Credit
LEGACY: Alessio Della Libera (d3lla)
Legacy QID Mappings
- 982393 Nodejs (npm) Security Update for json-ptr (GHSA-x5r6-x823-9848)