8.7high
code-review-mcp-server: Command injection via unsanitized folderPath/baseBranch parameters
- Severity
- 8.7high CVSS:4.0 by GitHub_M
- Exploit likelihood
- 0.60% (higher than 43% of CVEs)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-jq3q-62jc-fqq9
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Orcus2021 code-review-mcp-server | < 1.5.3 | CVE List |
| code-review-mcp-server (npm) | before 1.5.3 | GitHub Advisory Database |
All scores
| GitHub_M | 8.7high CVSS:4.0 | 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 |
| GitHub | high CVSS:4.0 | 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 |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
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.
GitHub Advisory Database
Impact
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.
A 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.
Patches
Fixed 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.
Workarounds
None. Upgrade to code-review-mcp-server@1.5.3 or later.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-68934 changed 2026-11-16 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-jq3q-62jc-fqq9 changed 2026-11-16 | CC-BY-4.0 |
| NVD | CVE-2026-68934 changed 2026-11-16 | Public domain |