CVE-2026-119282

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

  • High 7.3

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.

Key facts

Published
29 Oct 2026
Last changed
3 Nov 2026
Assigned by
GitHub_M
EPSS
0.14% likely to be exploited in the next 30 days, higher than 3.457% of CVEs (scores for 16 Nov 2026)
SSVC (CISA)
Exploitation: none; Automatable: no; Technical impact: total

Severity scores

Each score is shown as its source gave it. They are not averaged or merged.

  • 7.3CVSS 4.0, Highfrom the CNA (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

Historical context and remediation

This reference retains the original CVE publication date. A recent record update does not mean a new attack occurred.

No separately sourced impact summary is available on this page yet. Consult the description, version data and dated exploitation evidence.

No explicit remediation statement is available on this page yet. Consult the original record and vendor references before choosing a fix.

Version statuses below come from the CNA. An “unaffected” version is not necessarily a currently supported release or proof of a patch date. EPSS is a dated risk estimate, not a count of historical attacks.

Read the original CVE record.

Affected products

VendorProductVersions
nrwlnx
  • >= 21.0.0, < 22.7.9 (affected)
  • >= 23.0.0, < 23.1.2 (affected)
@nxmaven
  • >= 21.0.0, < 22.7.9 (affected)
  • >= 23.0.0, < 23.1.2 (affected)
@nxgradle
  • >= 21.0.0, < 22.7.9 (affected)
  • >= 23.0.0, < 23.1.2 (affected)

Timeline

  1. 29 Oct 2026 Published

Weakness

Practice this bug class

HackZoneLabs has a hands-on lab on OS command injection (CWE-78).

References