CVE-2026-71476: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in nrwl nx
Nx versions from 20.8.0 up to but not including 22.7.7 and 23.0.2 have a path traversal vulnerability in the self-hosted HTTP remote cache feature. This flaw allows a malicious or man-in-the-middle remote cache server to craft tar archives that write files outside the intended cache directory, potentially leading to remote code execution. The default local cache and Nx Cloud are not affected. The issue is fixed in versions 22.7.7 and 23.0.2.
AI Analysis
Technical Summary
Nx is a monorepo tool for TypeScript and polyglot codebases. In affected versions (>=20.8.0 <22.7.7 and >=20.8.0 <23.0.2), the self-hosted HTTP remote cache extracts downloaded cache artifacts without restricting file extraction paths. This allows a malicious or on-path attacker controlling the remote cache server to supply a crafted tar archive with entries that escape the cache directory, writing files to arbitrary locations on the host system. This can escalate to remote code execution. The vulnerability does not affect Nx's default local cache or Nx Cloud. The flaw is addressed in versions 22.7.7 and 23.0.2.
Potential Impact
An attacker controlling or intercepting the remote cache server can cause arbitrary files to be written outside the intended cache directory on the victim's machine. This can lead to remote code execution, compromising the system running Nx. Only workspaces configured to use a self-hosted remote cache are vulnerable. Default local cache and Nx Cloud users are not impacted.
Mitigation Recommendations
Upgrade Nx to version 22.7.7 or 23.0.2 or later, where this path traversal vulnerability is fixed. If upgrading immediately is not possible, avoid using self-hosted HTTP remote cache configurations until patched. The default local cache and Nx Cloud do not require action.
CVE-2026-71476: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in nrwl nx
Description
Nx versions from 20.8.0 up to but not including 22.7.7 and 23.0.2 have a path traversal vulnerability in the self-hosted HTTP remote cache feature. This flaw allows a malicious or man-in-the-middle remote cache server to craft tar archives that write files outside the intended cache directory, potentially leading to remote code execution. The default local cache and Nx Cloud are not affected. The issue is fixed in versions 22.7.7 and 23.0.2.
CVSS v4.0
Score 8.7high
Affected software
nrwl
nx
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Nx is a monorepo tool for TypeScript and polyglot codebases. In affected versions (>=20.8.0 <22.7.7 and >=20.8.0 <23.0.2), the self-hosted HTTP remote cache extracts downloaded cache artifacts without restricting file extraction paths. This allows a malicious or on-path attacker controlling the remote cache server to supply a crafted tar archive with entries that escape the cache directory, writing files to arbitrary locations on the host system. This can escalate to remote code execution. The vulnerability does not affect Nx's default local cache or Nx Cloud. The flaw is addressed in versions 22.7.7 and 23.0.2.
Potential Impact
An attacker controlling or intercepting the remote cache server can cause arbitrary files to be written outside the intended cache directory on the victim's machine. This can lead to remote code execution, compromising the system running Nx. Only workspaces configured to use a self-hosted remote cache are vulnerable. Default local cache and Nx Cloud users are not impacted.
Mitigation Recommendations
Upgrade Nx to version 22.7.7 or 23.0.2 or later, where this path traversal vulnerability is fixed. If upgrading immediately is not possible, avoid using self-hosted HTTP remote cache configurations until patched. The default local cache and Nx Cloud do not require action.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-08-06T19:56:23.724Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6a75070fbf8831d5395f5df2
Added to database: 08/06/2026, 22:13:35 UTC
Last enriched: 08/14/2026, 15:52:19 UTC
Last updated: 09/21/2026, 22:01:37 UTC
Views: 57
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.