Ecosyste.ms: Advisories

An open API service providing security vulnerability metadata for many open source software ecosystems.

Security Advisories: MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLTdoNDMtZ3gyNC1wNTI5

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

Permalink: https://github.com/advisories/GHSA-7h43-gx24-p529
JSON: https://advisories.ecosyste.ms/api/v1/advisories/MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLTdoNDMtZ3gyNC1wNTI5
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Critical
Classification: General
Published: about 3 years ago
Updated: over 1 year ago


CVSS Score: 9.8
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Identifiers: GHSA-7h43-gx24-p529, CVE-2020-7770
References: Repository: https://github.com/sonnyp/JSON8
Blast Radius: 17.0

Affected Packages

npm:json8
Dependent packages: 17
Dependent repositories: 54
Downloads: 44,110 last month
Affected Version Ranges: < 1.0.3
Fixed in: 1.0.3
All affected versions: 0.1.0, 0.2.0, 0.3.0, 0.4.0, 0.5.0, 0.6.0, 0.7.0, 0.8.0, 0.8.1, 0.8.2, 0.9.0, 0.9.1, 0.9.2, 1.0.1, 1.0.2
All unaffected versions: 1.0.3, 1.0.5