Vulnerability 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.
CVSS Score
HIGH
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Json-Ptr Project | Json-Ptr | < 2.0.0 |
Related Weaknesses (CWE)
References
- https://github.com/flitbit/json-ptr/blob/master/src/util.ts%23L174Broken Link
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1038396ExploitThird Party Advisory
- https://snyk.io/vuln/SNYK-JS-JSONPTR-1016939ExploitThird Party Advisory
- https://github.com/flitbit/json-ptr/blob/master/src/util.ts%23L174Broken Link
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1038396ExploitThird Party Advisory
- https://snyk.io/vuln/SNYK-JS-JSONPTR-1016939ExploitThird Party Advisory
FAQ
What is CVE-2020-7766?
CVE-2020-7766 is a vulnerability with a CVSS score of 7.3 (HIGH). 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. ...
How severe is CVE-2020-7766?
CVE-2020-7766 has been rated HIGH with a CVSS base score of 7.3/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2020-7766?
Check the references section above for vendor advisories and patch information. Affected products include: Json-Ptr Project Json-Ptr.