json-bigint@0.0.0 vulnerabilities

JSON.parse with bigints support

  • latest version

    1.0.0

  • latest non vulnerable version

  • first published

    11 years ago

  • latest version published

    4 years ago

  • licenses detected

  • Direct Vulnerabilities

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

    How to fix?

    Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.

    Fix for free
    VulnerabilityVulnerable 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