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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.3
- **CVSS:** 7.3 (v4.0, CNA) `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`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Attack requirements: Present; Privileges required: None; User interaction: Passive; Confidentiality impact: High; Integrity impact: High; Availability impact: High; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.22% (percentile 8, 2026-11-28)
- **CWE:** CWE-78
- **Aliases:** GHSA-6vc5-vf29-ffr2
- **Published:** 2026-10-02T17:49:37.975Z
- **Modified:** 2026-10-05T23:45:08.226Z

## Who should check

- Projects that depend on npm package @nx/docker (\>= 21.4.0, \< 22.7.8)
- Anyone running nrwl nx \>= 21.4.0, \< 22.7.8; \>= 23.0.0, \< 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.

## Affected and fixed versions

- npm `@nx/docker`: affected \>= 21.4.0, \< 22.7.8; fixed 22.7.8, 23.1.1 (osv)
- nrwl nx: \>= 21.4.0, \< 22.7.8; \>= 23.0.0, \< 23.1.1 (cvelist)

## Mitigation

- Upgrade @nx/docker to one of 22.7.8, 23.1.1 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-104859. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-104859.md
Affected: @nx/docker >= 21.4.0, < 22.7.8
Fixed in: 22.7.8, 23.1.1

Steps:
1. Search this machine and project for @nx/docker (npm), nrwl nx: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-104859 being exploited?

There is no confirmed exploitation: CVE-2026-104859 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.22% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-104859?

High: CVSS 7.3 (v4.0, scored by CNA). Not remotely exploitable (local or adjacent access needed). A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2026-104859?

@nx/docker \>= 21.4.0, \< 22.7.8.

### Is there a fix for CVE-2026-104859?

Yes. Fixed in 22.7.8, 23.1.1. Upgrade @nx/docker to one of 22.7.8, 23.1.1 (or later in the same release line).

### How do I check if I'm affected by CVE-2026-104859?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/nrwl/nx/security/advisories/GHSA-6vc5-vf29-ffr2>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2026-104859>
- patch: <https://github.com/nrwl/nx/pull/36505>
- patch: <https://github.com/nrwl/nx/commit/6d60eed061f050e0d5af509a1f5a07c707f09865>
- patch: <https://github.com/nrwl/nx/commit/b587441fd8da28c5db37edb0826554e0060dc81b>
- other: <https://github.com/nrwl/nx>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-104859>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-6vc5-vf29-ffr2> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-104859> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-104859>
