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)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.webjars » decompressvia npm decompress | <= 4.2.1 | - |
| org.webjars.npm » decompressvia npm decompress | <= 4.2.1 | - |
Blast radius
100% of the dependent artifacts (12) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 1 |
| 2 hops | 2 |
| 3 hops | 4 |
| 4 hops | 8 |
| 5 hops | 2 |
Most used dependents
- org.webjars » bin-build4 usages
- org.webjars » bin-wrapper4 usages
- org.webjars » download2 usages
- org.webjars » imagemin-gifsicle1 usages
- org.webjars » imagemin-jpegtran1 usages
- org.webjars » imagemin-optipng1 usages
- org.webjars » imagemin-pngquant1 usages
- org.webjars » gifsicle1 usages
- org.webjars » jpegtran-bin1 usages
- org.webjars » optipng-bin1 usages
- org.webjars » pngquant-bin1 usages
- org.webjars » imagemin0 usages
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
| Advisory | NVD CVE-2026-39243 | nvd.nist.gov |
| Package | kevva/decompress | github.com |
| Web | kevva/decompress issue #113 | github.com |
| Web | package/decompress | npmjs.com |
