Skip to main content

decompress npm EUVDEUVD-2026-42768

| CVE-2026-39243 MEDIUM
Improper Link Resolution Before File Access (CWE-59)
2026-07-09 mitre GHSA-jwp9-9v96-94mx
5.5
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 absolute-path hardlink entry
  2. Delivery
    Deliver archive to victim via download, dependency, or upload
  3. Exploit
    Victim or pipeline extracts archive using decompress < 4.2.2
  4. Execution
    Unvalidated x.linkname passed directly to fs.link()
  5. Persist
    Hardlink to sensitive file created inside extraction directory
  6. Impact
    Read or overwrite target file contents via shared inode

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Symlink resolution safety
Exploitation Conditions

Exploitation requires a victim to extract an attacker-controlled archive using the decompress npm package at a version prior to 4.2.2 (UI:R - user or automated process must trigger extraction). The target file must reside on the same physical filesystem as the extraction output directory, since the OS prohibits hardlinks across filesystem boundaries. Only regular files can be targeted; directories are explicitly excluded by the hardlink mechanism. The process executing the extraction must have read access (and, for integrity impact, write access) to the target file - standard user-level permissions are sufficient to read many sensitive files in developer environments. Exploitation is limited by: (1) required extraction trigger (user or pipeline interaction), (2) same-filesystem constraint, (3) inability to target directories. In automated CI/CD or package-installation contexts where untrusted archives are extracted without human review, the user-interaction barrier is effectively removed and exploitation becomes entirely attacker-controlled.

Impact

The provided CVSS vector CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N yields a base score of 5.5. A material discrepancy exists between this score and the CVE description: the description explicitly states the vulnerability enables 'overwriting the original file's content', a clear integrity impact that I:N does not reflect. Defenders should treat file-overwrite capability as described but understand it is unconfirmed by the CVSS assignment - verification against GitHub issue #113 or vendor confirmation is recommended. The EPSS score of 0.17% (7th percentile) and the absence of a CISA KEV listing indicate no observed widespread exploitation at time of analysis. The AV:L vector and UI:R requirement (a user must actively extract the archive) substantially constrain opportunistic exploitation in interactive environments. However, in CI/CD pipelines, automated build tools, or package managers that silently extract untrusted archives, the user-interaction barrier is effectively eliminated, raising practical risk closer to an automated attack scenario. The low EPSS score does not necessarily reflect low interest: path-traversal and link-following flaws in archive libraries (e.g., Zip Slip class) have historically attracted exploit development once a POC is published.

Exploit ScenarioDerived

An attacker distributes a malicious archive (in any format supported by decompress) containing a hardlink entry whose linkname is set to an absolute path such as /home/user/.ssh/authorized_keys or /etc/shadow. When a developer or automated build pipeline extracts the archive using an unpatched version of decompress, the library calls fs.link('/home/user/.ssh/authorized_keys', '<dest>/<filename>') without validation, creating a hardlink inside the extraction directory that shares an inode with the targeted file. The attacker can then read the file's contents through the exposed hardlink or, if the extraction process has write access to the target, overwrite it to inject an SSH key or corrupt sensitive configuration.

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

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

Alert me

AnalysisAIv1 – Jul 10, 2026

Arbitrary hardlink creation in the decompress npm package (before version 4.2.2) enables read disclosure and overwrite of any file accessible on the same filesystem as the extraction directory. When a victim extracts an attacker-crafted archive, the library passes the hardlink target path (x.linkname) directly to Node.js fs.link() without any path sanitization, allowing a hardlink inside the extraction directory to point at any file the process has access to. No CISA KEV listing exists and EPSS stands at 0.17% (7th percentile), reflecting low observed exploitation; however, the provided CVSS I:N metric conflicts with the description's explicit mention of file-overwrite capability, and in automated CI/CD pipelines the user-interaction barrier is effectively eliminated.

RemediationAI

Upgrade the decompress package to version 4.2.2 or later, which is stated in the CVE description as introducing validation of the x.linkname field to prevent path escape during hardlink creation. Apply the update by running npm update decompress or yarn upgrade decompress and confirm the installed version in your package-lock.json or yarn.lock. The npm package page (https://www.npmjs.com/package/decompress) and the upstream repository (https://github.com/kevva/decompress) should be consulted to independently confirm the 4.2.2 release is tagged and published, as this has not been independently verified from the provided reference data. If immediate upgrade is not feasible, a compensating control is to sandbox the extraction process inside a container or chroot with a minimal isolated filesystem, which limits the set of files reachable via hardlink - this adds operational overhead and does not fix the root cause. Alternatively, avoid extracting archives sourced from untrusted parties in processes that have access to sensitive files. Do not rely on output-directory permission restrictions alone, as hardlinks bypass path-based checks.

Affected VersionsENISA

n/a n/a

Affected Packages

npm decompress no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in npm

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

Technical ContextAI · show details

decompress is a widely used Node.js npm package (https://github.com/kevva/decompress, https://www.npmjs.com/package/decompress) that abstracts multi-format archive extraction. The vulnerability is located in index.js at line 113, where hardlink entries - identified by the condition type === 'link' - cause the library to invoke fs.link(x.linkname, dest) with the attacker-controlled x.linkname field read directly from the archive metadata, with no normalization, path traversal check, or allowlist validation applied. CWE-59 (Improper Link Resolution Before File Access - Link Following) covers exactly this class of flaw: a program follows attacker-supplied link targets to reach unintended filesystem resources. Hardlinks, unlike symbolic links, share the same inode as the original file, meaning any read or write against the hardlink in the extraction directory directly operates on the data blocks of the original target file, bypassing any path-based access checks that may exist at the application layer. The OS-level constraint is that hardlinks cannot cross filesystem boundaries and cannot target directories.

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 5.5 MEDIUM
AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
vuln.today AI 7.1 HIGH

AV:L and UI:R because victim must locally extract the archive; PR:N as attacker needs no privileges on target; I:H added because description explicitly confirms file overwrite capability, contradicting the provided I:N.

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

Primary rating from Vendor (mitre).

CVSS VectorVendor: mitre

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

Lifecycle Timeline

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

DescriptionCVE.org

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.

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 26,670 npm packages depend on decompress (1,218 direct, 25,542 indirect)

Ecosystem-wide dependent count for version 4.2.1.

Threat Intelligence Overview

EPSS Score
0.2%
Top 93% exploitable
Prevalence
Medium
popular Node.js archive extraction library, millions of npm weekly downloads
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.2%
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

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

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

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