Skip to main content

decompress CVE-2026-39245

| EUVDEUVD-2026-42769 MEDIUM
Path Traversal (CWE-22)
2026-07-09 mitre GHSA-qcj4-cj8p-fhf4
6.2
CVSS 3.1 · Vendor: mitre
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft archive with path-traversal filename entry
  2. Delivery
    Deliver archive to decompress-powered application
  3. Exploit
    indexOf prefix check bypassed at index.js lines 29 and 106
  4. Execution
    File written to directory adjacent to extraction target
  5. Impact
    Overwrite sensitive config or executable files

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK

2 techniques across 2 tactics: Discovery, Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that (1) a vulnerable version of the decompress npm package (< 4.2.2) is used by the target application to extract archives, and (2) the attacker can influence or supply the archive being extracted - for example, through a file upload endpoint, a CI artifact ingestion pipeline, or a package distribution mechanism. No special operating system configuration is required; the flaw is in the JavaScript logic of the library itself and triggers during normal archive extraction. The CVSS PR:N rating confirms no authentication to the host system is required from the attacker's perspective, though the attacker must have a channel to deliver the malicious archive to the extracting process. Exploitation is limited to filesystem paths accessible under the identity of the Node.js process performing extraction; root or elevated privileges are not obtained directly. The vulnerability does not produce confidentiality impact - only integrity (arbitrary file write). Symlink chaining extends reach but requires the consuming application to not strip symlink entries from archives.

Impact

The NVD-assigned CVSS vector (AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N, score 6.2) rates the attack vector as local, which may reflect a conservative assessment of how the library is typically invoked. In practice, decompress is frequently used in web services and CI systems that accept externally-supplied archives, making a network-delivered attack path realistic and likely more representative. The PR:N rating combined with AV:L is somewhat incongruous - local access without any privilege level is an unusual pairing - and defenders should verify whether their deployment accepts archives from untrusted sources. EPSS at 0.26% (17th percentile) suggests very low current exploitation probability, and the vulnerability is not listed in CISA KEV, with no public exploit code identified. However, the flaw is well-described and mechanistically simple to exploit by anyone who reads the advisory. The bypass of a prior CVE-2020-12265 fix is a notable signal: repeated exploitation of the same logical flaw class suggests the code area is under scrutiny. Real-world risk is primarily governed by whether the consuming application processes archives from untrusted sources; in that context, this is a meaningful file-write primitive.

Exploit ScenarioDerived

An attacker crafts a malicious archive (zip or tar) containing an entry with a filename such as ../app_config/malicious.conf, designed so that the resolved destination path shares a string prefix with the output directory but falls outside it. When a Node.js application using a vulnerable version of decompress extracts this archive, the indexOf check passes incorrectly and the file is written to the adjacent directory. If the archive also contains a symlink entry, the attacker can redirect writes to further locations on the filesystem accessible to the extraction process, potentially overwriting application configuration, cron scripts, or other integrity-sensitive files.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 10, 2026

Directory traversal and arbitrary file write in the decompress npm package (versions before 4.2.2) stem from a prefix-confusion flaw in path boundary validation using String.indexOf() at two locations in index.js. An attacker supplying a crafted archive can write files to filesystem directories adjacent to the intended extraction target - for example, escaping /tmp/app into /tmp/app_config - bypassing both the safeMakeDir function and the extraction path validation. This is a confirmed bypass of the prior fix for CVE-2020-12265; no public exploit has been identified at time of analysis and EPSS is low at 0.26% (17th percentile), though the integrity impact is rated high by CVSS.

RemediationAI

Upgrade the decompress npm package to version 4.2.2 or later, which implements the corrected path boundary check by appending path.sep before comparison. Run npm install decompress@latest or pin to >=4.2.2 in package.json and lock files. The npm registry page is at https://www.npmjs.com/package/decompress and the GitHub repository tracking this issue is https://github.com/kevva/decompress/issues/115. If an immediate upgrade is not possible, a compensating control is to wrap all calls to decompress with application-level path validation that checks both string prefix and separator boundary before writing any extracted entry. Additionally, disable symlink following within archives if the application does not require it, as the unvalidated symlink creation in the same package can be chained with this traversal. Restricting the filesystem permissions of the extraction process to a confined directory (e.g., via a dedicated low-privilege user or container) limits the blast radius of successful exploitation but does not eliminate the vulnerability.

Affected VersionsENISA

