org.webjars.npm:flat@4.1.0 vulnerabilities

  • latest version

    5.0.1

  • latest non vulnerable version

  • first published

    7 years ago

  • latest version published

    2 years ago

  • licenses detected

  • package registry

  • Direct Vulnerabilities

    Known vulnerabilities in the org.webjars.npm:flat 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
    • M
    Prototype Pollution

    org.webjars.npm:flat is a Take a nested Javascript object and flatten it, or unflatten an object with delimited keys

    Affected versions of this package are vulnerable to Prototype Pollution.

    PoC

    var unflatten = require('flat').unflatten;
    
    unflatten({
    '__proto__.polluted': true
    });
    
    console.log(polluted); // true
    

    How to fix Prototype Pollution?

    Upgrade org.webjars.npm:flat to version 4.1.1 or higher.

    [,4.1.1)