# CVE-2026-104859: Nx: OS command injection in the @nx/docker release pipeline

- Severity: High 7.3 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.15%, higher than 4% of CVEs (2026-12-01)
- Published: 2026-10-02T17:49:37.975Z
- Modified: 2026-10-05T23:45:08.226Z
- Also known as: GHSA-6vc5-vf29-ffr2
- Weaknesses: CWE-78
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- nrwl nx: >= 21.4.0, < 22.7.8; >= 23.0.0, < 23.1.1
- @nx/docker (npm): from 21.4.0 before 22.7.8; from 23.0.0 before 23.1.1

## Every score

- GitHub_M: CVSS:4.0 7.3 High `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`
- GitHub: CVSS:4.0 High `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`

## References

- <https://github.com/nrwl/nx/security/advisories/GHSA-6vc5-vf29-ffr2> (web)
- <https://github.com/nrwl/nx/pull/36505> (web)
- <https://github.com/nrwl/nx/commit/6d60eed061f050e0d5af509a1f5a07c707f09865> (web)
- <https://github.com/nrwl/nx/commit/b587441fd8da28c5db37edb0826554e0060dc81b> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-104859> (advisory)
- <https://github.com/nrwl/nx> (package)

## Sources

- CVE List: [CVE-2026-104859](https://www.cve.org/CVERecord?id=CVE-2026-104859), CVE Terms of Use, modified 2026-10-05
- GitHub Advisory Database: [GHSA-6vc5-vf29-ffr2](https://github.com/advisories/GHSA-6vc5-vf29-ffr2), CC-BY-4.0, modified 2026-10-05
- NVD: [CVE-2026-104859](https://nvd.nist.gov/vuln/detail/CVE-2026-104859), Public domain, modified 2026-10-05

---

Page: https://cve.day/CVE-2026-104859 · Whole record: https://cve.day/CVE-2026-104859.json · Rebuilt by cve.day 2026-11-25T22:59:41.996Z
