madlib-object-utils@0.1.5 vulnerabilities

A small set of utility functions for working with objects

  • latest version

    0.1.8

  • latest non vulnerable version

  • first published

    11 years ago

  • latest version published

    3 years ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the madlib-object-utils 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
    • H
    Prototype Pollution

    madlib-object-utils is an A small set of utility functions for working with objects

    Affected versions of this package are vulnerable to Prototype Pollution via the setValue method, as it allows an attacker to merge object prototypes into it.

    Note:
    This vulnerability derives from an incomplete fix of CVE-2020-7701

    How to fix Prototype Pollution?

    Upgrade madlib-object-utils to version 0.1.8 or higher.

    <0.1.8
    • H
    Prototype Pollution

    madlib-object-utils is an A small set of utility functions for working with objects

    Affected versions of this package are vulnerable to Prototype Pollution via setValue.

    POC:

    const objectUtils = require("madlib-object-utils");
    objectUtils.setValue('__proto__.polluted', {}, true);
    console.log(polluted);
    

    How to fix Prototype Pollution?

    Upgrade madlib-object-utils to version 0.1.7 or higher.

    <0.1.7