CVEvulnerability
CVE-2020-7766
9.8 CRITICAL
Official page ↗
- Status
- Modified
- Published
- 2020-11-10
- Last modified
- 2026-06-17
- Assigner
- [email protected]
- CVSS 3.1 ([email protected])
- 7.3 HIGH — CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
- CVSS 3.1 ([email protected])
- 9.8 CRITICAL — CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- CVSS 2.0 ([email protected])
- 7.5 HIGH — AV:N/AC:L/Au:N/C:P/I:P/A:P
- Weaknesses
- CWE-1321
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.
Affected configurations
• json-ptr project json-ptr (< 2.0.0)
Related
Weakness · CWE (1)
- CWE-1321 Improperly Controlled Modification of Object Prototype Attributes weakness
References
- https://github.com/flitbit/json-ptr/blob/master/src/util.ts%23L174 Broken Link
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1038396 Exploit, Third Party Advisory
- https://snyk.io/vuln/SNYK-JS-JSONPTR-1016939 Exploit, Third Party Advisory
- https://github.com/flitbit/json-ptr/blob/master/src/util.ts%23L174 Broken Link
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1038396 Exploit, Third Party Advisory
- https://snyk.io/vuln/SNYK-JS-JSONPTR-1016939 Exploit, Third Party Advisory