CVE-2020-7766Json-ptr Project Json-ptr
Critical 9.8 No auth needed
Follow: this CVE · Json-ptr Project · Json-ptr Project Json-ptr We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.1
- 9.8
- EPSS
- 1.9% probability of exploitation in 30 days · percentile 80
- Auth required
- No
- Published
- Nov 10, 2020
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-1321
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Json-ptr.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | json-ptr |
< 2.1.0 |
2.1.0 |
npm install json-ptr@2.1.0 |
Per OSV / GitHub Advisories (GHSA-x5r6-x823-9848). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| json-ptr_project | json-ptr | < 2.0.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Broken Link
- snyk.io Exploit Third Party Advisory
- snyk.io Exploit Third Party Advisory