PoC Monitor
← All CVEs
CVE-2026-119282published 29 Oct 2026 21:07 UTCData: JSON · API

Nx

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

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.

First public PoC None yetno public PoC found
Public PoCs00 on GitHub
CVSS7.3high · scored by CNA · CWE-78
CISA KEV Not listednot known exploited

Affected versions and mitigation

From the CVE record and the vendor's references.

Affected

nrwl nx
  • >= 21.0.0, < 22.7.9
  • >= 23.0.0, < 23.1.2

Fixed in 22.7.9, 23.1.2

@nx maven
  • >= 21.0.0, < 22.7.9
  • >= 23.0.0, < 23.1.2

Fixed in 22.7.9, 23.1.2

@nx gradle
  • >= 21.0.0, < 22.7.9
  • >= 23.0.0, < 23.1.2

Fixed in 22.7.9, 23.1.2

Mitigation

Upgrade nx to 22.7.9 or 23.1.2 or later.

Upgrade maven to 22.7.9 or 23.1.2 or later.

Upgrade gradle to 22.7.9 or 23.1.2 or later.

References

4 more

Timeline

Days relative to CVE publication
-2t=0+2+4+6+8CVE published29 Oct 2026 · t = 0

No public PoC found yet; not in CISA KEV.

PoC repositories

Found on GitHub.

No PoC repositories found yet.