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

Status: published. Published: 2026-10-29. Updated: 2026-11-03.

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.

## Remediation

- fix: @nx/maven (npm): OSV reports a fixed version 22.7.9. Check the advisory for supported release branches. (source: OSV GHSA-qm8w-vx34-5j9j) — https://github.com/advisories/GHSA-qm8w-vx34-5j9j
- fix: @nx/maven (npm): OSV reports a fixed version 23.1.2. Check the advisory for supported release branches. (source: OSV GHSA-qm8w-vx34-5j9j) — https://github.com/advisories/GHSA-qm8w-vx34-5j9j
- fix: @nx/gradle (npm): OSV reports a fixed version 22.7.9. Check the advisory for supported release branches. (source: OSV GHSA-qm8w-vx34-5j9j) — https://github.com/advisories/GHSA-qm8w-vx34-5j9j
- fix: @nx/gradle (npm): OSV reports a fixed version 23.1.2. Check the advisory for supported release branches. (source: OSV GHSA-qm8w-vx34-5j9j) — https://github.com/advisories/GHSA-qm8w-vx34-5j9j

## Affected products and versions

- nrwl / nx: >= 21.0.0, < 22.7.9 (affected); >= 23.0.0, < 23.1.2 (affected). Source: CNA: GitHub_M
- @nx / maven: >= 21.0.0, < 22.7.9 (affected); >= 23.0.0, < 23.1.2 (affected). Source: CNA: GitHub_M
- @nx / gradle: >= 21.0.0, < 22.7.9 (affected); >= 23.0.0, < 23.1.2 (affected). Source: CNA: GitHub_M
-  / @nx/maven (@nx/maven): ≥ 22.0.2; < 22.7.9 (affected, semver); OSV events: introduced 22.0.2; fixed 22.7.9. Source: OSV GHSA-qm8w-vx34-5j9j
-  / @nx/maven (@nx/maven): ≥ 23.0.0; < 23.1.2 (affected, semver); OSV events: introduced 23.0.0; fixed 23.1.2. Source: OSV GHSA-qm8w-vx34-5j9j
-  / @nx/gradle (@nx/gradle): ≥ 21.0.0; < 22.7.9 (affected, semver); OSV events: introduced 21.0.0; fixed 22.7.9. Source: OSV GHSA-qm8w-vx34-5j9j
-  / @nx/gradle (@nx/gradle): ≥ 23.0.0; < 23.1.2 (affected, semver); OSV events: introduced 23.0.0; fixed 23.1.2. Source: OSV GHSA-qm8w-vx34-5j9j

## Severity and prioritization

- 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; source: CNA: 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X; source: NVD: security-advisories@github.com

- CISA KEV: No listing in collected sources

- EPSS: 0.14% as of 2026-11-03; percentile 3.41%

- SSVC: exploitation none; automatable no; technical impact total; source ADP: CISA-ADP

- Weaknesses: CWE-78, CWE-88

## Exploit evidence

No exploit evidence in collected sources. This is not proof of no exploitation.

## References

- https://github.com/nrwl/nx/security/advisories/GHSA-qm8w-vx34-5j9j (CNA: GitHub_M; x_refsource_CONFIRM)

- https://github.com/nrwl/nx/pull/36626 (CNA: GitHub_M; x_refsource_MISC)

- https://github.com/nrwl/nx/commit/02c5d59e8dbbbe30963c0181c6a22cd8c1190a25 (CNA: GitHub_M; x_refsource_MISC)

- https://github.com/nrwl/nx/commit/60196b7cfcffcada35b6b90e53bf1a78d049b548 (CNA: GitHub_M; x_refsource_MISC)

- https://github.com/nrwl/nx/commit/c227f4780b054c512965c73aa480a48f9f781409 (CNA: GitHub_M; x_refsource_MISC)

- https://github.com/nrwl/nx/releases/tag/22.7.9 (CNA: GitHub_M; x_refsource_MISC)

- https://github.com/nrwl/nx/releases/tag/23.1.2 (CNA: GitHub_M; x_refsource_MISC)

- https://github.com/nrwl/nx/commit/02c5d59e8dbbbe30963c0181c6a22cd8c1190a25 (security-advisories@github.com)

- https://github.com/nrwl/nx/commit/60196b7cfcffcada35b6b90e53bf1a78d049b548 (security-advisories@github.com)

- https://github.com/nrwl/nx/commit/c227f4780b054c512965c73aa480a48f9f781409 (security-advisories@github.com)

- https://github.com/nrwl/nx/pull/36626 (security-advisories@github.com)

- https://github.com/nrwl/nx/releases/tag/22.7.9 (security-advisories@github.com)

- https://github.com/nrwl/nx/releases/tag/23.1.2 (security-advisories@github.com)

- https://github.com/nrwl/nx/security/advisories/GHSA-qm8w-vx34-5j9j (security-advisories@github.com)

- https://github.com/advisories/GHSA-qm8w-vx34-5j9j (OSV / GitHub Security Advisories; advisory)

- https://osv.dev/vulnerability/GHSA-qm8w-vx34-5j9j (OSV / GitHub Security Advisories; osv)

## Provenance

- CNA: GitHub_M: https://www.cve.org/CVERecord?id=CVE-2026-119282; retrieved 2026-11-03; source updated 2026-11-03

- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-119282; retrieved 2026-11-03; source updated 2026-11-03

- OSV / GitHub Security Advisories: https://osv.dev/vulnerability/GHSA-qm8w-vx34-5j9j; retrieved 2026-11-03; source updated 2026-10-30

- FIRST EPSS: https://api.first.org/data/v1/epss?cve=CVE-2026-119282; retrieved 2026-11-03; source updated Not reported

Revision: b492603a824a83ffe8060b645ffba83c03bdff3706a200a93eea75f615d26c8d

Canonical: https://y2.dev/cve/CVE-2026-119282

## Agent and API access

Public CVE pages, Markdown, and JSON are free to read without an account or API key.

- Public catalog: https://y2.dev/cve/index.json. Follow nextCursor with the same search, filters, sort, and limit (1–100). A null cursor marks the end.

- WebMCP: search_cve_disclosures, get_cve_disclosure, get_cve_page_markdown, get_y2_cve_access. Available in compatible browsers.

- Cyber API: https://api.y2.dev/api/v2/cyber/cves and https://api.y2.dev/api/v2/cyber/cves/{cveId}.

- Y2 Pro or Elite: create a workspace API key with the intel:cyber scope and send Authorization: Bearer <Y2_API_KEY>. Setup: https://y2.dev/docs/api/create-key.

- x402: Pay per request without an account or API key. Omit Authorization, read the HTTP 402 PAYMENT-REQUIRED challenge, validate its current requirements, and retry with PAYMENT-SIGNATURE through an authorized payment client. These browser tools never make payments. Guide: https://y2.dev/docs/api/x402.

- OpenAPI: https://y2.dev/api/openapi.yaml. Agent access metadata: https://y2.dev/cve/agent.json.

Collected public records only. Check source status for coverage and freshness.