Prototype Pollution in Json-Ptr Project
CVE-2020-7766
- CVSS v3
- 7.3 High
- Public exploits
- None known
- EPSS
- 0.019 · 80.1th percentile
- Published
- 2020-11-10
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.
Vulnerability class: Prototype Pollution
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.3 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L.
- Attack Vector
- Network
AV:N - Attack Complexity
- Low
AC:L - Privileges Required
- None
PR:N - User Interaction
- None
UI:N - Scope
- Unchanged
S:U - Confidentiality
- Low
C:L - Integrity
- Low
I:L - Availability
- Low
A:L
EPSS exploit prediction
EPSS 0.019, 80.1th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Json-Ptr Project
- Json-Ptr — versions 0
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 2 other repositories (dellalibera/dellalibera, Live-Hack-CVE/CVE-2020-7766). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- snyk.io/vuln/SNYK-JS-JSONPTR-1016939 (Exploit, Third Party Advisory)
- snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1038396 (Exploit, Third Party Advisory)
- github.com/flitbit/json-ptr/blob/master/src/util.ts#L174 (Broken Link)