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

    10 years ago

  • latest version published

    2 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.

    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

    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