Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @nx/docker
  4. ›
  5. CVE-2026-104859

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

October 5, 2026

The @nx/docker release pipeline builds its docker invocations as shell command strings, interpolating release.docker.repositoryName and registryUrl from Nx configuration into them. Because those strings are handed to /bin/sh -c, a crafted repository or registry name executes as a command during nx release version and nx release publish. Anyone running a Docker release against a repository whose Nx configuration they do not control — or whose configuration a pull request has changed — executes the injected command with the privileges of the release job, which in CI typically holds registry credentials and cloud tokens.

References

  • github.com/advisories/GHSA-6vc5-vf29-ffr2
  • github.com/nrwl/nx/commit/6d60eed061f050e0d5af509a1f5a07c707f09865
  • github.com/nrwl/nx/commit/b587441fd8da28c5db37edb0826554e0060dc81b
  • github.com/nrwl/nx/pull/36505
  • github.com/nrwl/nx/security/advisories/GHSA-6vc5-vf29-ffr2
  • nvd.nist.gov/vuln/detail/CVE-2026-104859

Code Behaviors & Features

Detect and mitigate CVE-2026-104859 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 21.4.0 before 22.7.8, all versions starting from 23.0.0 before 23.1.1

Fixed versions

  • 22.7.8
  • 23.1.1

Solution

Upgrade to versions 22.7.8, 23.1.1 or above.

Impact 7.8 HIGH

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Source file

npm/@nx/docker/CVE-2026-104859.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 06 Oct 2026 00:16:22 +0000.