Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. decompress
  4. ›
  5. CVE-2026-53486

CVE-2026-53486: Decompress: Archive extraction can create files and links outside of the target directory

July 6, 2026

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.

A link (hardlink) or symlink entry is created without checking where its target points. A hardlink can be aimed at any file the running process can read; that file then appears inside the output directory and its contents are exposed. A symlink can point outside the output directory and redirect a later write.

The path containment check used a string prefix comparison (realPath.indexOf(outputPath) !== 0). Output /srv/out does not contain /srv/out-old, but the prefix comparison treats it as inside, so an entry can escape into a sibling directory whose name starts with the output directory name.

File modes were applied as mode & ~umask, which does not remove the setuid, setgid, or sticky bits. A crafted entry can create a setuid or setgid file. This matters when extraction runs as root, for example in CI, containers, or install scripts.

Any code that extracts archives from an untrusted or attacker-influenced source is affected. Archives are commonly downloaded before extraction, so this is reachable over the network in many setups.

References

  • github.com/XhmikosR/decompress/commit/281cefa
  • github.com/XhmikosR/decompress/commit/60b5299
  • github.com/XhmikosR/decompress/commit/aca5aac
  • github.com/XhmikosR/decompress/security/advisories/GHSA-mp2f-45pm-3cg9
  • github.com/advisories/GHSA-mp2f-45pm-3cg9
  • nvd.nist.gov/vuln/detail/CVE-2026-53486

Code Behaviors & Features

Detect and mitigate CVE-2026-53486 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions up to 4.2.1

Solution

Unfortunately, there is no solution available yet.

Impact 9.1 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
  • CWE-59: Improper Link Resolution Before File Access ('Link Following')
  • CWE-732: Incorrect Permission Assignment for Critical Resource

Source file

npm/decompress/CVE-2026-53486.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:15 +0000.