ZeroDay Brief
CVE-2026-119282

The @nx/maven targetNamePrefix value and arbitrary @nx/gradle option names or values can therefore be interpreted as shell syntax whenever an nx command constructs the project graph.

CVSS
7.3High
Chance of exploitation (EPSS)
0.20%
Published
Oct 29, 2026
In the news
1 story
More from this vendor

What to do

A serious command injection flaw in Nrwl Nx, Nx Gradle, Nx Maven that needs access to the machine itself. No attacks are reported yet; it can go in your normal patch cycle.

Action: Check the vendor's advisory in the references and apply updates as soon as they are available.

Affected versions
Nrwl Nx
>= 21.0.0, < 22.7.9; >= 23.0.0, < 23.1.2
Nx Gradle
>= 21.0.0, < 22.7.9; >= 23.0.0, < 23.1.2
Nx Maven
>= 21.0.0, < 22.7.9; >= 23.0.0, < 23.1.2

Description

Nx is a monorepo solution for TypeScript and polyglot codebases. From 22.0.2 until 22.7.9 and 23.1.2 for @nx/maven, and from 21.0.0 until 22.7.9 and 23.1.2 for @nx/gradle, the plugins' project-graph analyzers launch through a shell and interpolate plugin options from nx.json into command arguments. The @nx/maven targetNamePrefix value and arbitrary @nx/gradle option names or values can therefore be interpreted as shell syntax whenever an nx command constructs the project graph. A user who runs Nx in an attacker-controlled repository or pull request can execute injected commands with the user's privileges, while workspaces that register neither affected plugin are not exposed to this path. Remediation requires upgrading both nx and each affected plugin to matching releases because the plugin fix depends on code in the nx package. This issue is fixed in versions 22.7.9 and 23.1.2.

CWE-78CWE-88

Affected products

Get alerts for these →

Timeline 4

Latest change: @nx/maven, @nx/gradle: @nx/maven and @nx/gradle have OS command injection via nx.json plugin options (Oct 30, 2026)

News, advisories, exploit code, scanner detection and exploitation, newest first.

References 7

  • github.com /nrwl/nx/commit/02c5d59e8dbbbe30963c0181c6a22cd8c1190a25
  • github.com /nrwl/nx/commit/60196b7cfcffcada35b6b90e53bf1a78d049b548
  • github.com /nrwl/nx/commit/c227f4780b054c512965c73aa480a48f9f781409
  • github.com /nrwl/nx/pull/36626
  • github.com /nrwl/nx/releases/tag/22.7.9
  • github.com /nrwl/nx/releases/tag/23.1.2
  • github.com /nrwl/nx/security/advisories/GHSA-qm8w-vx34-5j9j

You are leaving ZeroDay Brief

This link goes to exploit code on a third-party site. We find these links automatically and do not test, review or vouch for them. They may contain malware or fake exploits.

We are not responsible for anything that happens if you open the page or run its code. Never run exploit code on systems you care about.

↑ ↓ moveEnter openEsc closeTry “CVE-2026”, “fortinet” or “ivanti”