decompress@4.1.0 vulnerabilities

Extracting archives made easy

  • latest version

    4.2.1

  • latest non vulnerable version

  • first published

    12 years ago

  • latest version published

    5 years ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the decompress 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
    • M
    Arbitrary File Write via Archive Extraction (Zip Slip)

    decompress is a package that can be used for extracting archives.

    Affected versions of this package are vulnerable to Arbitrary File Write via Archive Extraction (Zip Slip). It is possible to bypass the security measures provided by decompress and conduct ZIP path traversal through symlinks.

    PoC

    const decompress = require('decompress');
    
    decompress('slip.tar.gz', 'dist').then(files => {
        console.log('done!');
    });
    

    How to fix Arbitrary File Write via Archive Extraction (Zip Slip)?

    Upgrade decompress to version 4.2.1 or higher.

    <4.2.1