json-bigint@0.1.4 vulnerabilities

JSON.parse with bigints support

  • latest version

    1.0.0

  • latest non vulnerable version

  • first published

    12 years ago

  • latest version published

    5 years ago

  • licenses detected

  • Direct Vulnerabilities

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

    Fix vulnerabilities automatically

    Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

    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