property-expr@2.0.2 vulnerabilities

tiny util for getting and setting deep object props safely

  • latest version

    2.0.6

  • latest non vulnerable version

  • first published

    10 years ago

  • latest version published

    1 years ago

  • licenses detected

  • Direct Vulnerabilities

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