A AegiFlow
MEDIUMCVSS 5.5EPSS 0.3%

CVE-2026-39243

decompress allows arbitrary hardlink creation during archive extraction

Published
2026-07-10
Modified
2026-08-13
EPSS percentile
26%
Aliases
GHSA-jwp9-9v96-94mx
Sources
github-advisory

Summary

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.

Affected packages

EcosystemPackageAffected versionsFixed versions
npmdecompress

Remediation: No patched version is listed by GitHub.

References

Includes data from the GitHub Advisory Database, licensed under CC-BY 4.0.

CVE® is a registered trademark of The MITRE Corporation. CVE content reproduced under the CVE Terms of Use; copyright designation © MITRE.

EPSS scores provided by the FIRST.org Exploit Prediction Scoring System.