{"answers":{"affected":"4 open source packages ship an affected version, including @nx/docker.","exploited":"There is no known exploitation of CVE-2026-104859 in the wild and no public exploit code.","fix":"Upgrade @nx/docker to a fixed version for your release line: 22.7.8 or 23.1.1.","what":"CVE-2026-104859 is a high-severity command injection vulnerability in nrwl nx, published on 2 Oct 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-104859 and fix it if it is affected.\n\nWhat it is: CVE-2026-104859 is a high-severity command injection vulnerability in nrwl nx, published on 2 Oct 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2026-104859 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- @nx/docker (npm): affected from 21.4.0; fixed in 22.7.8\n- @nx/docker (npm): affected from 21.4.0; fixed in 22.7.8\n- @nx/docker (npm): affected from 23.0.0; fixed in 23.1.1\n- @nx/docker (npm): affected from 23.0.0; fixed in 23.1.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-104859/ (Markdown: https://insights.sbomify.com/CVE-2026-104859/index.md)","id":"CVE-2026-104859","markdown":"https://insights.sbomify.com/CVE-2026-104859/index.md","name":"CVE-2026-104859","record":{"aliases":["GHSA-6vc5-vf29-ffr2"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["code_execution","data_read"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Nx monorepo tool","requires_auth":"none","summary":"Attackers can execute arbitrary OS commands via malicious configuration in Nx release pipelines, potentially exposing credentials and compromising the release environment.","user_interaction":"required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":7.3,"severity":"high","source":"cna","vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"description":"Nx is a monorepo solution for TypeScript and polyglot codebases. From 21.4.0 until 22.7.8 and from 23.0.0 until 23.1.1, the @nx/docker release pipeline builds docker tag, image lookup, and docker push invocations as shell command strings. The release.docker.repositoryName and registryUrl configuration values are interpolated into those strings and passed to /bin/sh -c, allowing shell syntax in untrusted Nx configuration to execute during nx release version or nx release publish. A pull request or repository configuration change can therefore execute commands with the release job's privileges and expose registry credentials or cloud tokens, and dry-run publishing does not prevent the vulnerable pre-check command from executing. This issue is fixed in versions 22.7.8 and 23.1.1.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Nx: OS command injection in the @nx/docker release pipeline","id":"CVE-2026-104859","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"command_injection","year":"2026"},"n_packages":4,"n_references":4,"next":{"headline":"probe-image-size: Quadratic-time Denial of Service in the SVG Parser","id":"CVE-2026-104861"},"packages":[{"ecosystem":"npm","fixed":["22.7.8"],"introduced":["21.4.0"],"last_affected":[],"package":"@nx/docker","purl":null,"source":"GHSA-6vc5-vf29-ffr2"},{"ecosystem":"npm","fixed":["22.7.8"],"introduced":["21.4.0"],"last_affected":[],"package":"@nx/docker","purl":"pkg:npm/%40nx/docker","source":"GHSA-6vc5-vf29-ffr2"},{"ecosystem":"npm","fixed":["23.1.1"],"introduced":["23.0.0"],"last_affected":[],"package":"@nx/docker","purl":null,"source":"GHSA-6vc5-vf29-ffr2"},{"ecosystem":"npm","fixed":["23.1.1"],"introduced":["23.0.0"],"last_affected":[],"package":"@nx/docker","purl":"pkg:npm/%40nx/docker","source":"GHSA-6vc5-vf29-ffr2"}],"prev":{"headline":"Wasmtime: Preemption and traps during bulk operations enable breaking internal VM state","id":"CVE-2026-104855"},"products":["nx"],"published":"2026-10-02","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-10-05","vendors":["nrwl"]},"summary":"Attackers can execute arbitrary OS commands via malicious configuration in Nx release pipelines, potentially exposing credentials and compromising the release environment.","url":"https://insights.sbomify.com/CVE-2026-104859/"}