Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @nx/gradle
  4. ›
  5. CVE-2026-119282

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

October 30, 2026

@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 →

Affected versions

All versions starting from 21.0.0 before 22.7.9, all versions starting from 23.0.0 before 23.1.2

Fixed versions

  • 22.7.9
  • 23.1.2

Solution

Upgrade to versions 22.7.9, 23.1.2 or above.

Impact 7.8 HIGH

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
  • CWE-88: Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')

Source file

npm/@nx/gradle/CVE-2026-119282.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:30 +0000.