CVE-2026-39246 Details
Description
decompress before 4.2.2 allows arbitrary symlink creation during archive extraction. When processing symlink entries (type === 'symlink'), the x.linkname field from the archive is passed directly to fs.symlink() without validation (index.js line 121). The preventWritingThroughSymlink check on line 98 only applies to file entries, not symlink creation. An attacker can craft an archive with symlink entries pointing to sensitive files outside the extraction directory (e.g., /etc/passwd), enabling information disclosure when the application reads the extracted contents.
A vulnerability in the 'decompress' package, prior to version 4.2.2, allows for the creation of arbitrary symlinks during the extraction of archives. This issue arises because symlink entries are processed without proper validation, enabling an attacker to craft an archive that points to sensitive files outside the extraction directory. When the application accesses the extracted files, it could inadvertently disclose confidential information.
Users are advised not to extract untrusted archives with the 'decompress' package. If the vulnerability is to be addressed, the package should be updated to version 4.2.2 or later, and applications should validate symlink targets against the output directory before creating them.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jul 10, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/kevva/decompress/issues/114 | CISA-ADP | ExploitVendor Advisory |
| https://github.com/kevva/decompress | [email protected] | Product |
| https://github.com/kevva/decompress/issues/114 | [email protected] | ExploitVendor Advisory |
| https://www.npmjs.com/package/decompress | [email protected] | Product |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-59 | Improper Link Resolution Before File Access ('Link Following') | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| decompress project decompress | <= 4.2.1 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 13, 2026 | Initial Analysis | [email protected] |
| Jul 10, 2026 | CVE Modified | CISA-ADP |
| Jul 9, 2026 | New CVE Received | [email protected] |