Nx
Nx: Zip-Slip in the self-hosted remote cache
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 20.8.0, < 22.7.7
- >= 23.0.0, < 23.0.2
Fixed in 22.7.7, 23.0.2
Mitigation
Upgrade nx to 22.7.7 or 23.0.2 or later.
References
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.