Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-39245: n/a

0
High
VulnerabilityCVE-2026-39245cvecve-2026-39245
Published: 07/09/2026 (07/09/2026, 00:00:00 UTC)
Source: CVE Database V5

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

decompress
pkg:npm/decompress
Affected versions
<4.2.2

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

AILast updated: 07/09/2026, 22:05:14 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses