CVE-2020-7770
CRITICAL 9.8CVSS 3.1Prototype pollution in json8
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.
- Published
- 12 Nov 2020
- Last modified
- 8 Jul 2026
- Assigned by
- report@snyk.io
- NVD status
- Modified
- Weakness
- CWE-1321
- Also known as
- GHSA-7h43-gx24-p529SNYK-JS-JSON8-1017116
- Sources
- NVDJSONOSV GHSA-7h43-gx24-p529JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | report@snyk.io (Secondary) | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | json8_project | json8cpe:2.3:a:json8_project:json8:*:*:*:*:*:*:*:* |
< 1.0.3 | 1.0.3 |
| OSV | npm | json8 | < 1.0.3 | 1.0.3 |
References
- https://github.com/sonnyp/JSON8/commit/2e890261b66cbc54ae01d0c79c71b0fd18379e7e · Patch, Third Party Advisory, WEB
- https://snyk.io/vuln/SNYK-JS-JSON8-1017116 · Exploit, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2020-7770 · ADVISORY
- https://www.npmjs.com/package/json8 · WEB
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 12 Nov 2020)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 10 May 2021)