Description
Nx is a monorepo solution for TypeScript and polyglot codebases. From version 20.8.0 until 22.7.7 and 23.0.2, the Nx self-hosted HTTP remote cache extracts downloaded cache artifacts without constraining where files are written. A malicious or on-path (MITM) remote cache server can return a crafted tar archive whose entries escape the cache directory and write to arbitrary locations on the machine running Nx, which can be escalated to remote code execution. Nx's default local cache and Nx Cloud are not affected; only workspaces configured to use a self-hosted remote cache are affected. This issue is fixed in versions 22.7.7 and 23.0.2.
Published: 2026-08-06
Score: 8.7 High
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Nx, a monorepo solution for TypeScript and polyglot codebases, contains a Zip‑Slip style flaw in its self‑hosted remote cache extraction logic. The program does not constrain the paths of extracted files, so a malicious or MITM remote cache server can supply a crafted tar archive whose entries write outside the cache directory. This allows an attacker to overwrite or create files on the host system, which can be escalated to remote code execution. The weakness corresponds to CWE‑22 and CWE‑59.

Affected Systems

The affected product is Nrwl Nx. Versions from 20.8.0 up to and including 22.7.7, as well as the 23.0.2 release, are vulnerable when a workspace is configured to use a self‑hosted remote cache. Default local cache and Nx Cloud are not affected.

Risk and Exploitability

The CVSS score of 8.7 indicates high severity. Although the EPSS score is not available, the lack of listing in the CISA KEV catalog suggests no publicly known exploitation has been observed. Nevertheless, the vulnerability is exploitable via a compromised or on‑path remote cache server, which can provide a malicious archive. The attack vector is inbound, relying on the host's acceptance of a remote cache response. The high consequence and potential for remote code execution make immediate remediation prudent, while the exploitation probability remains uncertain due to missing EPSS data.

Generated by OpenCVE AI on August 7, 2026 at 00:50 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Nx to version 22.7.7 or later 23.0.2 to apply the official fix
  • If the self‑hosted remote cache is not required, remove or disable its configuration in the workspace
  • Ensure the remote cache server is trusted and communicate over TLS with proper certificate validation to prevent MITM substitution

Generated by OpenCVE AI on August 7, 2026 at 00:50 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-vp3h-ghgh-jr7g Nx: Zip-Slip in the self-hosted remote cache
History

Fri, 07 Aug 2026 01:30:00 +0000

Type Values Removed Values Added
First Time appeared Nrwl
Nrwl nx
Vendors & Products Nrwl
Nrwl nx

Thu, 06 Aug 2026 22:15:00 +0000

Type Values Removed Values Added
Description Nx is a monorepo solution for TypeScript and polyglot codebases. From version 20.8.0 until 22.7.7 and 23.0.2, the Nx self-hosted HTTP remote cache extracts downloaded cache artifacts without constraining where files are written. A malicious or on-path (MITM) remote cache server can return a crafted tar archive whose entries escape the cache directory and write to arbitrary locations on the machine running Nx, which can be escalated to remote code execution. Nx's default local cache and Nx Cloud are not affected; only workspaces configured to use a self-hosted remote cache are affected. This issue is fixed in versions 22.7.7 and 23.0.2.
Title Nx: Zip-Slip in the self-hosted remote cache
Weaknesses CWE-22
CWE-59
References
Metrics cvssV4_0

{'score': 8.7, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-06T20:07:09.019Z

Reserved: 2026-08-06T19:56:23.724Z

Link: CVE-2026-71476

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-07T01:15:04Z

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

  • CWE-59

    Improper Link Resolution Before File Access ('Link Following')