cve.bz

CVE-2026-39246 decompress project decompress: Link Following

7.5 highExploit referenceEPSS 0.7%

High (7.5) in decompress project decompress. EPSS 0.7% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
EPSS
0.7% (unchanged from 0.7% a week ago; 0.7% 30 days ago) estimated probability of exploitation activity in the next 30 days; 52nd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: yes · Technical impact: partial, assessed 2026-07-10. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-59 Improper Link Resolution Before File Access (Link Following)
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-39246 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-39246?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-39246?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-39246 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
decompress_project:decompressthrough 4.2.1

Red Hat

Red Hat rates this Important.

Red Hat's statement

The decompress npm package (all releases through 4.2.1, the last upstream release) is vulnerable to arbitrary symlink creation during archive extraction. When processing a symlink-type entry, decompress passes the entry's link target (x.linkname) directly to fs.symlink() without validating it against the extraction output directory; the existing preventWritingThroughSymlink containment check added for CVE-2020-12265 only applies to regular file entries, not symlink entries. An attacker who can supply a crafted archive for extraction (for example a malicious package tarball or user-uploaded archive) can create a symlink inside the output directory that points to an arbitrary path such as /etc/passwd. If the extracting application subsequently reads or serves the extracted files, the attacker can achieve disclosure of any file readable by the extracting process, and in combination with a later write to the same symlinked path, potentially write through the link as well. The upstream decompress package is unmaintained and no fix has been released; the maintained fork @xhmikosr/decompress resolves this in 10.2.1 and 11.1.3 by validating link targets against the output directory before creating them.

Red Hat's mitigation

Do not use decompress to extract archives from untrusted sources. Where extraction of externally-supplied or otherwise untrusted archives is required, migrate to the maintained fork @xhmikosr/decompress (>= 10.2.1 or >= 11.1.3), which validates symlink and hardlink targets against the output directory before creating them. As an interim mitigation, run extraction as a non-privileged, sandboxed process and reject any archive containing symlink or hardlink entries before extraction.

ProductPackageStateAdvisory
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/volsync-operator-bundleWill not fix
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/volsync-rhel9Will not fix
Red Hat Build of KeycloakdecompressNot affected
Red Hat Hardened Imagesdotnet8.0Not affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-39246.

Attack patterns (CAPEC)

  • CAPEC-17 Using Malicious Files Likelihood: High · Severity: Very High
  • CAPEC-35 Leverage Executable Code in Non-Executable Files Likelihood: High · Severity: Very High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-132 Symlink Attack Likelihood: Low · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON