{"id":"CVE-2026-68934","aliases":["CVE-2026-68934","GHSA-jq3q-62jc-fqq9"],"related":[],"kind":"vulnerability","state":"published","title":"code-review-mcp-server: Command injection via unsanitized folderPath/baseBranch parameters","summary":"code-review-mcp-server automates code review and can post comments directly on GitHub pull requests. Prior to 1.5.3, the getLocalGitDiff, codeReview, createPR, and getPRTemplate MCP tools accept caller-controlled folderPath and baseBranch string parameters that are interpolated into command strings executed by child_process.execSync through /bin/sh. Shell metacharacters, command substitution, or quote-breaking input can therefore execute arbitrary commands with the privileges of the host process running the MCP server. This issue is fixed in version 1.5.3.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"code-review-mcp-server automates code review and can post comments directly on GitHub pull requests. Prior to 1.5.3, the getLocalGitDiff, codeReview, createPR, and getPRTemplate MCP tools accept caller-controlled folderPath and baseBranch string parameters that are interpolated into command strings executed by child_process.execSync through /bin/sh. Shell metacharacters, command substitution, or quote-breaking input can therefore execute arbitrary commands with the privileges of the host process running the MCP server. This issue is fixed in version 1.5.3.","source":"cvelist"},{"lang":"en","text":"### 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.","format":"markdown","source":"ghsa"}],"published":"2026-11-16T21:26:05.951Z","modified":"2026-11-16T22:18:25.070Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","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","score":8.7,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","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","score":8.7,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","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","rating":"HIGH"}],"cwes":["CWE-78"],"affected":[{"ranges":[{"version":"< 1.5.3","status":"affected"}],"vendor":"Orcus2021","product":"code-review-mcp-server","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.5.3"}],"ecosystem":"npm","package":"code-review-mcp-server","purl":"pkg:npm/code-review-mcp-server","source":"ghsa"}],"references":[{"url":"https://github.com/Orcus2021/code-review-mcp-server/security/advisories/GHSA-jq3q-62jc-fqq9","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/Orcus2021/code-review-mcp-server/issues/56","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/Orcus2021/code-review-mcp-server/pull/57","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/Orcus2021/code-review-mcp-server/commit/d11642322b607556affaaa3fd631d4f8942c05d8","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/Orcus2021/code-review-mcp-server/releases/tag/v1.5.3","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/Orcus2021/code-review-mcp-server","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-11-16T21:40:07.137Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-68934","url":"https://www.cve.org/CVERecord?id=CVE-2026-68934","licence":"CVE Terms of Use","modified":"2026-11-16T21:40:19.235Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-jq3q-62jc-fqq9","url":"https://github.com/advisories/GHSA-jq3q-62jc-fqq9","licence":"CC-BY-4.0","modified":"2026-11-16T22:15:05.607Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-68934","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-68934","licence":"Public domain","modified":"2026-11-16T22:18:25.070Z"}],"updatedAt":"2026-11-25T22:59:50.941Z","epss":{"score":0.00604,"percentile":0.43028,"date":"2026-11-30T12:00:22.000Z"}}