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.
Severity (CVSS)
| Base score | 7.3 |
|---|---|
| Severity | High |
| Version | CVSS 4.0 |
| Vector | 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 |
| Provided by | CNA |
Weaknesses
- 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
| Vendor | Product | 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
- https://github.com/nrwl/nx/security/advisories/GHSA-qm8w-vx34-5j9j (x_refsource_CONFIRM)
- https://github.com/nrwl/nx/pull/36626 (x_refsource_MISC)
- https://github.com/nrwl/nx/commit/02c5d59e8dbbbe30963c0181c6a22cd8c1190a25 (x_refsource_MISC)
- https://github.com/nrwl/nx/commit/60196b7cfcffcada35b6b90e53bf1a78d049b548 (x_refsource_MISC)
- https://github.com/nrwl/nx/commit/c227f4780b054c512965c73aa480a48f9f781409 (x_refsource_MISC)
- https://github.com/nrwl/nx/releases/tag/22.7.9 (x_refsource_MISC)
- https://github.com/nrwl/nx/releases/tag/23.1.2 (x_refsource_MISC)
Assess this vulnerability
Compare your deployed product and version with the source record. Review vendor references for fixes and workarounds. A CVSS score describes technical severity; it does not establish that your systems are affected or that exploitation has occurred.
Browse all CVE security advisories · Symaro cybersecurity services
Generated from the official CVE List on 30 Oct 2026 07:06 UTC.