CVE-2026-39243

decompress: Decompress: File disclosure and corruption via arbitrary hardlink creation

Published Jul 9, 2026 CVSS 3.1 · 5.5 Medium EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-jwp9-9v96-94mx decompress allows arbitrary hardlink creation during archive extraction
History
Type Values Removed Values Added
Title decompress: Decompress: File disclosure and corruption via arbitrary hardlink creation
References
Metrics threat_severity

None

threat_severity

Moderate

Type Values Removed Values Added
Title Arbitrary Hardlink Creation in decompress Library Allows File Read Disclosure and Corruption
Type Values Removed Values Added
Title Arbitrary Hardlink Creation in decompress Library Allows File Read Disclosure and Corruption
Type Values Removed Values Added
Title Hardlink creation in Node.js decompress allows file read disclosure and corruption
Type Values Removed Values Added
Title Hardlink creation in Node.js decompress allows file read disclosure and corruption
Type Values Removed Values Added
Title Decompress Library Hardlink Vulnerability Allows File Read Disclosure and Corruption
Type Values Removed Values Added
Title Decompress Library Hardlink Vulnerability Allows File Read Disclosure and Corruption
Type Values Removed Values Added
Title Arbitrary Hardlink Creation during Archive Extraction
Weaknesses CWE-36
Type Values Removed Values Added
Weaknesses CWE-59
Metrics cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Title Arbitrary Hardlink Creation during Archive Extraction
Weaknesses CWE-36
Type Values Removed Values Added
First Time appeared Kevva
Kevva decompress
Vendors & Products Kevva
Kevva decompress
Type Values Removed Values Added
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.
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Jul 10, 2026, 3:25 PM
Reserved
Apr 6, 2026, 12:00 AM
Status
Analyzed
Published
Jul 9, 2026, 10:17 PM
Modified
Jul 13, 2026, 12:57 PM
Severity
Moderate
Public date
Jul 9, 2026, 12:00 AM