decompress@4.1.0 vulnerabilities

Extracting archives made easy

Direct Vulnerabilities

Known vulnerabilities in the decompress 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
  • 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