CVE-2026-119282 Nx: OS command injection via nx.json plugin options in @nx/maven and @nx/gradle

High 7.3 Published Updated
Exploited in the wild
Not known
Fix
None listed

What is CVE-2026-119282?

CVE-2026-119282 is a high-severity vulnerability in @nx gradle, published on 29 Oct 2026.

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

Weakness: CWE-88, CWE-78

Which versions are affected by CVE-2026-119282?

How do I fix CVE-2026-119282?

No fix has been published for CVE-2026-119282 yet. Limit exposure of the affected software until one is available.

Is CVE-2026-119282 being exploited?

There is no known exploitation of CVE-2026-119282 in the wild and no public exploit code.

Sources

Is CVE-2026-119282 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free