libnested@1.2.1 vulnerabilities

basic functions (map, each, get, set, keys) for nested objects.

  • latest version

    1.5.2

  • latest non vulnerable version

  • first published

    8 years ago

  • latest version published

    2 years ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the libnested 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

    libnested is a package with basic functions (map, each, get, set, keys) for nested objects.

    Affected versions of this package are vulnerable to Prototype Pollution via the set function in index.js.

    Note: This vulnerability derives from an incomplete fix for CVE-2020-28283

    PoC:

     const libnested = require('libnested');
     libnested.set({}, [
         ['__proto__'],
         'polluted'
     ], 'yes');
     console.log({}.polluted);
    

    How to fix Prototype Pollution?

    Upgrade libnested to version 1.5.2 or higher.

    <1.5.2
    • H
    Prototype Pollution

    libnested is a package with basic functions (map, each, get, set, keys) for nested objects.

    Affected versions of this package are vulnerable to Prototype Pollution. It allows an attacker to cause a denial of service and may lead to remote code execution.

    How to fix Prototype Pollution?

    Upgrade libnested to version 1.5.1 or higher.

    <1.5.1