chore(deps): update dependency nx to v23.0.2 [security] - #809
Open
renovate[bot] wants to merge 1 commit into
Open
chore(deps): update dependency nx to v23.0.2 [security]#809renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
23.0.0→23.0.2Nx: Zip-Slip in the self-hosted remote cache
CVE-2026-71476 / GHSA-vp3h-ghgh-jr7g
More information
Details
Summary
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. This arbitrary file write can be escalated to remote code execution. The directly exploitable issue is the self-hosted HTTP remote cache.
Affected Packages
Two self-hosted cache surfaces are affected:
NX_SELF_HOSTED_REMOTE_CACHE_SERVER, innx) — fixed in the patched release.@nx/s3-cache,@nx/gcs-cache,@nx/azure-cache,@nx/shared-fs-cache(and their@nx/powerpack-*predecessors) — the same flaw in their own extractor. Deprecated (CVE-2025-36852) and not patched; migrate off (see Remediation).The shared step that copies cached outputs into the workspace was also part of the exposure and is hardened in the patched
nxrelease.Remediation
Upgrade to Nx
22.7.7or23.0.2(or later). The patched extractor is a drop-in — no configuration change is required.If you use the S3, GCS, Azure, or shared-filesystem cache packages
@nx/s3-cache,@nx/gcs-cache,@nx/azure-cache, and@nx/shared-fs-cache(and their@nx/powerpack-*predecessors) are separately versioned packages and are already deprecated (see CVE-2025-36852). Upgradingnxhardens the shared restore step, but it does not fully secure these packages. The remediation for them is to migrate off — to Nx Cloud or the self-hosted OpenAPI/HTTP remote cache — per the deprecation guidance: https://nx.dev/docs/reference/deprecated/self-hosted-cache-packagesDetails
When Nx retrieves an artifact from the self-hosted HTTP remote cache, it downloads a gzipped tar archive and extracts it. The extractor joined each untrusted tar entry name directly onto the output directory and unpacked it with
tar's unguardedEntry::unpack(), which performs no containment check:In addition, restore now copies only the declared task outputs (never the whole cache directory), confined to the workspace root; parent directories are realized as real directories so a write can never traverse a symlink; declared outputs that resolve outside the workspace are rejected; and the malformed-input cases return errors instead of panicking.
References
Credits
Severity
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NReferences
This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).
Release Notes
nrwl/nx (nx)
v23.0.2Compare Source
23.0.2 (2026-07-10)
🚀 Features
🩹 Fixes
${configDir}in tsconfig path alias resolution (#36037, #35804)❤️ Thank You
v23.0.1Compare Source
23.0.1 (2026-06-23)
🚀 Features
🩹 Fixes
❤️ Thank You
Configuration
📅 Schedule: (in timezone UTC)
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.