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

High 7.3 Published Updated

Attackers can execute arbitrary OS commands via malicious configuration in Nx release pipelines, potentially exposing credentials and compromising the release environment.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2026-104859?

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.

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

Weakness: CWE-78

Which versions are affected by CVE-2026-104859?

4 open source packages ship an affected version, including @nx/docker.

PackageAffectedFixed in
@nx/docker npmFrom 21.4.022.7.8
@nx/docker npmFrom 21.4.022.7.8
@nx/docker npmFrom 23.0.023.1.1
@nx/docker npmFrom 23.0.023.1.1

How do I fix CVE-2026-104859?

Upgrade @nx/docker to a fixed version for your release line: 22.7.8 or 23.1.1.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2026-104859 being exploited?

There is no known exploitation of CVE-2026-104859 in the wild and no public exploit code.

Sources

Also known as GHSA-6vc5-vf29-ffr2.

Is CVE-2026-104859 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free