CVE-2026-119282: @nx/maven and @nx/gradle have OS command injection via nx.json plugin options
@nx/maven and @nx/gradle spawn their project-graph analyzers through a shell and interpolate plugin options read from nx.json straight into the command line. Because a shell parses the whole line, an option value containing shell syntax is executed as a command by any nx command that constructs the project graph. Anyone who clones a hostile repository, or who checks out a pull request that edits nx.json, runs the injected command with their own privileges.
References
- github.com/advisories/GHSA-qm8w-vx34-5j9j
- github.com/nrwl/nx/commit/02c5d59e8dbbbe30963c0181c6a22cd8c1190a25
- github.com/nrwl/nx/commit/60196b7cfcffcada35b6b90e53bf1a78d049b548
- github.com/nrwl/nx/commit/c227f4780b054c512965c73aa480a48f9f781409
- github.com/nrwl/nx/pull/36626
- github.com/nrwl/nx/releases/tag/22.7.9
- github.com/nrwl/nx/releases/tag/23.1.2
- github.com/nrwl/nx/security/advisories/GHSA-qm8w-vx34-5j9j
- nvd.nist.gov/vuln/detail/CVE-2026-119282
Code Behaviors & Features
Detect and mitigate CVE-2026-119282 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →