property-expr@2.0.0 vulnerabilities

tiny util for getting and setting deep object props safely

  • latest version

    2.0.6

  • latest non vulnerable version

  • first published

    11 years ago

  • latest version published

    2 years ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the property-expr 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
    • C
    Prototype Pollution

    property-expr is a tiny util for getting and setting deep object props safely

    Affected versions of this package are vulnerable to Prototype Pollution via the setter function.

    POC

    var expr = require('property-expr');
    expr.setter('__proto__.polluted')({}, true);
    console.log(polluted); // true
    

    How to fix Prototype Pollution?

    Upgrade property-expr to version 2.0.3 or higher.

    <2.0.3