decompress-tar@1.0.2 vulnerabilities

decompress tar plugin

Direct Vulnerabilities

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

decompress-tar is a tar plugin for decompress.

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)?

There is no fixed version for decompress-tar.

*