MODERATE 5.5

CVE-2026-39243

decompress allows arbitrary hardlink creation during archive extraction

Description

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 Maven artifacts (2)

ArtifactAffected versionsFixed in
org.webjars » decompressvia npm decompress
<= 4.2.1
-
org.webjars.npm » decompressvia npm decompress
<= 4.2.1
-

Blast radius

2affected artifacts
4affected versions
12dependent artifacts (est.)
17dependent versions

100% of the dependent artifacts (12) still pull an affected version in their latest release.

DepthDependent versions
Direct
1
2 hops
2
3 hops
4
4 hops
8
5 hops
2

Most used dependents

Computed from the dependency graph of build 20261205.0236 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.

Other ecosystems

Also affects npm (1 package) . See all on OSV

References

Advisorynvd.nist.gov
Packagegithub.com
Webgithub.com
Webnpmjs.com