Critical severity · published Nov 10, 2020
CVE-2020-7766
This affects all versions of package json-ptr
9.8
CVSS
1.9%
EPSS
No
On KEV
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 vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)1.9% · higher than 80% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
JS
Json-ptr · Json-ptr Project
before 2.0.0 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2020-7766
CVE.org
https://www.cve.org/CVERecord?id=CVE-2020-7766
Broken Link
https://github.com/flitbit/json-ptr/blob/master/src/util.ts%23L174
Exploit
https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1038396
Exploit
https://snyk.io/vuln/SNYK-JS-JSONPTR-1016939
More from Json-ptr
9.8
CVE-2021-23509
This affects the package json-ptr before 3.0.0
