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.
References
Link | Resource |
---|---|
https://snyk.io/vuln/SNYK-JS-JSONPTR-1016939 | Exploit Third Party Advisory |
https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1038396 | Exploit Third Party Advisory |
https://github.com/flitbit/json-ptr/blob/master/src/util.ts%23L174 | Broken Link |
Configurations
Information
Published : 2020-11-10 08:15
Updated : 2022-12-02 11:44
NVD link : CVE-2020-7766
Mitre link : CVE-2020-7766
JSON object : View
CWE
CWE-1321
Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')
Products Affected
json-ptr_project
- json-ptr