n/a n/a

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The decompress npm package (https://www.npmjs.com/package/decompress, https://github.com/kevva/decompress) is a Node.js library for extracting zip, tar, and bzip2 archives commonly used in build toolchains and CI pipelines. The vulnerability is rooted in CWE-22 (Improper Limitation of a Pathname to a Restricted Directory) and manifests as a classic string-prefix confusion bug. At index.js line 29 (safeMakeDir) and line 106 (extraction path validation), the check realDestinationDir.indexOf(realOutputPath) !== 0 is used to verify a resolved destination path remains within the output directory. Because String.indexOf() performs a plain substring match with no awareness of path separator boundaries, a path like /tmp/app_config satisfies the check against realOutputPath /tmp/app (indexOf returns 0), even though /tmp/app_config is not a subdirectory of /tmp/app. The correct fix, implemented in 4.2.2, appends path.sep to the output path before comparison. Compounding the issue, the package also performs unvalidated symlink creation, which can be chained with this traversal to write to arbitrary filesystem locations. CPE data from NVD for this CVE is non-specific (cpe:2.3:a:n/a:n/a), so version range is sourced from the CVE description directly.

Know when N A gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (mitre) PRIMARY 6.2 MEDIUM
AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
vuln.today AI 7.5 HIGH

Decompress is primarily used in web services and CI pipelines that accept network-supplied archives, making AV:N more representative than NVD's AV:L; no privileges required to supply a crafted archive.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
SUSE 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Red Hat 6.2 MEDIUM

Primary rating from Vendor (mitre).

CVSS VectorVendor: mitre

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
None

Lifecycle Timeline

2
CVSS changed
Jul 10, 2026 - 16:22 NVD
6.2 (MEDIUM)
CVE Published
Jul 09, 2026 - 00:00 cve.org
UNKNOWN (no severity yet)

DescriptionCVE.org

decompress before 4.2.2 contains an improper path containment check that enables directory traversal and arbitrary file write. The safeMakeDir function (index.js line 29) and the extraction path validation (index.js line 106) use String.indexOf() to verify the resolved path is within the output directory: realDestinationDir.indexOf(realOutputPath) ! 0. This check is flawed because it does not enforce a path separator boundary. For example, "/tmp/app_config".indexOf("/tmp/app") returns 0, incorrectly passing the check even though /tmp/app_config is outside /tmp/app. Combined with the unvalidated symlink creation in the same package, an attacker can write arbitrary files to directories adjacent to the extraction target. This is a bypass of the fix for CVE-2020-12265. The correct check requires appending a path separator: realParentPath.indexOf(realOutputPath + path.sep) ! 0.

Threat Intelligence Overview

EPSS Score
0.3%
Top 83% exploitable
Prevalence
Medium
popular Node.js archive extraction npm package
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

31
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +31
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

More in N A

View all
CVE-2024-51092 CRITICAL POC
9.1 May 08

LibreNMS before 24.10.0 allows a remote attacker to execute arbitrary code via OS command injection involving AboutContr

CVE-2025-15684 MEDIUM POC
5.5 Aug 12

Reachable assertion in Open5GS up to version 2.7.6 allows remote unauthenticated attackers to crash the Diameter CER han

CVE-2024-45257 HIGH POC
7.3 May 08

A Command Injection issue in the payload build page in BYOB (Build Your Own Botnet) 2.0 allows attackers to execute arbi

CVE-2025-15687 LOW POC
2.1 Aug 12

Denial of service in Open5GS 2.7.6 and earlier allows network-adjacent attackers with low-privilege Diameter Gx peer acc

CVE-2025-15686 LOW POC
2.1 Aug 12

Denial of service in Open5GS HSS (Home Subscriber Server) versions 2.7.0 through 2.7.6 is triggered remotely by manipula

CVE-2025-67888 HIGH POC
7.3 May 08

Remote command injection in Control Web Panel allows unauthenticated attackers to execute arbitrary OS commands as root

CVE-2024-53326 HIGH POC
7.3 May 08

LINQPad before 5.52.01 Pro edition is vulnerable to Unsafe Deserialization in LINQPad.AutoRefManager::PopulateFromCache(

CVE-2026-38360 CRITICAL POC
9.8 May 08

Remote code execution in dash-uploader (Python package for Plotly Dash) versions 0.1.0 through 0.7.0a2 allows unauthenti

CVE-2026-30623 CRITICAL POC
9.8 Jul 15

Command injection in LiteLLM 1.18.10 lets attackers who can configure MCP (Model Context Protocol) servers supply arbitr

CVE-2026-67917 CRITICAL POC
9.8 Aug 17

SQL injection in AzuraCast's backup restore flow (versions up to and including 0.23.7) lets an attacker achieve privileg

CVE-2026-75337 CRITICAL POC
9.8 Aug 27

Arbitrary file read in Yu AI Code Mother v4.3 lets anonymous, remote attackers retrieve files outside the intended previ

CVE-2026-31072 CRITICAL POC
9.8 May 19

Remote code execution in APScheduler (all versions through 3.10.x and 4.0.0a5) is achievable when applications deseriali

Vendor StatusVendor

SUSE

Severity: Important
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Affected
SUSE Linux Enterprise High Performance Computing 12 Not-Affected
SUSE Linux Enterprise High Performance Computing 15 SP7 Not-Affected
SUSE Linux Enterprise High Performance Computing 15 SP7 Not-Affected
SUSE Linux Enterprise High Performance Computing 15 SP7 Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy