CVE-2026-119282

7.3High

Published 29 Oct 2026 · NVD status: Awaiting Analysis · AI triage by gemini-3.1-flash-lite

7.3CVSS

High

0CVSS v4.010

Attack vector
Local
Complexity
Low
Privileges
None
User action
Passive
Impact
Full C/I/A compromise
Weakness
CWE-78, CWE-88

What an attacker gets

Attackers can execute arbitrary commands with your privileges if you run Nx in a repository they control. This requires a user to trigger an Nx command within a compromised or malicious workspace.

Root cause

The Maven and Gradle plugins for Nx unsafely interpolate configuration options from nx.json directly into shell command arguments.

Affected versions

  • @nx/maven 22.0.2 through 22.7.8 and 23.0.0 through 23.1.1
  • @nx/gradle 21.0.0 through 22.7.8 and 23.0.0 through 23.1.1

CVSS v4.0 · 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

Fix & remediation

Upgrade both the nx package and the affected plugins to version 22.7.9 or 23.1.2. If you cannot upgrade immediately, audit and restrict access to nx.json files in untrusted repositories.

remediation — bash
$ npm install nx@latest @nx/maven@latest @nx/gradle@latest

AI-suggested. Run it in staging first and check it against the vendor advisory. Why?

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

References

Source: nvd.nist.gov/vuln/detail/CVE-2026-119282