CVE-2026-71476 Nx: Zip-Slip in the self-hosted remote cache

High 8.7 Published Updated

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.

Weakness: CWE-59, CWE-22

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.

PackageAffectedFixed in
nx npmFrom 20.8.022.7.7
nx npmFrom 20.8.022.7.7
nx npmFrom 23.0.023.0.2
nx npmFrom 23.0.023.0.2
@nx/azure-cache npmAll versions to 5.0.7None
@nx/azure-cache npmAll versions to 5.0.7None
14 more packages
@nx/gcs-cache npmAll versions to 5.0.7None
@nx/gcs-cache npmAll versions to 5.0.7None
@nx/powerpack-azure-cache npmAll versions to 5.0.7None
@nx/powerpack-azure-cache npmAll versions to 5.0.7None
@nx/powerpack-gcs-cache npmAll versions to 5.0.7None
@nx/powerpack-gcs-cache npmAll versions to 5.0.7None
@nx/powerpack-s3-cache npmAll versions to 5.0.7None
@nx/powerpack-s3-cache npmAll versions to 5.0.7None
@nx/powerpack-shared-fs-cache npmAll versions to 5.0.7None
@nx/powerpack-shared-fs-cache npmAll versions to 5.0.7None
@nx/s3-cache npmAll versions to 5.0.7None
@nx/s3-cache npmAll versions to 5.0.7None
@nx/shared-fs-cache npmAll versions to 5.0.7None
@nx/shared-fs-cache npmAll versions to 5.0.7None

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.

Is CVE-2026-71476 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free