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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.3
- **CVSS:** 7.3 (v4.0, CNA) `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`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Attack requirements: Present; Privileges required: None; User interaction: Passive; Confidentiality impact: High; Integrity impact: High; Availability impact: High; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.20% (percentile 6, 2026-11-26)
- **CWE:** CWE-78, CWE-88
- **Aliases:** GHSA-qm8w-vx34-5j9j
- **Published:** 2026-10-29T21:07:46.468Z
- **Modified:** 2026-11-03T17:18:05.677Z

## Who should check

- Projects that depend on npm package @nx/maven (\>= 22.0.2, \< 22.7.9)
- Projects that depend on npm package @nx/gradle (\>= 21.0.0, \< 22.7.9)
- Anyone running nrwl nx \>= 21.0.0, \< 22.7.9; \>= 23.0.0, \< 23.1.2
- Anyone running @nx maven \>= 21.0.0, \< 22.7.9; \>= 23.0.0, \< 23.1.2
- Anyone running @nx gradle \>= 21.0.0, \< 22.7.9; \>= 23.0.0, \< 23.1.2

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

## Affected and fixed versions

- npm `@nx/maven`: affected \>= 22.0.2, \< 22.7.9; fixed 22.7.9, 23.1.2 (osv)
- npm `@nx/gradle`: affected \>= 21.0.0, \< 22.7.9; fixed 22.7.9, 23.1.2 (osv)
- nrwl nx: \>= 21.0.0, \< 22.7.9; \>= 23.0.0, \< 23.1.2 (cvelist)
- @nx maven: \>= 21.0.0, \< 22.7.9; \>= 23.0.0, \< 23.1.2 (cvelist)
- @nx gradle: \>= 21.0.0, \< 22.7.9; \>= 23.0.0, \< 23.1.2 (cvelist)

## Mitigation

- Upgrade @nx/maven to one of 22.7.9, 23.1.2 (or later in the same release line).
- Upgrade @nx/gradle to one of 22.7.9, 23.1.2 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-119282. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-119282.md
Affected: @nx/maven >= 22.0.2, < 22.7.9; @nx/gradle >= 21.0.0, < 22.7.9
Fixed in: 22.7.9, 23.1.2

Steps:
1. Search this machine and project for @nx/maven (npm), @nx/gradle (npm), nrwl nx, @nx maven, @nx gradle: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-119282 being exploited?

There is no confirmed exploitation: CVE-2026-119282 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.20% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-119282?

High: CVSS 7.3 (v4.0, scored by CNA). Not remotely exploitable (local or adjacent access needed). A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2026-119282?

@nx/maven \>= 22.0.2, \< 22.7.9; @nx/gradle \>= 21.0.0, \< 22.7.9.

### Is there a fix for CVE-2026-119282?

Yes. Fixed in 22.7.9, 23.1.2. Upgrade @nx/maven to one of 22.7.9, 23.1.2 (or later in the same release line). Upgrade @nx/gradle to one of 22.7.9, 23.1.2 (or later in the same release line).

### How do I check if I'm affected by CVE-2026-119282?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

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

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-119282>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-qm8w-vx34-5j9j> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-119282> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-119282>
