Home / json-ptr / json-ptr / CVE-2020-7766
CVE-2020-7766: is it exploited, and which versions of json-ptr are affected and fixed?
CVE-2020-7766 is a prototype pollution vulnerability in json-ptr. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 17:09 UTC). Affected: json-ptr before 2.1.0 (GitHub advisory GHSA-x5r6-x823-9848). Fixed in 2.1.0 (GitHub advisory GHSA-x5r6-x823-9848). Severity: High (7.3, CVSS 3.1, from snyk).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 17:09 UTC, CVE record November 19, 2026, 07:16 UTC and NVD November 19, 2026, 08:06 UTC.
What is CVE-2020-7766?
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.
From the CVE record by snyk, last updated September 16, 2024, 22:14 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| json-ptr | before unspecified | unspecified |
As the CVE record by snyk states it, last updated September 16, 2024. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| npm | json-ptr | < 2.1.0 | 2.1.0 | GHSA-x5r6-x823-9848 |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated September 5, 2023. Summary: Arbitrary Code Execution in json-ptr.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| json-ptr project | json-ptr | before 2.0.0 | application |
NVD analysis (status Modified), last modified June 17, 2026, 03:25 UTC.
How severe is CVE-2020-7766?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 7.3 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P/RL:O/RC:C | snyk |
| Critical 9.8 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | NVD |
| High 7.5 | CVSS 2.0 | AV:N/AC:L/Au:N/C:P/I:P/A:P | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2020-7766 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- EPSS
- 1.90% probability of exploitation activity in the next 30 days, percentile 80.4 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-1321 Improperly Controlled Modification of Object Prototype Attributes
- CWE-400 Uncontrolled Resource Consumption
- CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component
Where are the vendor advisories and references?
- https://snyk.io/vuln/SNYK-JS-JSONPTR-1016939 x_refsource_MISC
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1038396 x_refsource_MISC
- https://github.com/flitbit/json-ptr/blob/master/src/util.ts%23L174 x_refsource_MISC
Who found and reported it?
- Alessio Della Libera (d3lla) (finder)
As published in the CVE record; contact details are removed.
When was it published, and where is the official record?
- Reserved
- January 21, 2020
- Published
- November 10, 2020, 15:35 UTC
- CVE record updated
- September 16, 2024, 22:14 UTC by snyk
- NVD
- Modified, last modified June 17, 2026, 03:25 UTC
- Last checked
- CVE list November 19, 2026, 07:16 UTC; NVD November 19, 2026, 08:06 UTC; KEV December 3, 2026, 17:09 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect json-ptr?
- Nov 3, 2021CVE-2021-23509 json-ptr: type confusion
Questions about CVE-2020-7766
Is CVE-2020-7766 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 17:09 UTC. FIRST's EPSS gives it a 1.90% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of json-ptr are affected by CVE-2020-7766?
json-ptr before 2.1.0, per the GitHub advisory GHSA-x5r6-x823-9848. The tables above give every range the sources list.
Which version fixes CVE-2020-7766?
2.1.0, per the GitHub advisory GHSA-x5r6-x823-9848. Check the vendor's advisory before you rely on it.
How severe is CVE-2020-7766?
High (7.3, CVSS 3.1, from snyk). The severity table above shows each score with its source.
Where is the official record of CVE-2020-7766?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.