json5@1.0.0-beta.4 vulnerabilities

JSON for Humans

Direct Vulnerabilities

Known vulnerabilities in the json5 package. This does not include vulnerabilities belonging to this package’s dependencies.

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable Version
  • M
Prototype Pollution

Affected versions of this package are vulnerable to Prototype Pollution via the parse method , which does not restrict parsing of keys named __proto__, allowing specially crafted strings to pollute the prototype of the resulting object. This pollutes the prototype of the object returned by JSON5.parse and not the global Object prototype (which is the commonly understood definition of Prototype Pollution). Therefore, the actual impact will depend on how applications utilize the returned object and how they filter unwanted keys.

How to fix Prototype Pollution?

Upgrade json5 to version 1.0.2, 2.2.2 or higher.

<1.0.2 >=2.0.0 <2.2.2