← Back to CVE List
Vulnerability Intelligence Report
Nx: OS command injection via nx.json plugin options in @nx/maven and @nx/gradle

CVE-2026-119282

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.

Injection No Active Exploit Signals
CVSS Base Score
7.3
HIGH
EPSS Probability:0.14%
Executive Threat Verdict
Evaluating...
Evaluating Threat Landscape...
Assessing known weaponization, exploitation telemetry, and federal advisories.
Attack Surface
—
Authentication
—
Weaponization
—
SSVC Action
—

Weaknesses (CWE)

CWE-78 ↗CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
CWE-88 ↗CWE-88: Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')

Affected Products & Versions

Vendor Product Affected Versions
nrwl nx >= 21.0.0, < 22.7.9 (affected), >= 23.0.0, < 23.1.2 (affected)
@nx maven >= 21.0.0, < 22.7.9 (affected), >= 23.0.0, < 23.1.2 (affected)
@nx gradle >= 21.0.0, < 22.7.9 (affected), >= 23.0.0, < 23.1.2 (affected)

References & Technical Advisories

No reference links found.

Threat Intelligence Signals

EPSS Score
0.140%
Vulnerability Class
Injection

Identity & Timeline

StatusPUBLISHED
Assigning AuthorityGitHub, Inc. · Vendor · USA
Reserved2026-10-29T18:50:28
Published2026-10-29T21:07:46
Last Updated2026-11-03T16:50:52

LINK COPIED TO CLIPBOARD