Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2026-119282

HIGH 7.3EPSS 6%

Nx: OS command injection via nx.json plugin options in @nx/maven and @nx/gradle

Also known as GHSA-qm8w-vx34-5j9j

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

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

Vulnerability facts

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
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
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:NOpen in CVSS calculator
Show all 11 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
EPSS
0.20% chance of exploitation in 30 days (percentile 6, 2026-11-26)
CWE
CWE-78, CWE-88
Published
Modified

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

Package / productAffectedFixedSource
npm @nx/maven>= 22.0.2, < 22.7.922.7.9, 23.1.2osv
npm @nx/gradle>= 21.0.0, < 22.7.922.7.9, 23.1.2osv
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

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

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.

References

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.

Sponsors