Vulnerability library
Security checkJuly 06, 2026

Decompress: Archive extraction can create files and links outside of the target directory

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

When extracting an archive to a directory, a crafted archive can read or write files outside that directory. The flaw is in the code that writes the parsed entries, so it affects every format decompress handles: tar, tar.gz, tar.bz2, and zip by default, plus any others added through the plugins option.

Recommendation

Update the @xhmikosr/decompress package to the latest compatible version. Followings are version details:

  • Affected version(s): **>= 11.0.0, < 11.1.3 < 10.2.1**
  • Patched version(s): **11.1.3 10.2.1**

References

Could your website be exposed too?

SmartScanner can check your website for Decompress: Archive extraction can create files and links outside of the target directory and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated July 06, 2026