property-expr@2.0.1 vulnerabilities

tiny util for getting and setting deep object props safely

Direct Vulnerabilities

Known vulnerabilities in the property-expr package. This does not include vulnerabilities belonging to this package’s dependencies.

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable 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