# CVE-2020-7766: Prototype Pollution

- Severity: High 7.3 (CVSS:3.1, scored by snyk) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.90%, higher than 80% of CVEs (2026-12-02)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2020-11-10T15:35:15.894Z
- Modified: 2026-06-17T03:25:24.513Z
- Also known as: GHSA-x5r6-x823-9848
- Weaknesses: CWE-74, CWE-400, CWE-1321
- Assigned by: snyk

## 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.

(As written by CVE List.)

## Affected

- json-ptr: before unspecified
- json-ptr (npm): before 2.1.0
- json-ptr_project json-ptr: before 2.0.0

## Every score

- snyk: CVSS:3.1 7.3 High `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`
- GitHub: CVSS:3.1 7.3 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://snyk.io/vuln/SNYK-JS-JSONPTR-1016939> (exploit, third-party-advisory, web)
- <https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1038396> (exploit, third-party-advisory, web)
- <https://github.com/flitbit/json-ptr/blob/master/src/util.ts%23L174> (broken-link, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-7766> (advisory)
- <https://github.com/418sec/json-ptr/pull/3> (web)
- <https://github.com/flitbit/json-ptr/commit/2539e3494c80af1eef24f0f433654a61f255f011> (web)
- <https://www.huntr.dev/bounties/2-npm-json-ptr> (web)
- <https://www.npmjs.com/package/json-ptr> (web)

## Sources

- CVE List: [CVE-2020-7766](https://www.cve.org/CVERecord?id=CVE-2020-7766), CVE Terms of Use, modified 2024-09-16
- GitHub Advisory Database: [GHSA-x5r6-x823-9848](https://github.com/advisories/GHSA-x5r6-x823-9848), CC-BY-4.0, modified 2025-01-14
- NVD: [CVE-2020-7766](https://nvd.nist.gov/vuln/detail/CVE-2020-7766), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-7766 · Whole record: https://cve.day/CVE-2020-7766.json · Rebuilt by cve.day 2026-11-25T22:57:55.668Z
