pathval@0.0.1 vulnerabilities

Object value retrieval given a string path

  • latest version

    2.0.1

  • latest non vulnerable version

  • first published

    11 years ago

  • latest version published

    4 months ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the pathval 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
    • M
    Prototype Pollution

    pathval is an Object value retrieval given a string path

    Affected versions of this package are vulnerable to Prototype Pollution.

    PoC

    var pathval = require('pathval');
    
    var obj = {};
    pathval.setPathValue(obj, '__proto__.polluted', true);
    
    console.log(polluted); // true
    

    How to fix Prototype Pollution?

    Upgrade pathval to version 1.1.1 or higher.

    <1.1.1