{"id":"CVE-2026-68934","kind":"vulnerability","aliases":["CVE-2026-68934","GHSA-jq3q-62jc-fqq9"],"related":[],"title":"code-review-mcp-server: Command injection via unsanitized folderPath/baseBranch parameters","description":"### Impact\n\n`code-review-mcp-server` exposes MCP tools (`getLocalGitDiff`, `codeReview`, `createPR`, `getPRTemplate`) that accept `folderPath` and `baseBranch` string parameters. These caller-controlled values were interpolated directly into shell command strings executed via `child_process.execSync()`, which runs commands through `/bin/sh`.\n\nA crafted value such as `baseBranch = \"main; <arbitrary command> #\"` (or a `$(...)` command substitution, or a `folderPath` that breaks out of the surrounding quotes) results in **arbitrary command execution** on the host running the MCP server.\n\n### Patches\n\nFixed in **1.5.3**. Every `execSync()` call was replaced with `execFileSync()` using argument arrays, so inputs are passed directly to `git` / `gh` without going through a shell, eliminating the injection at its root.\n\n### Workarounds\n\nNone. Upgrade to `code-review-mcp-server@1.5.3` or later.","summary":"The code-review-mcp-server MCP tools pass folderPath and baseBranch straight into shell command strings run by execSync, so a crafted value runs arbitrary commands. An attacker who can call these MCP tools gets command execution on the host running the server.","severity":"high","cvss":8.7,"epss":null,"exploited":false,"exploited_at":null,"products":[{"name":"code-review-mcp-server","fixed":["1.5.3"],"affected":"< 1.5.3","ecosystem":"npm"}],"ecosystems":["npm"],"tags":["ai-tooling","code-review","cwe-78","mcp","node","npm"],"not_affected_if":["fixed-version","not-installed"],"how_to_check":"- Check the installed version with `npm ls code-review-mcp-server` and look for any version below `1.5.3`.\n- Find where the server runs (developer machines, CI runners, shared hosts) and confirm it is started from the affected package.","fix":"- `code-review-mcp-server` upgrade to `1.5.3` or later; the sources state no workaround exists.","status":"open","published_at":"2026-11-16T22:09:06+00:00","first_seen_at":"2026-11-16T22:12:15+00:00","triaged_at":"2026-11-16T22:13:31+00:00","updated_at":"2026-11-16T22:39:15+00:00","category":"ai-tooling","confidence":0.8,"triage":{"at":"2026-11-16T22:13:31Z","model":"claude-haiku-5-5","output":{"fix":"- `code-review-mcp-server` upgrade to `1.5.3` or later; the sources state no workaround exists.","reach":"unknown","title":"code-review-mcp-server: unsanitized tool parameters let callers run shell commands","impact":"high","summary":"The code-review-mcp-server MCP tools pass folderPath and baseBranch straight into shell command strings run by execSync, so a crafted value runs arbitrary commands. An attacker who can call these MCP tools gets command execution on the host running the server.","audience":"developers","category":"ai-tooling","nicknames":[],"who_cares":["mcp","code-review","npm","node"],"confidence":0.8,"fix_status":"available","needs_auth":"unknown","worst_case":"Arbitrary commands run on the host running the MCP server","analyst_note":"Sources do not say whether the MCP server is reachable from the network or requires authentication to call its tools.\n","how_to_check":"- Check the installed version with `npm ls code-review-mcp-server` and look for any version below `1.5.3`.\n- Find where the server runs (developer machines, CI runners, shared hosts) and confirm it is started from the affected package.","plain_action":"","product_name":"","needs_analyst":false,"not_affected_if":["not-installed","fixed-version"],"who_is_affected":"Any team running code-review-mcp-server versions before 1.5.3 as an MCP server that accepts tool calls with folderPath or baseBranch values. The sources say the flaw sits in the MCP tools getLocalGitDiff, codeReview, createPR and getPRTemplate. Teams that do not run this package can skip it.","user_interaction":"no","product_ecosystem":"","needs_special_setup":"unknown","severity_if_unknown":"high"},"cost_usd":0.000789,"input_tokens":4910,"output_tokens":596,"severity_before":"high"},"analyst_status":null,"analyst_note":null,"search":"'-2026':13A,21A '-68934':14A,22A '-78':35B '/bin/sh':122C '1.5.3':159C,198C '62jc':18A 'accept':97C 'ai':29B 'ai-tool':28B 'arbitrari':64B,146C 'argument':168C 'array':169C 'attack':67B 'basebranch':50B,100C,128C 'break':138C 'call':70B,162C 'caller':105C 'caller-control':104C 'child_process.execsync':117C 'code':2A,24A,32B,41B,85C,194C 'code-review':31B 'code-review-mcp-serv':1A,40B,84C,193C 'code-review-mcp-server':23A 'codereview':93C 'command':6A,54B,65B,75B,113C,120C,132C,147C 'control':106C 'craft':61B,124C 'createpr':94C 'cve':12A,20A 'cwe':34B 'direct':110C,174C 'elimin':183C 'everi':160C 'execfilesync':166C 'execsync':58B,161C 'execut':76B,115C,148C 'expos':89C 'fix':157C 'folderpath':48B,98C,136C 'folderpath/basebranch':10A 'fqq9':19A 'get':74B 'getlocalgitdiff':92C 'getprtempl':95C 'gh':177C 'ghsa':16A 'ghsa-jq3q-62jc-fqq9':15A 'git':176C 'go':179C 'host':79B,151C 'impact':83C 'inject':7A,185C 'input':171C 'interpol':109C 'jq3q':17A 'later':200C 'main':129C 'mcp':4A,26A,36B,43B,45B,72B,87C,90C,154C,196C 'node':37B 'none':190C 'npm':38B 'paramet':11A,102C 'pass':47B,173C 'patch':156C 'quot':143C 'replac':164C 'result':144C 'review':3A,25A,33B,42B,86C,195C 'root':188C 'run':56B,63B,80B,119C,152C 'server':5A,27A,44B,82B,88C,155C,197C 'shell':53B,112C,182C 'straight':51B 'string':55B,101C,114C 'substitut':133C 'surround':142C 'tool':30B,46B,73B,91C 'unsanit':9A 'upgrad':191C 'use':167C 'valu':62B,107C,125C 'via':8A,116C 'without':178C 'workaround':189C","nicknames":[],"mitigations":[],"who_affected":"Any team running code-review-mcp-server versions before 1.5.3 as an MCP server that accepts tool calls with folderPath or baseBranch values. The sources say the flaw sits in the MCP tools getLocalGitDiff, codeReview, createPR and getPRTemplate. Teams that do not run this package can skip it.","tier":"B","verified":{},"analyst_revisit_at":null,"fix_status":"available","audience":"developers","plain_action":null,"pkeys":["codereviewmcpserver"],"ptokens":["code","mcp","review","server"],"labels":["aitooling","codereview","cwe78","high","mcp","node","npm"],"campaign_type":null,"search_a":"'-2026':13A,21A '-68934':14A,22A '62jc':18A 'code':2A,24A 'code-review-mcp-serv':1A 'code-review-mcp-server':23A 'command':6A 'cve':12A,20A 'folderpath/basebranch':10A 'fqq9':19A 'ghsa':16A 'ghsa-jq3q-62jc-fqq9':15A 'inject':7A 'jq3q':17A 'mcp':4A,26A 'paramet':11A 'review':3A,25A 'server':5A,27A 'unsanit':9A 'via':8A","search_b":"'-78':35B 'ai':29B 'ai-tool':28B 'arbitrari':64B 'attack':67B 'basebranch':50B 'call':70B 'code':32B,41B 'code-review':31B 'code-review-mcp-serv':40B 'command':54B,65B,75B 'craft':61B 'cwe':34B 'execsync':58B 'execut':76B 'folderpath':48B 'get':74B 'host':79B 'mcp':36B,43B,45B,72B 'node':37B 'npm':38B 'pass':47B 'review':33B,42B 'run':56B,63B,80B 'server':44B,82B 'shell':53B 'straight':51B 'string':55B 'tool':30B,46B,73B 'valu':62B","search_c":"'/bin/sh':122C '1.5.3':159C,198C 'accept':97C 'arbitrari':146C 'argument':168C 'array':169C 'basebranch':100C,128C 'break':138C 'call':162C 'caller':105C 'caller-control':104C 'child_process.execsync':117C 'code':85C,194C 'code-review-mcp-serv':84C,193C 'codereview':93C 'command':113C,120C,132C,147C 'control':106C 'craft':124C 'createpr':94C 'direct':110C,174C 'elimin':183C 'everi':160C 'execfilesync':166C 'execsync':161C 'execut':115C,148C 'expos':89C 'fix':157C 'folderpath':98C,136C 'getlocalgitdiff':92C 'getprtempl':95C 'gh':177C 'git':176C 'go':179C 'host':151C 'impact':83C 'inject':185C 'input':171C 'interpol':109C 'later':200C 'main':129C 'mcp':87C,90C,154C,196C 'none':190C 'paramet':102C 'pass':173C 'patch':156C 'quot':143C 'replac':164C 'result':144C 'review':86C,195C 'root':188C 'run':119C,152C 'server':88C,155C,197C 'shell':112C,182C 'string':101C,114C 'substitut':133C 'surround':142C 'tool':91C 'upgrad':191C 'use':167C 'valu':107C,125C 'via':116C 'without':178C 'workaround':189C","cause_entry":null,"cause_path":null,"disclosures_checked_at":null,"first_public_at":"2026-07-06T05:04:10+00:00","kev":null,"cvss_vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/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":"ghsa","external_id":"GHSA-jq3q-62jc-fqq9","url":"https://github.com/advisories/GHSA-jq3q-62jc-fqq9","severity":"high","published_at":"2026-11-16T22:09:06+00:00","modified_at":"2026-11-16T22:09:07+00:00","first_seen_at":"2026-11-16T22:12:15+00:00","fetched_at":"2026-11-16T22:21:28+00:00","note":null},{"source":"nvd","external_id":"CVE-2026-68934","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-68934","severity":null,"published_at":"2026-11-16T22:18:25+00:00","modified_at":"2026-11-16T22:18:25+00:00","first_seen_at":"2026-11-16T22:39:15+00:00","fetched_at":"2026-11-16T22:39:16+00:00","note":null}],"documents":[{"id":172698,"url":"https://api.github.com/repos/Orcus2021/code-review-mcp-server/security-advisories/GHSA-jq3q-62jc-fqq9","title":"Maintainer's advisory: api.github.com","kind":"vendor","source":"ghsa","publisher":"vendor","text":null,"published_at":null,"relation":"advisory","confidence":null,"note":"Maintainer's advisory: api.github.com"},{"id":172699,"url":"https://github.com/Orcus2021/code-review-mcp-server/security/advisories/GHSA-jq3q-62jc-fqq9","title":"Maintainer's advisory: github.com","kind":"vendor","source":"ghsa","publisher":"vendor","text":null,"published_at":"2026-07-06T05:04:10+00:00","relation":"advisory","confidence":null,"note":"Maintainer's advisory: github.com"},{"id":172700,"url":"https://github.com/Orcus2021/code-review-mcp-server/pull/57","title":"Patch: github.com","kind":"other","source":"ghsa","publisher":"vendor","text":null,"published_at":null,"relation":"fix","confidence":null,"note":"Patch: github.com"},{"id":172701,"url":"https://github.com/Orcus2021/code-review-mcp-server/commit/d11642322b607556affaaa3fd631d4f8942c05d8","title":"Patch: github.com","kind":"other","source":"ghsa","publisher":"vendor","text":null,"published_at":null,"relation":"fix","confidence":null,"note":"Patch: github.com"},{"id":172702,"url":"https://github.com/Orcus2021/code-review-mcp-server/releases/tag/v1.5.3","title":"Release: github.com","kind":"release","source":"ghsa","publisher":"vendor","text":null,"published_at":null,"relation":"fix","confidence":null,"note":"Release: github.com"}],"disclosures":[],"exploit_sources":[],"notice":"Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai"}