CVE-2026-71476
CVE-2026-71476 · Nx: Zip-Slip in the self-hosted remote cache
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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.
CVSS 8.7 · High · EPSS 0.9% · Fix available
- Published
- Updated
Stack: node
Affected products and versions
nx
- Versions
- >= 20.8.0, < 22.7.7: Affected
- >= 23.0.0, < 23.0.2: Affected
No fix published
nx npm
- Affected ranges
- SEMVER: ≥ 20.8.0, < 22.7.7
Update to 22.7.7
@nx/s3-cache npm
- Affected ranges
- SEMVER: ≤ 5.0.7
No fix published
@nx/gcs-cache npm
- Affected ranges
- SEMVER: ≤ 5.0.7
No fix published
@nx/azure-cache npm
- Affected ranges
- SEMVER: ≤ 5.0.7
No fix published
@nx/shared-fs-cache npm
- Affected ranges
- SEMVER: ≤ 5.0.7
No fix published
@nx/powerpack-s3-cache npm
- Affected ranges
- SEMVER: ≤ 5.0.7
No fix published
@nx/powerpack-gcs-cache npm
- Affected ranges
- SEMVER: ≤ 5.0.7
No fix published
@nx/powerpack-azure-cache npm
- Affected ranges
- SEMVER: ≤ 5.0.7
No fix published
@nx/powerpack-shared-fs-cache npm
- Affected ranges
- SEMVER: ≤ 5.0.7
No fix published
nx npm
- Affected ranges
- SEMVER: ≥ 23.0.0, < 23.0.2
Update to 23.0.2
Original sources
- https://github.com/nrwl/nx/security/advisories/GHSA-vp3h-ghgh-jr7g
- https://github.com/nrwl/nx/pull/36116
- https://github.com/nrwl/nx/commit/2b20c2da39d263c32ae05767577589481a309fee
- https://github.com/nrwl/nx/commit/a82807621e4176e37909d2c1afede661b45cc30
- https://github.com/nrwl/nx/commit/ad296578fe980a4aad66f8af0add21f6ddf907d9
- https://nvd.nist.gov/vuln/detail/CVE-2026-71476