supermixer@1.0.4 vulnerabilities

Mix JS objects deep, shallow, traversing prototypes, selectively, etc.

  • latest version

    1.0.5

  • latest non vulnerable version

  • first published

    10 years ago

  • latest version published

    5 years ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the supermixer package. This does not include vulnerabilities belonging to this package’s dependencies.

    Fix vulnerabilities automatically

    Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

    Fix for free
    VulnerabilityVulnerable Version
    • M
    Prototype Pollution

    supermixer is a Mix JS objects deep, shallow, traversing prototypes, selectively, etc.

    Affected versions of this package are vulnerable to Prototype Pollution. It is possible to modify the object prototype of an application using this package by leveraging the merge function. It allows an attacker to modify the prototype of a base object which can vary in severity depending on the implementation.

    PoC

    var mixer = require('supermixer');
    var payload = '{"__proto__":{"poc":"evil"}}';
    var test = {};
    console.log("Before: ", test.poc);
    mixer.merge({},JSON.parse(payload));
    console.log("After: ", test.poc);
    

    How to fix Prototype Pollution?

    Upgrade supermixer to version 1.0.5 or higher.

    <1.0.5