madlib-object-utils@0.1.2 vulnerabilities

A small set of utility functions for working with objects

Direct Vulnerabilities

Known vulnerabilities in the madlib-object-utils package. This does not include vulnerabilities belonging to this package’s dependencies.

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable 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