Skip to content
High 7.3

Nxの@nx/maven・@nx/gradleに、nx.jsonの設定経由でOSコマンドを実行される脆弱性

CVE-2026-119282 First seen on SecPulse

Summary

Nxの@nx/maven・@nx/gradleプラグインに、nx.jsonのプラグインオプションからOSコマンドを実行される脆弱性(CVE-2026-119282)が見つかりました。悪用は確認されていません。攻撃者が用意したリポジトリやプルリクエストでnxコマンドを実行すると、実行者の権限で任意のコマンドが動くおそれがあり、CVSS v4.0のスコアは7.3です。@nx/mavenは22.7.9・23.1.2、@nx/gradleは22.7.9・23.1.2で修正されているため、nxと該当プラグインを両方とも同じ版に上げてください。

AI summary

Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.

Nxの@nx/maven・@nx/gradleプラグインに、nx.jsonのプラグインオプションからOSコマンドを実行される脆弱性(CVE-2026-119282)が見つかりました。悪用は確認されていません。攻撃者が用意したリポジトリやプルリクエストでnxコマンドを実行すると、実行者の権限で任意のコマンドが動くおそれがあり、CVSS v4.0のスコアは7.3です。@nx/mavenは22.7.9・23.1.2、@nx/gradleは22.7.9・23.1.2で修正されているため、nxと該当プラグインを両方とも同じ版に上げてください。

Affected packages

PackageAffected → Fixed
nrwlnx —
@nxmaven —
@nxgradle —
npm@nx/maven
≥ 23.0.0, < 23.1.2→ 23.1.2
npm@nx/gradle
≥ 23.0.0, < 23.1.2→ 23.1.2
Original description The description as published by the source.

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.org (CVE Program・cvelistV5) NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details