GHSA-7h43-gx24-p529

Suggest an improvement
Source
https://github.com/advisories/GHSA-7h43-gx24-p529
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/05/GHSA-7h43-gx24-p529/GHSA-7h43-gx24-p529.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-7h43-gx24-p529
Aliases
Published
2021-05-10T19:17:05Z
Modified
2025-01-14T08:57:14.052981Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
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.

Database specific
{
    "nvd_published_at": "2020-11-12T11:15:00Z",
    "cwe_ids": [
        "CWE-1321"
    ],
    "github_reviewed_at": "2021-04-19T22:36:51Z",
    "severity": "CRITICAL",
    "github_reviewed": true
}
References

Affected packages

npm / json8

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.0.3

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/05/GHSA-7h43-gx24-p529/GHSA-7h43-gx24-p529.json"