merge-deep@2.0.1 vulnerabilities

Recursively merge values in a javascript object.

  • latest version

    3.0.3

  • latest non vulnerable version

  • first published

    10 years ago

  • latest version published

    3 years ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the merge-deep 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

    merge-deep is a recursively merges values in a javascript object.

    Affected versions of this package are vulnerable to Prototype Pollution. Merge-deep actively attempts to prevent prototype pollution by blocking object property merges into __proto__, however it still allows for prototype pollution of Object.prototype via a constructor payload.

    PoC

    var mergeDeep = require("merge-deep");
    var payload = '{"constructor": {"prototype": {"isAdmin": true}}}';
    mergeDeep({}, JSON.parse(payload));
    

    How to fix Prototype Pollution?

    Upgrade merge-deep to version 3.0.3 or higher.

    <3.0.3
    • M
    Prototype Pollution

    merge-deep is a recursively merges values in a javascript object.

    Affected versions of this package are vulnerable to Prototype Pollution via merging functions. These functions allows a malicious user to modify the prototype of Object via __proto__, causing the addition or modification of an existing property that will exist on all objects.

    How to fix Prototype Pollution?

    Upgrade merge-deep to version 3.0.1 or higher.

    <3.0.1