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

CVE-2026-39243: decompress allows arbitrary hardlink creation during archive extraction

July 10, 2026 (updated August 13, 2026)

decompress before 4.2.2 allows arbitrary hardlink creation during archive extraction, enabling file read disclosure and file corruption. When processing hardlink entries (type === ’link’), the x.linkname field from the archive is passed directly to fs.link() without validation (index.js line 113). An attacker can craft an archive with a hardlink entry whose linkname is an absolute path to any file on the same filesystem. This creates a hardlink inside the extraction directory that shares the same inode as the target file, enabling both reading and overwriting the original file’s content. Hardlinks are limited to files on the same filesystem and cannot target directories.

References

  • github.com/advisories/GHSA-jwp9-9v96-94mx
  • github.com/kevva/decompress
  • github.com/kevva/decompress/issues/113
  • nvd.nist.gov/vuln/detail/CVE-2026-39243
  • www.npmjs.com/package/decompress

Code Behaviors & Features

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

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 4.2.1

Solution

Unfortunately, there is no solution available yet.

Impact 5.5 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-59: Improper Link Resolution Before File Access ('Link Following')

Source file

npm/decompress/CVE-2026-39243.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Thu, 10 Sep 2026 00:19:25 +0000.