Advisory

GHSA-7h43-gx24-p529

Also known as: CVE-2020-7770, SNYK-JS-JSON8-1017116

Summary

Prototype pollution in json8

Details

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.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2021-05-10 19:17 UTC
Modified
2026-07-08 06:49 UTC

Affected packages and fixes

json8

npm · All systems

Affected

  • introduced 0, fixed 1.0.3 (semver)

Fixed versions

1.0.3

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences