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

Advisory record · `GHSA-qm8w-vx34-5j9j`

- **Identifiers:** `GHSA-qm8w-vx34-5j9j` · `CVE-2026-119282`
- **State:** Confirmed
- **Severity:** CVSS 7.3 High
- **Critical:** No
- **Weakness (CWE):** [CWE-78](https://cwe.mitre.org/data/definitions/78.html) · [CWE-88](https://cwe.mitre.org/data/definitions/88.html)
- **Tags:** [Command injection](https://agentprime.io/advisories/tag/command-injection.md)
- **Published:** 30 Oct 2026
- **Updated:** 30 Oct 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 30 Oct 2026, 14:42 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `@nx/maven` (npm): affected `>=22.0.2, <22.7.9 || >=23.0.0, <23.1.2`; fixed in `22.7.9`, `23.1.2`
- `@nx/gradle` (npm): affected `>=21.0.0, <22.7.9 || >=23.0.0, <23.1.2`; fixed in `22.7.9`, `23.1.2`

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 7.3 High, CVSS 4.0: `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`, from CNA (GitHub_M)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0014, the 3rd percentile, on 5 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 29 Oct 2026, 21:07 UTC: [Confirmed by the CVE List](https://www.cve.org/CVERecord?id=CVE-2026-119282)
- 29 Oct 2026, 22:17 UTC: [Confirmed by NVD](https://nvd.nist.gov/vuln/detail/CVE-2026-119282)
- 31 Oct 2026, 13:32 UTC: First seen by agentprime
- 31 Oct 2026, 13:32 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-qm8w-vx34-5j9j)

## Sources

- [GitHub Advisory Database: GHSA-qm8w-vx34-5j9j](https://github.com/advisories/GHSA-qm8w-vx34-5j9j)
- [OSV: GHSA-qm8w-vx34-5j9j](https://osv.dev/vulnerability/GHSA-qm8w-vx34-5j9j)
- <https://github.com/nrwl/nx/security/advisories/GHSA-qm8w-vx34-5j9j>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-119282>
- <https://github.com/nrwl/nx/pull/36626>
- <https://github.com/nrwl/nx/commit/02c5d59e8dbbbe30963c0181c6a22cd8c1190a25>
- <https://github.com/nrwl/nx/commit/60196b7cfcffcada35b6b90e53bf1a78d049b548>
- <https://github.com/nrwl/nx/commit/c227f4780b054c512965c73aa480a48f9f781409>
- <https://github.com/nrwl/nx>
- <https://github.com/nrwl/nx/releases/tag/22.7.9>
- <https://github.com/nrwl/nx/releases/tag/23.1.2>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-qm8w-vx34-5j9j>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-qm8w-vx34-5j9j/>. Everything for agents: <https://agentprime.io/llms.txt>.
