chore(deps): update dependency nx to v22.7.10 [security] #384
main fromrefs/pull/384/head·merged by renovate[bot](GitHub profile, opens in a new tab) This PR contains the following updates:
| Package | Change | Age | Confidence |
|---|---|---|---|
| nx (source) | 22.7.7 → 22.7.10 |
Nx: Path traversal in nx migrate package-migrations extraction#
CVE-2026-104853 / GHSA-hrvq-x7jp-36xv
More information
Details#
Summary#
nx migrate reads each target package's nx-migrations.migrations value from its manifest and extracts the referenced file to a path built by joining that value onto a temporary directory. The value is never validated, so a package whose migrations field contains .. segments (or an absolute path) steers the extraction to write outside the temporary directory. A hostile package — or any package pulled in transitively through a trusted package's packageGroup — can write attacker-controlled content, or truncate an existing file, anywhere the running user can write. This happens during migration planning, before the user reviews the migration list and before --run-migrations, so it does not require the user to approve or execute anything.
Most workspaces need no action. By default nx migrate does not run the nx installed in your workspace — it installs nx@latest into a temporary directory and performs the upgrade planning, including this extraction, with that copy. Now that a patched nx is the latest release, a default nx migrate run is unaffected whatever version the workspace has installed. The installed version only runs, and is only then exposed, when that hand-off is bypassed — see Remediation.
Severity#
Exploitable when the victim runs nx migrate against a package the attacker controls, directly or through a trusted package's packageGroup. The primary impact is a file write with attacker-controlled content and no path confinement; overwriting an auto-loaded file (a shell rc, a git hook, a CI script) escalates that write to code execution. There is no known evidence of exploitation in the wild.
Affected & Patched Versions#
| Package | Vulnerable | Patched |
|---|---|---|
nx | >= 13.10.0, < 22.7.10; >= 23.0.0, < 23.2.1 | 22.7.10, 23.2.1 |
Every version in the ranges above is affected. The lower bound is 13.10.0, the first release where nx migrate extracted a package's migrations file from its tarball; earlier versions resolved migrations without that extraction.
Important
nx migrate normally fetches and runs nx@latest rather than the nx installed in your workspace. The ranges above therefore say where the vulnerable code ships, not who is exposed — it only runs when that hand-off is bypassed.
Remediation#
If you run nx migrate normally, there is nothing to do. It resolves and runs the latest nx, which is patched, so your workspace's own nx version does not matter for this flaw.
Upgrade only if you bypass that hand-off and run the workspace's nx instead — that is, if you set NX_USE_LOCAL or NX_MIGRATE_USE_LOCAL, pin NX_MIGRATE_CLI_VERSION to an affected version, resume an existing run with --run-id, or run where the temporary install fails and nx migrate falls back to the local nx. In those cases upgrade to 22.7.10 (22.x line) or 23.2.1 (23.x line) or later:
nx migrate 23.2.1
The fix is a drop-in — no configuration changes are required, and no legitimate migrations value is affected (real packages reference ./migrations.json or another path within their own directory, all of which remain valid). Either way, do not run nx migrate against packages, or packageGroup members, that you do not trust.
Details#
While planning an upgrade, nx migrate extracts each target package's migrations file to a destination built by joining the package's own nx-migrations.migrations value onto a temporary directory. That value is read from the manifest without validation, and it is handled asymmetrically: the name Nx matches against the archive entries is normalized (so its .. segments collapse), while the destination path it writes to is a raw join that keeps the .. segments and resolves outside the temporary directory. Because the attacker controls the tarball, they name their entry to equal the normalized form; the match then succeeds and the bytes are written to the un-normalized, escaping destination. The normalization is not a defence — it only dictates what the attacker must name their entry.
The same value also seeds the directory used for prompt-file extraction, which has the same shape, so both writes are steerable from the one field.
Two distinct primitives fall out of this:
- Truncation — the destination write stream is opened, and truncates, before any tar entry is inspected. So a package that points
migrationsat an existing file empties that file even when no tar entry matches — no crafted archive required. - Controlled write — when a tar entry's name matches, its bytes are written to the escaping destination. The extractor performs no path containment of its own.
Credits#
- Arkadiusz Marta (RE:SOURCE) — Reporter
Severity#
- CVSS Score: 5.8 / 10 (Medium)
- Vector String:
CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:P/VC:L/VI:H/VA:L/SC:N/SI:N/SA:N
References#
- https://github.com/nrwl/nx/security/advisories/GHSA-hrvq-x7jp-36xv
- https://nvd.nist.gov/vuln/detail/CVE-2026-104853
- https://github.com/nrwl/nx/pull/36887
- https://github.com/nrwl/nx/commit/38cd82a0c05e8212e538bdb87ccb198d6504e58f
- https://github.com/nrwl/nx/commit/95474ab457e8e1dbdbefad29040c166105a8fb90
- https://github.com/nrwl/nx/commit/de37c5ebd1852fac700d70726326236ac398af3f
- https://github.com/nrwl/nx/releases/tag/22.7.10
- https://github.com/nrwl/nx/releases/tag/23.2.1
- https://github.com/advisories/GHSA-hrvq-x7jp-36xv
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Nx daemon and plugin worker sockets are accessible to other local users#
CVE-2026-104854 / GHSA-w3vv-58gj-gw77
More information
Details#
Summary#
Nx creates the Unix domain sockets for its daemon and its plugin workers in a shared temporary directory with default permissions, so any other user on the same machine can connect to them. The daemon accepts a PROCESS_IN_BACKGROUND request that names a module to load and invokes its default export, which turns socket access into code execution inside the daemon process. On a multi-user machine — a shared build server, a shared developer box, or a container running several accounts — one local user can execute code as another user running Nx.
Severity#
Exploitable by any other unprivileged local user on a shared host while a daemon or plugin worker is running, with no user interaction. There is no known evidence of exploitation in the wild.
Affected & Patched Versions#
| Package | Vulnerable | Patched |
|---|---|---|
nx | >= 14.6.0, < 22.7.9; >= 23.0.0, < 23.1.2 | 22.7.9, 23.1.2 |
Every version in the ranges above is affected. The lower bound is 14.6.0, when the daemon request handler that turns socket access into code execution was added.
Important
Single-user machines are not exposed. The vulnerability requires another local account on the same host, so an ordinary laptop with one user account is unaffected — the exposure is shared CI runners, shared build and development servers, and containers or images that run more than one uid.
Disabling the daemon is not sufficient on its own: the plugin worker sockets used by plugin isolation are created in the same directory with the same permissions, and those are used during normal command runs whether or not the daemon is enabled.
Remediation#
Upgrade to 22.7.9 (22.x line) or 23.1.2 (23.x line) or later:
nx migrate 23.1.2
On a shared machine, run nx reset after upgrading so that any sockets and directories created by an older version are removed rather than reused.
If you cannot upgrade, point NX_SOCKET_DIR at a directory you own with mode 0700, which is already honoured by the vulnerable versions, and disable the daemon with NX_DAEMON=false to reduce the reachable surface — though, per the callout above, that does not remove the plugin worker sockets.
Details#
The daemon and the plugin workers communicate over Unix domain sockets placed in a subdirectory of the shared OS temporary directory. That directory is created with default permissions, which on a typical system leave it readable and traversable by every user on the machine, and nothing narrows the socket files themselves. The directory name is derived from a hash of the workspace path and the process id, so it is unique but not secret — any local user who lists the temporary directory can find it.
The connection carries no authentication: the containment is meant to be the filesystem permissions alone, and those are too broad. Any local process that can reach the socket is treated as a fully trusted client.
The impact of that access is set by what the daemon's request handlers allow. One handler takes a module path from the request and loads and invokes it; because an absolute path resolves regardless of the lookup constraints in place, a caller who can write a file anywhere on the machine — their own home directory suffices — and connect to the socket can have the daemon execute it, as the user running the daemon. Other handlers expose workspace file contents, the project graph, and task hashes to the same unauthenticated caller.
Credits#
Reported by researchers at the University of Sydney:
- Liyi
- Ziyue
- Strick
- Maurice
- Chenchen
Severity#
- CVSS Score: 8.5 / 10 (High)
- Vector String:
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
References#
- https://github.com/nrwl/nx/security/advisories/GHSA-w3vv-58gj-gw77
- https://nvd.nist.gov/vuln/detail/CVE-2026-104854
- https://github.com/nrwl/nx/pull/36370
- https://github.com/nrwl/nx/commit/3298fd8b2dd066167eb3cc0410643994a59b0bba
- https://github.com/nrwl/nx/commit/63e1abb287a3d69f8ba981828a1de325d0d3dc68
- https://github.com/nrwl/nx/commit/71c2253b6aac23b008e192c4e2642c42a5e07545
- https://github.com/nrwl/nx/releases/tag/22.7.9
- https://github.com/nrwl/nx/releases/tag/23.1.2
- https://github.com/advisories/GHSA-w3vv-58gj-gw77
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Nx: OS command injection via git revisions and remote refs#
More information
Details#
Summary#
Nx core builds several git invocations as shell command strings with untrusted values interpolated into them, so a value that should be a git revision or ref is parsed by /bin/sh instead. Two entry points are reachable by an attacker: affected commands, where defaultBase / affected.defaultBase from nx.json (and the NX_BASE / NX_HEAD environment variables) reach git merge-base and git diff; and nx import, where a branch name advertised by a remote repository reaches git fetch, git checkout, and git config. In both cases an attacker who controls a repository — or who opens a pull request against one — gets arbitrary command execution on the machine of anyone who runs an ordinary Nx command against it, including CI runners.
The affected path is the more serious of the two. nx affected and nx show projects --affected run constantly in CI, so a pull request that changes nothing but nx.json is enough to execute code on the runner with whatever credentials that job holds.
Severity#
Exploitable by anyone who controls repository content — a fork's pull request, or a repository the victim clones — that the victim then runs an ordinary nx affected or nx import against; no access to the victim's machine is required. We have no evidence of exploitation in the wild.
Affected & Patched Versions#
| Package | Vulnerable | Patched |
|---|---|---|
nx | >= 14.0.0, < 22.7.8; >= 23.0.0, < 23.1.1 | 22.7.8, 23.1.1 |
Treat every version below the patched ones as affected.
Remediation#
Upgrade to 22.7.8 (22.x line) or 23.1.1 (23.x line) or later:
nx migrate 23.1.1
The fix is a drop-in — no configuration changes are required. If you cannot upgrade, treat nx.json from untrusted sources as executable content, do not run affected commands against pull requests you have not reviewed, and do not run nx import against repositories you do not trust.
Details#
affected commands#
Nx computes the merge base and the changed-file set by building git merge-base and git diff command lines as strings and running them through a shell. The base and head revisions in those strings come from nx.json's defaultBase / affected.defaultBase or from the NX_BASE / NX_HEAD environment variables, and a related code path reads file contents with git show <revision>:<path> the same way. Because a shell parses the whole line, a revision value containing shell syntax is executed rather than passed to git.
The revisions are wrapped in double quotes, which looks protective but is not: POSIX shells still perform command substitution inside double quotes, so a value of $(…) runs without needing to break out of the quotes.
nx import#
The GitRepository helper runs every git operation — fetch, checkout, reset, config, and others — by interpolating its arguments into a shell command string. The untrusted argument is a branch name: nx import lists the branches a remote advertises, offers them to the user to choose from, and feeds the chosen name back into those commands. A hostile repository controls the names of its own branches, so it controls the command that runs when one is selected.
Credits#
- Arkadiusz Marta (RE:SOURCE) — Reporter
Severity#
- CVSS Score: 8.5 / 10 (High)
- Vector String:
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
References#
- https://github.com/nrwl/nx/security/advisories/GHSA-w2vw-w76x-qr89
- https://github.com/nrwl/nx/pull/36348
- https://github.com/nrwl/nx/pull/36379
- https://github.com/nrwl/nx/commit/11ab38573478172109bb5306cb30ca4af246caf0
- https://github.com/nrwl/nx/commit/4159295a037fdbd8e7f44a33a19d85ab3792415b
- https://github.com/nrwl/nx/commit/9ce184a04d2098a4797c8b0d6877ee079b751abf
- https://github.com/nrwl/nx/commit/c12850ce7b364db08e325c13541641d754db7123
- https://github.com/nrwl/nx/commit/cd9b3c068e17adc9c1722b35b9ca962b98542c20
- https://github.com/nrwl/nx/commit/cf996496bbad727362d48292b50fafc8c3665847
- https://github.com/nrwl/nx/releases/tag/22.7.8
- https://github.com/nrwl/nx/releases/tag/23.1.1
- https://github.com/advisories/GHSA-w2vw-w76x-qr89
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Release Notes#
nrwl/nx (nx)
v22.7.10#
22.7.10 (2026-09-09)#
🩹 Fixes#
- core: validate the migrations path before extracting package migrations (#​36887)
❤️ Thank You#
- Jason Jean @​FrozenPandaz
- Leosvel Pérez Espinosa @​leosvelperez
v22.7.9#
22.7.9 (2026-09-01)#
🩹 Fixes#
- core: restrict daemon and plugin worker socket access to the owning user (#​36370, #​36586, #​36463)
- core: compare daemon workspace roots case-insensitively on Windows (#​36835, #​36722)
- core: close daemon log descriptors after spawn to avoid Node 26 crash (#​36280)
- core: port quoteShellArg helper for no-shell spawn fixes (#​36215, #​36626, #​35954)
- maven: stop running maven and gradle graph analysis through a shell (#​36626, #​36215)
❤️ Thank You#
- AgentEnder @​AgentEnder
- Craigory Coppola @​AgentEnder
- FrozenPandaz @​FrozenPandaz
- Jason Jean @​FrozenPandaz
- Jelle Bruisten @​JelleBruisten
- Leosvel Pérez Espinosa @​leosvelperez
v22.7.8#
22.7.8 (2026-07-30)#
🩹 Fixes#
- angular-rspack: dispose stylesheet bundler so one-shot builds exit (#​35869)
- core: use workspace package manager when fetching migrations via install (#​35866)
- core: omit peer dependencies when installing packages to a temp dir (#​36295)
- core: prevent shell injection in nx import (#​36348)
- core: stop passing git revisions through a shell in affected commands (#​36379)
- core: allow nx build scripts in generated pnpm-workspace.yaml (#​35564)
- core: acknowledge @​swc/core build script in generated pnpm-workspace.yaml (#​35608)
- core: keep real dependencies when omitting peers from npm temp installs (#​36518, #​36295)
- core: bump pinned axios and brace-expansion past vulnerable versions (#​36507, #​36474)
- detox: resolve jest versions locally instead of importing @​nx/jest internals (3ce3f6ab6e)
- docker: run release pipeline docker commands without a shell (#​36505)
- js: exclude typescript 7 from supported versions on 22.7.x (dc804964e9)
- js: resolve the verdaccio bin through its package.json (#​36479)
- misc: use default import for chalk in @​nx/workspace output.ts (#​35523, #​35521, #​34111, #​21201, #​26667)
- repo: use default inputs instead of the '...' token in nx-dev on 22.7.x (#​35530)
- repo: trust wix/brew tap so macOS detox CI can install applesimutils (#​36146)
- testing: seed typescript before plugins in e2e workspaces to avoid TS7 stub (7f5ffbfcbc)
❤️ Thank You#
- Craigory Coppola @​AgentEnder
- FrozenPandaz @​FrozenPandaz
- Jack Hsu @​jaysoo
- Jason Jean @​FrozenPandaz
- Jonathan Garvey @​jdgarvey
- Miroslav Jonaš @​meeroslav
Configuration#
📅 Schedule: (UTC)
- Branch creation
- At any time (no schedule defined)
- Automerge
- At any time (no schedule defined)
🚦 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.
- If you want to rebase/retry this PR, check this box
This PR was generated by Mend Renovate. View the repository job log.
- 1
renovate[bot](GitHub profile, opens in a new tab) added labelsdependencies
Important
Review skipped#
Bot user detected.
To trigger a single review, invoke the
@coderabbitai reviewcommand.⚙️ Run configuration
- Configuration used: defaults
- Review profile: CHILL
- Plan: Advanced
- Run ID:
4089a677-145c-46b4-bd45-f4b333e9114f
You can disable this status message by setting the
reviews.review_statustofalsein the CodeRabbit configuration file.Use the checkbox below for a quick retry:
- 🔍 Trigger review
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Comment `@coderabbitai help` to get the list of available commands.Review the following changes in direct dependencies. Learn more about Socket for GitHub.
Diff Package Supply Chain
SecurityVulnerability Quality Maintenance License nx@22.7.7 ⏵ 22.7.10 +25
+23
+1
Warning
Review the following alerts detected in dependencies.
According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.
Priority Alert (click "▶" to expand/collapse) Action High CVE: Axios: ReDoS in fromDataURI data: URL parser freezes the Node event loop (DoS)
Affected versions: >= 1.16.1 < 1.20.0
Patched version: 1.20.0
From: pnpm-lock.yaml →
npm/nx@22.7.10→npm/axios@1.18.1ℹ Read more on: This package | This alert | What is a CVE?
Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at
support@socket.dev.Suggestion: Remove or replace dependencies that include known high severity CVEs. Consumers can use dependency overrides or npm audit fix --force to remove vulnerable dependencies.
Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment
@SocketSecurity ignore npm/axios@1.18.1. You can also ignore all packages with@SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.Warn
High CVE: Axios: maxRedirects: 0 is not enforced by the fetch adapter, allowing redirect-based SSRF
Affected versions: >= 1.17.0 < 1.20.0
Patched version: 1.20.0
From: pnpm-lock.yaml →
npm/nx@22.7.10→npm/axios@1.18.1ℹ Read more on: This package | This alert | What is a CVE?
Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at
support@socket.dev.Suggestion: Remove or replace dependencies that include known high severity CVEs. Consumers can use dependency overrides or npm audit fix --force to remove vulnerable dependencies.
Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment
@SocketSecurity ignore npm/axios@1.18.1. You can also ignore all packages with@SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.Warn
View your CI Pipeline Execution ↗ for commit d7bee4be4770c4badda5055b1d98f8eb8138e2ab
Command Status Duration Result nx affected --targets=test:sherif,test:knip,tes...✅ Succeeded 2m 40s View ↗ nx run-many --target=build --exclude=examples/**✅ Succeeded 12s View ↗
☁️ Nx Cloud last updated this comment at
2026-10-09 21:07:45UTC@tanstack/angular-store
npm i https://pkg.pr.new/@tanstack/angular-store@384@tanstack/lit-store
npm i https://pkg.pr.new/@tanstack/lit-store@384@tanstack/octane-store
npm i https://pkg.pr.new/@tanstack/octane-store@384@tanstack/preact-store
npm i https://pkg.pr.new/@tanstack/preact-store@384@tanstack/react-store
npm i https://pkg.pr.new/@tanstack/react-store@384@tanstack/solid-store
npm i https://pkg.pr.new/@tanstack/solid-store@384@tanstack/store
npm i https://pkg.pr.new/@tanstack/store@384@tanstack/svelte-store
npm i https://pkg.pr.new/@tanstack/svelte-store@384@tanstack/vue-store
npm i https://pkg.pr.new/@tanstack/vue-store@384commit:
d7bee4b
Sign in to join this conversation.
⚠️ No Changeset found#
Latest commit: d7bee4be4770c4badda5055b1d98f8eb8138e2ab
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
This PR includes no changesets
When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR