<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>@Nx/S3-Cache - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/products/@nx/s3-cache/</link><description>Trending threats, MITRE ATT&amp;CK coverage, and detection metadata. Fed continuously.</description><generator>Hugo</generator><language>en</language><managingEditor>hello@craftedsignal.io</managingEditor><webMaster>hello@craftedsignal.io</webMaster><lastBuildDate>Thu, 06 Aug 2026 21:29:52 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/products/@nx/s3-cache/feed.xml" rel="self" type="application/rss+xml"/><item><title>Zip-Slip Vulnerability in Nx Self-Hosted Remote Cache</title><link>https://feed.craftedsignal.io/briefs/2026-08-nx-zip-slip/</link><pubDate>Thu, 06 Aug 2026 21:29:52 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-08-nx-zip-slip/</guid><description>A Zip-Slip vulnerability in the Nx self-hosted HTTP remote cache allows a malicious cache server to write files to arbitrary locations on a client machine, leading to potential remote code execution.</description><content:encoded><![CDATA[<p>Nx versions 20.8.0 through 22.7.6 and 23.0.0 through 23.0.1 contain a critical Zip-Slip vulnerability in their self-hosted HTTP remote cache implementation. The vulnerability stems from an insecure extraction routine that fails to validate file paths within downloaded tar archives. By leveraging a compromised or malicious self-hosted remote cache server, an attacker can provide a crafted tar archive containing directory traversal sequences. These sequences cause the client-side Nx extraction logic to write files outside of the intended directory, potentially overwriting critical system files or placing malicious binaries in executable paths. This flaw is specific to self-hosted cache configurations (<code>NX_SELF_HOSTED_REMOTE_CACHE_SERVER</code> and related packages); default local caching and Nx Cloud remain unaffected.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>The attacker gains control of the infrastructure hosting the Nx remote cache server or performs a Man-in-the-Middle (MITM) attack to intercept HTTP traffic.</li>
<li>The Nx client requests a cached task output artifact from the remote cache server.</li>
<li>The malicious server responds with a crafted gzipped tar archive containing entries with directory traversal characters (e.g., ../../).</li>
<li>The Nx client receives the payload and passes it to the vulnerable extraction routine.</li>
<li>The routine joins the untrusted archive entry path to the base output directory without validation.</li>
<li>The <code>tar</code> extraction process writes the file to an arbitrary location on the client filesystem based on the traversal path.</li>
<li>The attacker targets sensitive locations, such as startup folders or configuration files, to achieve remote code execution upon the next system or application restart.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>The vulnerability poses a high risk to organizations using self-hosted Nx remote caches. Successful exploitation allows for arbitrary file writes with the privileges of the user running the Nx workspace commands. This can lead to full system compromise, exfiltration of sensitive source code or credentials, and persistent remote code execution within the CI/CD pipeline or developer environments.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Upgrade the <code>nx</code> core package to versions <code>22.7.7</code> or <code>23.0.2</code> immediately to patch the insecure extractor.</li>
<li>Migrate away from deprecated self-hosted cache packages (<code>@nx/s3-cache</code>, <code>@nx/gcs-cache</code>, <code>@nx/azure-cache</code>, <code>@nx/shared-fs-cache</code>, and their Powerpack counterparts) as these remain vulnerable and lack patches.</li>
<li>Audit infrastructure hosting remote caches to ensure secure access controls and prevent unauthorized server-side modifications.</li>
<li>Use network-level security, such as TLS and mutual authentication, to prevent MITM attacks on the remote cache traffic.</li>
</ul>
]]></content:encoded><category domain="severity">high</category><category domain="type">advisory</category></item></channel></rss>