CVE-2026-39245: n/a
The decompress package before version 4.2.2 contains a directory traversal vulnerability due to an improper path containment check. The flawed validation allows an attacker to write arbitrary files outside the intended extraction directory by bypassing the path check logic. This vulnerability also involves unvalidated symbolic link creation, enabling writes to directories adjacent to the extraction target. It is a bypass of a previous fix (CVE-2020-12265).
AI Analysis
Technical Summary
The decompress package versions prior to 4.2.2 implement an incorrect path containment check in the safeMakeDir function and extraction path validation. The check uses String.indexOf() to verify that the resolved extraction path is within the output directory, but fails to enforce a path separator boundary, allowing paths like '/tmp/app_config' to pass when the intended directory is '/tmp/app'. This flaw, combined with unvalidated symlink creation, enables directory traversal and arbitrary file write outside the target extraction directory. This vulnerability bypasses the fix for CVE-2020-12265. The correct mitigation requires appending a path separator to the path check to ensure proper boundary enforcement.
Potential Impact
An attacker exploiting this vulnerability can write arbitrary files to directories outside the intended extraction directory, potentially overwriting critical files or placing malicious files in sensitive locations. This can lead to unauthorized code execution or system compromise depending on the context in which the decompress package is used.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, users should avoid using vulnerable versions of decompress or apply manual code corrections to enforce proper path boundary checks as described. Monitor vendor channels for updates.
CVE-2026-39245: n/a
Description
The decompress package before version 4.2.2 contains a directory traversal vulnerability due to an improper path containment check. The flawed validation allows an attacker to write arbitrary files outside the intended extraction directory by bypassing the path check logic. This vulnerability also involves unvalidated symbolic link creation, enabling writes to directories adjacent to the extraction target. It is a bypass of a previous fix (CVE-2020-12265).
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The decompress package versions prior to 4.2.2 implement an incorrect path containment check in the safeMakeDir function and extraction path validation. The check uses String.indexOf() to verify that the resolved extraction path is within the output directory, but fails to enforce a path separator boundary, allowing paths like '/tmp/app_config' to pass when the intended directory is '/tmp/app'. This flaw, combined with unvalidated symlink creation, enables directory traversal and arbitrary file write outside the target extraction directory. This vulnerability bypasses the fix for CVE-2020-12265. The correct mitigation requires appending a path separator to the path check to ensure proper boundary enforcement.
Potential Impact
An attacker exploiting this vulnerability can write arbitrary files to directories outside the intended extraction directory, potentially overwriting critical files or placing malicious files in sensitive locations. This can lead to unauthorized code execution or system compromise depending on the context in which the decompress package is used.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, users should avoid using vulnerable versions of decompress or apply manual code corrections to enforce proper path boundary checks as described. Monitor vendor channels for updates.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- mitre
- Date Reserved
- 2026-04-06T00:00:00.000Z
- Cvss Version
- null
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a50171468715ace431ea18d
Added to database: 07/09/2026, 21:48:04 UTC
Last enriched: 07/09/2026, 22:05:14 UTC
Last updated: 07/10/2026, 03:43:01 UTC
Views: 8
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.