Patch Forecast
Yellow warning
Plan into this sprint.

CVE-2026-119282 · GHSA-qm8w-vx34-5j9j

@nx/maven and @nx/gradle have OS command injection via nx.json plugin options

Risk score
49/100
CVSS
7.3 v4.0
Published
29 Oct 2026

Open in the live forecast Today's forecast

What to know

What it is
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 targe…
Affected
@nx/maven (npm) >= 22.0.2, < 22.7.9; @nx/maven (npm) >= 23.0.0, < 23.1.2; @nx/gradle (npm) >= 21.0.0, < 22.7.9; @nx/gradle (npm) >= 23.0.0, < 23.1.2
Fix
Upgrade @nx/maven to 22.7.9 or 23.1.2; @nx/gradle to 22.7.9 or 23.1.2 (whichever matches your release line) or later.
Exploitation
No known exploitation

Why it is Yellow

  • CVSS 7.3 high
  • On your watchlist: npm

Affected packages

PackageEcosystemVulnerableFixed in
@nx/mavennpm>= 22.0.2, < 22.7.922.7.9
@nx/mavennpm>= 23.0.0, < 23.1.223.1.2
@nx/gradlenpm>= 21.0.0, < 22.7.922.7.9
@nx/gradlenpm>= 23.0.0, < 23.1.223.1.2

References

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

Last activity 30 Oct 2026. Patch Forecast updates every hour.