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

- Severity: High 7.3 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.18%, higher than 7% of CVEs (2026-12-01)
- Published: 2026-10-29T21:07:46.468Z
- Modified: 2026-11-03T17:18:05.677Z
- Also known as: GHSA-qm8w-vx34-5j9j
- Weaknesses: CWE-78, CWE-88
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- nrwl nx: >= 21.0.0, < 22.7.9; >= 23.0.0, < 23.1.2
- @nx maven: >= 21.0.0, < 22.7.9; >= 23.0.0, < 23.1.2
- @nx gradle: >= 21.0.0, < 22.7.9; >= 23.0.0, < 23.1.2
- @nx/maven (npm): from 22.0.2 before 22.7.9; from 23.0.0 before 23.1.2
- @nx/gradle (npm): from 21.0.0 before 22.7.9; from 23.0.0 before 23.1.2

## Every score

- GitHub_M: CVSS:4.0 7.3 High `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`
- GitHub: CVSS:4.0 High `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`

## References

- <https://github.com/nrwl/nx/security/advisories/GHSA-qm8w-vx34-5j9j> (web)
- <https://github.com/nrwl/nx/pull/36626> (web)
- <https://github.com/nrwl/nx/commit/02c5d59e8dbbbe30963c0181c6a22cd8c1190a25> (web)
- <https://github.com/nrwl/nx/commit/60196b7cfcffcada35b6b90e53bf1a78d049b548> (web)
- <https://github.com/nrwl/nx/commit/c227f4780b054c512965c73aa480a48f9f781409> (web)
- <https://github.com/nrwl/nx/releases/tag/22.7.9> (web)
- <https://github.com/nrwl/nx/releases/tag/23.1.2> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-119282> (advisory)
- <https://github.com/nrwl/nx> (package)

## Sources

- CVE List: [CVE-2026-119282](https://www.cve.org/CVERecord?id=CVE-2026-119282), CVE Terms of Use, modified 2026-11-03
- GitHub Advisory Database: [GHSA-qm8w-vx34-5j9j](https://github.com/advisories/GHSA-qm8w-vx34-5j9j), CC-BY-4.0, modified 2026-10-30
- NVD: [CVE-2026-119282](https://nvd.nist.gov/vuln/detail/CVE-2026-119282), Public domain, modified 2026-11-03

---

Page: https://cve.day/CVE-2026-119282 · Whole record: https://cve.day/CVE-2026-119282.json · Rebuilt by cve.day 2026-11-25T22:59:47.843Z
