# CVE-2020-7770: Prototype Pollution

- Severity: Medium 6.5 (CVSS:3.1, scored by snyk) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N`
- 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.89%, higher than 80% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2020-11-12T10:15:16.741Z
- Modified: 2026-07-08T06:49:42.512Z
- Also known as: GHSA-7h43-gx24-p529, SNYK-JS-JSON8-1017116
- Weaknesses: CWE-1321
- Assigned by: snyk

## Description

This affects the package json8 before 1.0.3. The function adds in the target object the property specified in the path, however it does not properly check the key being set, leading to a prototype pollution.

(As written by CVE List.)

## Affected

- json8: from unspecified before 1.0.3
- json8 (npm): before 1.0.3
- json8_project json8: before 1.0.3

## Every score

- snyk: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N`
- GitHub: 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: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-JSON8-1017116> (exploit, third-party-advisory, web)
- <https://github.com/sonnyp/JSON8/commit/2e890261b66cbc54ae01d0c79c71b0fd18379e7e> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-7770> (advisory)
- <https://www.npmjs.com/package/json8> (web)

## Sources

- CVE List: [CVE-2020-7770](https://www.cve.org/CVERecord?id=CVE-2020-7770), CVE Terms of Use, modified 2024-09-16
- GitHub Advisory Database: [GHSA-7h43-gx24-p529](https://github.com/advisories/GHSA-7h43-gx24-p529), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2020-7770](https://nvd.nist.gov/vuln/detail/CVE-2020-7770), Public domain, modified 2026-06-17

---

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