CVE-2026-119282: @nx Gradle

High severity, CVSS 7.3. EPSS: 0.2% probability of exploitation activity in the next 30 days.

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.

What to do

The record states a fixed version for each range of affected versions. Update to the one for the range your version is in: a later release on another branch may not have the fix.

  • @nx Gradle, from 21.0.0, before 22.7.9: fixed in 22.7.9
  • @nx Gradle, from 23.0.0, before 23.1.2: fixed in 23.1.2
  • @nx Maven, from 21.0.0, before 22.7.9: fixed in 22.7.9
  • @nx Maven, from 23.0.0, before 23.1.2: fixed in 23.1.2
  • Nrwl NX, from 21.0.0, before 22.7.9: fixed in 22.7.9
  • Nrwl NX, from 23.0.0, before 23.1.2: fixed in 23.1.2

Affected products

  • @nx Gradle: from 21.0.0, before 22.7.9 (fixed in 22.7.9); from 23.0.0, before 23.1.2 (fixed in 23.1.2)
  • @nx Maven: from 21.0.0, before 22.7.9 (fixed in 22.7.9); from 23.0.0, before 23.1.2 (fixed in 23.1.2)
  • Nrwl NX: from 21.0.0, before 22.7.9 (fixed in 22.7.9); from 23.0.0, before 23.1.2 (fixed in 23.1.2)

Affected packages

Published 2026-10-29. Last modified 2026-11-03.