CVE-2026-71476 Nx: Zip-Slip in the self-hosted remote cache
Attackers can achieve remote code execution via path traversal in the self-hosted remote cache of the Nx monorepo tool.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2026-71476?
CVE-2026-71476 is a high-severity path traversal vulnerability in nrwl nx, published on 6 Aug 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official 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.
Which versions are affected by CVE-2026-71476?
20 open source packages ship an affected version, including nx, @nx/azure-cache and @nx/gcs-cache.
| Package | Affected | Fixed in |
|---|---|---|
nx npm | From 20.8.0 | 22.7.7 |
nx npm | From 20.8.0 | 22.7.7 |
nx npm | From 23.0.0 | 23.0.2 |
nx npm | From 23.0.0 | 23.0.2 |
@nx/azure-cache npm | All versions to 5.0.7 | None |
@nx/azure-cache npm | All versions to 5.0.7 | None |
14 more packages
@nx/gcs-cache npm | All versions to 5.0.7 | None |
@nx/gcs-cache npm | All versions to 5.0.7 | None |
@nx/powerpack-azure-cache npm | All versions to 5.0.7 | None |
@nx/powerpack-azure-cache npm | All versions to 5.0.7 | None |
@nx/powerpack-gcs-cache npm | All versions to 5.0.7 | None |
@nx/powerpack-gcs-cache npm | All versions to 5.0.7 | None |
@nx/powerpack-s3-cache npm | All versions to 5.0.7 | None |
@nx/powerpack-s3-cache npm | All versions to 5.0.7 | None |
@nx/powerpack-shared-fs-cache npm | All versions to 5.0.7 | None |
@nx/powerpack-shared-fs-cache npm | All versions to 5.0.7 | None |
@nx/s3-cache npm | All versions to 5.0.7 | None |
@nx/s3-cache npm | All versions to 5.0.7 | None |
@nx/shared-fs-cache npm | All versions to 5.0.7 | None |
@nx/shared-fs-cache npm | All versions to 5.0.7 | None |
How do I fix CVE-2026-71476?
Upgrade nx to a fixed version for your release line: 22.7.7 or 23.0.2.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2026-71476 being exploited?
There is no known exploitation of CVE-2026-71476 in the wild and no public exploit code.
Sources
Also known as GHSA-vp3h-ghgh-jr7g, ROOT-APP-NPM-CVE-2026-71476.