{"id":"CVE-2026-104854","aliases":["EUVD-2026-91762","GHSA-w3vv-58gj-gw77","ROOT-APP-NPM-CVE-2026-104854"],"status":"published","title":"Nx daemon and plugin worker sockets are accessible to other local users","description":"Nx is a monorepo solution for TypeScript and polyglot codebases. From 14.6.0 until 22.7.9 and 23.1.2, Nx creates Unix domain sockets for its daemon and isolated plugin workers in shared temporary locations without owner-only directory and socket permissions. Another unprivileged local account on a shared build server, developer host, or multi-user container can discover and connect to a running socket because the transport performs no authentication and relies on filesystem containment. The daemon's PROCESS_IN_BACKGROUND request accepts a module path and invokes its default export, allowing a caller that controls a file to execute code as the account running Nx; other handlers can expose workspace file contents, project graphs, and task hashes. Disabling the daemon alone does not remove the vulnerable plugin-worker sockets, while single-user machines without another local account are not exposed. This issue is fixed in versions 22.7.9 and 23.1.2.","severity":{"version":"4.0","score":8.5,"vector":"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","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-12","score":0.00142,"percentile":0.03527,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-269","CWE-732"],"published":"2026-10-02T16:59:48Z","modified":"2026-10-28T02:30:32Z","fixes":[{"ecosystem":"npm","package":"nx","fixed_in":["22.7.9","23.1.2"],"sources":["ghsa","osv"]},{"ecosystem":"Root:npm","package":"nx","fixed_in":["15.8.7-aikido.1","14.8.9-aikido.2","19.8.14-aikido.1"],"sources":["osv"]},{"ecosystem":"Root:npm","package":"@rootio/nx","fixed_in":["15.8.7-root.io.1","14.8.9-root.io.2","19.8.14-root.io.1"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"nx","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"14.6.0"},{"fixed":"22.7.9"}]}]},{"source":"ghsa","ecosystem":"npm","package":"nx","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"23.0.0"},{"fixed":"23.1.2"}]}]},{"source":"osv","ecosystem":"npm","package":"nx","ranges":[{"type":"SEMVER","events":[{"introduced":"14.6.0"},{"fixed":"22.7.9"}]}]},{"source":"osv","ecosystem":"npm","package":"nx","ranges":[{"type":"SEMVER","events":[{"introduced":"23.0.0"},{"fixed":"23.1.2"}]}]},{"source":"osv","ecosystem":"Root:npm","package":"nx","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"15.8.7-aikido.1"},{"fixed":"14.8.9-aikido.2"},{"fixed":"19.8.14-aikido.1"}]}]},{"source":"osv","ecosystem":"Root:npm","package":"@rootio/nx","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"15.8.7-root.io.1"},{"fixed":"14.8.9-root.io.2"},{"fixed":"19.8.14-root.io.1"}]}]}],"products":[{"vendor":"nrwl","product":"nx"},{"vendor":"siemens","product":"nx"}],"references":[{"url":"https://github.com/nrwl/nx/security/advisories/GHSA-w3vv-58gj-gw77","tags":["x_refsource_CONFIRM","advisory","web"]},{"url":"https://github.com/nrwl/nx/pull/36370","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/nrwl/nx/commit/3298fd8b2dd066167eb3cc0410643994a59b0bba","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/nrwl/nx/commit/63e1abb287a3d69f8ba981828a1de325d0d3dc68","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/nrwl/nx/commit/71c2253b6aac23b008e192c4e2642c42a5e07545","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/nrwl/nx/releases/tag/22.7.9","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/nrwl/nx/releases/tag/23.1.2","tags":["x_refsource_MISC","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-104854","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-w3vv-58gj-gw77"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/104xxx/CVE-2026-104854.json","tags":["advisory"]},{"url":"https://github.com/nrwl/nx","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2026-104854","title":"Nx daemon and plugin worker sockets are accessible to other local users","description":"Nx is a monorepo solution for TypeScript and polyglot codebases. From 14.6.0 until 22.7.9 and 23.1.2, Nx creates Unix domain sockets for its daemon and isolated plugin workers in shared temporary locations without owner-only directory and socket permissions. Another unprivileged local account on a shared build server, developer host, or multi-user container can discover and connect to a running socket because the transport performs no authentication and relies on filesystem containment. The daemon's PROCESS_IN_BACKGROUND request accepts a module path and invokes its default export, allowing a caller that controls a file to execute code as the account running Nx; other handlers can expose workspace file contents, project graphs, and task hashes. Disabling the daemon alone does not remove the vulnerable plugin-worker sockets, while single-user machines without another local account are not exposed. This issue is fixed in versions 22.7.9 and 23.1.2.","status":"published","published":"2026-10-02T16:59:48.238Z","modified":"2026-10-02T17:28:06.022Z","cvss":[{"version":"4.0","score":8.5,"vector":"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","level":"high","assessor":"cna"}],"cwes":["CWE-269","CWE-732"],"updated_at":"2026-11-02T14:20:09.448255Z"}],"euvd":[{"id":"EUVD-2026-91762","description":"Nx is a monorepo solution for TypeScript and polyglot codebases. From 14.6.0 until 22.7.9 and 23.1.2, Nx creates Unix domain sockets for its daemon and isolated plugin workers in shared temporary locations without owner-only directory and socket permissions. Another unprivileged local account on a shared build server, developer host, or multi-user container can discover and connect to a running socket because the transport performs no authentication and relies on filesystem containment. The daemon's PROCESS_IN_BACKGROUND request accepts a module path and invokes its default export, allowing a caller that controls a file to execute code as the account running Nx; other handlers can expose workspace file contents, project graphs, and task hashes. Disabling the daemon alone does not remove the vulnerable plugin-worker sockets, while single-user machines without another local account are not exposed. This issue is fixed in versions 22.7.9 and 23.1.2.","status":"published","published":"2026-10-02T16:59:48Z","modified":"2026-10-02T17:28:06Z","cvss":[{"version":"4.0","score":8.5,"vector":"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","level":"high"}],"updated_at":"2026-11-02T17:27:42.349288Z"}],"ghsa":[{"id":"GHSA-w3vv-58gj-gw77","title":"Nx daemon and plugin worker sockets are accessible to other local users","description":"## Summary\n\nNx 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.\n\n## Severity\n\n\nExploitable 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.\n\n## Affected \u0026 Patched Versions\n\n| Package | Vulnerable | Patched |\n| --- | --- | --- |\n| `nx` | `\u003e= 14.6.0, \u003c 22.7.9`; `\u003e= 23.0.0, \u003c 23.1.2` | `22.7.9`, `23.1.2` |\n\nEvery 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.\n\n\u003e [!IMPORTANT]\n\u003e 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.\n\u003e\n\u003e 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.\n\n## Remediation\n\nUpgrade to **22.7.9** (22.x line) or **23.1.2** (23.x line) or later:\n\n```\nnx migrate 23.1.2\n```\n\nOn a shared machine, run `nx reset` after upgrading so that any sockets and directories created by an older version are removed rather than reused.\n\nIf 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.\n\n## Details\n\nThe 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.\n\nThe 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.\n\nThe 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.\n\n## Credits\n\nReported by researchers at the University of Sydney:\n\n- Liyi\n- Ziyue\n- Strick\n- Maurice\n- Chenchen","status":"published","published":"2026-10-05T23:28:43Z","modified":"2026-10-05T23:28:44Z","cvss":[{"version":"4.0","score":8.5,"vector":"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","level":"high"}],"cwes":["CWE-269","CWE-732"],"updated_at":"2026-11-02T14:41:27.036917Z"}],"nvd":[{"id":"CVE-2026-104854","description":"Nx is a monorepo solution for TypeScript and polyglot codebases. From 14.6.0 until 22.7.9 and 23.1.2, Nx creates Unix domain sockets for its daemon and isolated plugin workers in shared temporary locations without owner-only directory and socket permissions. Another unprivileged local account on a shared build server, developer host, or multi-user container can discover and connect to a running socket because the transport performs no authentication and relies on filesystem containment. The daemon's PROCESS_IN_BACKGROUND request accepts a module path and invokes its default export, allowing a caller that controls a file to execute code as the account running Nx; other handlers can expose workspace file contents, project graphs, and task hashes. Disabling the daemon alone does not remove the vulnerable plugin-worker sockets, while single-user machines without another local account are not exposed. This issue is fixed in versions 22.7.9 and 23.1.2.","status":"published","published":"2026-10-02T17:17:04.07Z","modified":"2026-10-02T18:17:01.96Z","cvss":[{"version":"4.0","score":8.5,"vector":"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","level":"high","assessor":"secondary"}],"cwes":["CWE-269","CWE-732"],"updated_at":"2026-11-02T14:12:53.75133Z"}],"osv":[{"id":"CVE-2026-104854","title":"Nx daemon and plugin worker sockets are accessible to other local users","description":"Nx is a monorepo solution for TypeScript and polyglot codebases. From 14.6.0 until 22.7.9 and 23.1.2, Nx creates Unix domain sockets for its daemon and isolated plugin workers in shared temporary locations without owner-only directory and socket permissions. Another unprivileged local account on a shared build server, developer host, or multi-user container can discover and connect to a running socket because the transport performs no authentication and relies on filesystem containment. The daemon's PROCESS_IN_BACKGROUND request accepts a module path and invokes its default export, allowing a caller that controls a file to execute code as the account running Nx; other handlers can expose workspace file contents, project graphs, and task hashes. Disabling the daemon alone does not remove the vulnerable plugin-worker sockets, while single-user machines without another local account are not exposed. This issue is fixed in versions 22.7.9 and 23.1.2.","status":"published","published":"2026-10-02T16:59:48.238Z","modified":"2026-10-28T02:30:32.625901695Z","cvss":[{"version":"4.0","score":8.5,"vector":"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","level":"high"}],"cwes":["CWE-269","CWE-732"],"updated_at":"2026-11-02T15:44:54.236592Z"},{"id":"GHSA-w3vv-58gj-gw77","title":"Nx daemon and plugin worker sockets are accessible to other local users","description":"## Summary\n\nNx 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.\n\n## Severity\n\n\nExploitable 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.\n\n## Affected \u0026 Patched Versions\n\n| Package | Vulnerable | Patched |\n| --- | --- | --- |\n| `nx` | `\u003e= 14.6.0, \u003c 22.7.9`; `\u003e= 23.0.0, \u003c 23.1.2` | `22.7.9`, `23.1.2` |\n\nEvery 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.\n\n\u003e [!IMPORTANT]\n\u003e 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.\n\u003e\n\u003e 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.\n\n## Remediation\n\nUpgrade to **22.7.9** (22.x line) or **23.1.2** (23.x line) or later:\n\n```\nnx migrate 23.1.2\n```\n\nOn a shared machine, run `nx reset` after upgrading so that any sockets and directories created by an older version are removed rather than reused.\n\nIf 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.\n\n## Details\n\nThe 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.\n\nThe 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.\n\nThe 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.\n\n## Credits\n\nReported by researchers at the University of Sydney:\n\n- Liyi\n- Ziyue\n- Strick\n- Maurice\n- Chenchen","status":"published","published":"2026-10-05T23:28:43Z","modified":"2026-10-05T23:45:08.858652972Z","cvss":[{"version":"4.0","score":8.5,"vector":"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","level":"high"}],"cwes":["CWE-269","CWE-732"],"updated_at":"2026-11-02T15:46:58.04805Z"},{"id":"ROOT-APP-NPM-CVE-2026-104854","title":"CVE-2026-104854 in nx - Patched by Root","description":"Root has patched CVE-2026-104854 in the nx package for Root:npm. Multiple fixed versions available.","status":"published","published":"2026-10-19T04:48:09Z","modified":"2026-10-19T05:15:04.629919126Z","updated_at":"2026-11-02T15:53:27.362922Z"}]}}
