Skip to main content
Network Thinking Solutions Logo

CVE-2026-119282

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

All CVEs
CVE-2026-119282Published 10/29/2026

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

Vendor advisory
CVSS7.3High

Overview

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.

Published
10/29/2026
Last modified
11/3/2026
CVE assigner
Not available
NVD analysis
Not available

Exploitation

No CISA KEV flag in the saved record

An absent KEV flag does not establish that exploitation has never occurred. Verify current intelligence before prioritizing work.

EPSS predictions and CISA SSVC assessments are not imported here. Review additional intelligence on Cloudflare

Affected products

Affected-version rules published in the advisory. Conditions and uncertain comparisons require verification.

Vendor / productAffected versionsPlatform / conditionsEvidence
nx
nrwl
>= 21.0.0, < 22.7.9

Verify advisory

Source
nx
nrwl
>= 23.0.0, < 23.1.2

Verify advisory

Source
maven
@nx
>= 21.0.0, < 22.7.9

Verify advisory

Source
maven
@nx
>= 23.0.0, < 23.1.2

Verify advisory

Source
gradle
@nx
>= 21.0.0, < 22.7.9

Verify advisory

Source
gradle
@nx
>= 23.0.0, < 23.1.2

Verify advisory

Source

Recommended actions

Verify the product, installed version, platform, and advisory prerequisites on each system. Apply the vendor's applicable fixed release or mitigation. An affected-range boundary alone is not a universal update recommendation.

Vendor advisory links

Derived from non-aggregator references because the source record has no vendor tags. Verify the advisory before acting on it.

Severity

CVSS describes technical impact. It is separate from exploitation evidence.

Published headline score: 7.3. Score version, vector, and attribution are not available in this record. Additional score details appear when the source record is next refreshed.

Sources & references

Sources: Official CVE List, NVD and cve.now (summaries CC BY 4.0). Uses NVD data; not endorsed by NVD.