{"id":"CVE-2026-119282","kind":"vulnerability","aliases":["CVE-2026-119282"],"related":[],"title":"Nx: nx.json plugin options let a repo run shell commands","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.","summary":"Nx's @nx/maven and @nx/gradle plugins pass options from nx.json into a shell when building the project graph. A user who runs Nx in an attacker-controlled repository or pull request can have arbitrary commands run with their privileges.","severity":"high","cvss":7.3,"epss":null,"exploited":false,"exploited_at":null,"products":[],"ecosystems":[],"tags":["ci","gradle","maven","monorepo","nx","package","typescript"],"not_affected_if":["no-@nx/maven-or-@nx/gradle","trusted-repos-only"],"how_to_check":"- Check whether `@nx/maven` or `@nx/gradle` is registered in `nx.json` and note the installed versions of `nx`, `@nx/maven` and `@nx/gradle`.\n- Workspaces that register neither plugin are not exposed to this path, per the advisory.","fix":"- `nx` and each affected plugin: `22.7.9` or `23.1.2`, matching releases on both lines (for `@nx/maven` and `@nx/gradle` the affected ranges start at `22.0.2` and `21.0.0` respectively).","status":"open","published_at":"2026-10-29T22:17:00+00:00","first_seen_at":"2026-10-29T22:27:06+00:00","triaged_at":"2026-10-29T22:28:47+00:00","updated_at":"2026-10-29T22:28:47+00:00","category":"package","confidence":0.8,"triage":{"at":"2026-10-29T22:28:47Z","model":"claude-haiku-5-5","output":{"fix":"- `nx` and each affected plugin: `22.7.9` or `23.1.2`, matching releases on both lines (for `@nx/maven` and `@nx/gradle` the affected ranges start at `22.0.2` and `21.0.0` respectively).","reach":"local","title":"Nx: nx.json plugin options let a repo run shell commands","impact":"high","summary":"Nx's @nx/maven and @nx/gradle plugins pass options from nx.json into a shell when building the project graph. A user who runs Nx in an attacker-controlled repository or pull request can have arbitrary commands run with their privileges.","audience":"developers","category":"package","nicknames":[],"who_cares":["nx","typescript","monorepo","ci","maven","gradle"],"confidence":0.8,"fix_status":"available","needs_auth":"no","worst_case":"Arbitrary commands run with the user's privileges on their machine or CI runner.","analyst_note":"","how_to_check":"- Check whether `@nx/maven` or `@nx/gradle` is registered in `nx.json` and note the installed versions of `nx`, `@nx/maven` and `@nx/gradle`.\n- Workspaces that register neither plugin are not exposed to this path, per the advisory.","plain_action":"","needs_analyst":false,"not_affected_if":["no-@nx/maven-or-@nx/gradle","trusted-repos-only"],"who_is_affected":"Teams whose workspace registers the @nx/maven or @nx/gradle plugin in nx.json and who run nx commands on repositories or pull requests they do not fully trust. Workspaces that register neither plugin are not exposed through this path, and upgrading nx alone is not enough, because each affected plugin must be upgraded to a matching release.","user_interaction":"yes","needs_special_setup":"yes","severity_if_unknown":"high"},"cost_usd":0.000755,"input_tokens":4334,"output_tokens":643,"severity_before":"high"},"analyst_status":null,"analyst_note":null,"search":"'-119282':13A,16A '-2026':12A,15A '21.0.0':84C '22.0.2':75C '22.7.9':77C,86C,201C '23.1.2':79C,88C,203C 'affect':164C,179C 'analyz':96C 'arbitrari':58B,115C 'argument':109C 'attack':50B,144C 'attacker-control':49B,143C 'build':38B 'ci':17B 'code':190C 'codebas':73C 'command':10A,59B,108C,131C,153C 'construct':132C 'control':51B,145C 'cve':11A,14A 'depend':188C 'execut':151C 'expos':168C 'fix':187C,198C 'gradl':18B 'graph':41B,95C,135C 'inject':152C 'interpol':102C 'interpret':124C 'issu':196C 'launch':97C 'let':5A 'match':182C 'maven':19B 'monorepo':20B,67C 'name':118C 'neither':163C 'nx':1A,21B,24B,46B,64C,130C,140C,176C,193C 'nx.json':2A,33B,106C 'nx/gradle':28B,90C,116C 'nx/maven':26B,81C,111C 'option':4A,31B,104C,117C 'packag':22B,194C 'pass':30B 'path':171C 'plugin':3A,29B,92C,103C,165C,180C,186C 'polyglot':72C 'privileg':63B,158C 'project':40B,94C,134C 'project-graph':93C 'pull':54B,148C 'regist':162C 'releas':183C 'remedi':172C 'repo':7A 'repositori':52B,146C 'request':55B,149C 'requir':173C 'run':8A,45B,60B,139C 'shell':9A,36B,100C,126C 'solut':68C 'syntax':127C 'targetnameprefix':112C 'therefor':122C 'typescript':23B,70C 'upgrad':174C 'user':43B,137C,156C 'valu':113C,120C 'version':200C 'whenev':128C 'workspac':160C","nicknames":[],"mitigations":[],"who_affected":"Teams whose workspace registers the @nx/maven or @nx/gradle plugin in nx.json and who run nx commands on repositories or pull requests they do not fully trust. Workspaces that register neither plugin are not exposed through this path, and upgrading nx alone is not enough, because each affected plugin must be upgraded to a matching release.","tier":"B","verified":{},"analyst_revisit_at":null,"fix_status":"available","audience":"developers","plain_action":null,"first_public_at":"2026-10-29T22:17:00+00:00","kev":null,"cvss_vector":"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","cvss_by":"security-advisories@github.com","poc_count":0,"sources":[{"source":"nvd","external_id":"CVE-2026-119282","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-119282","severity":null,"published_at":"2026-10-29T22:17:00+00:00","modified_at":"2026-10-29T22:17:00+00:00","first_seen_at":"2026-10-29T22:27:06+00:00","fetched_at":"2026-10-29T22:27:06+00:00","note":null}],"documents":[],"notice":"Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai"}