Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

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

Quick assessment

Affected
nrwl nx
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Nx 是一个面向 TypeScript 及多语言代码库的 monorepo 解决方案。在 @nx/maven 插件中,版本范围从 22.0.2 到 22.7.9 以及 23.1.2;在 @nx/gradle 插件中,版本范围从 21.0.0 到 22.7.9 以及 23.1.2,这些插件的项目图(project-graph)分析器会通过 shell 启动,并将 nx.json 中的插件选项插值到命令参数中。因此,每当执行 nx 命令构建项目图时,@nx/maven 的 targetNamePrefix 值以及 @n

CVSS 7.3 · High

Possible ATT&CK Techniques 1 AI

T1190 · Exploit Public-Facing Application
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-119282

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Nx: OS command injection via nx.json plugin options in @nx/maven and @nx/gradle
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
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: CVE Program / CVE List V5
Vulnerability Type
OS命令中使用的特殊元素转义处理不恰当(OS命令注入)
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
nrwl nx >= 21.0.0, < 22.7.9 -
@nx maven >= 21.0.0, < 22.7.9 -
@nx gradle >= 21.0.0, < 22.7.9 -

II. Public POCs for CVE-2026-119282

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-119282

请登录查看更多情报信息。

Vendor Pages for CVE-2026-119282 (2)

Other References for CVE-2026-119282 (5)

IV. Related Vulnerabilities