# GHSA-JQ3Q-62JC-FQQ9: code-review-mcp-server: Command injection via unsanitized folderPath/baseBranch parameters

- Database: GitHub
- Severity: high (stated by ghsa, no CVSS score)
- Published: 2026-11-16
- Modified: 2026-11-16

## Tracked as

- [CVE-2026-68934](https://cve.now/CVE-2026-68934.md): code-review-mcp-server command injection in MCP tool parameters

## Affected versions

- code-review-mcp-server (npm): fixed in 1.5.3

## Description

### 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

- https://github.com/Orcus2021/code-review-mcp-server/security/advisories/GHSA-jq3q-62jc-fqq9
- https://github.com/Orcus2021/code-review-mcp-server/issues/56
- https://github.com/Orcus2021/code-review-mcp-server/pull/57
- https://github.com/Orcus2021/code-review-mcp-server/commit/d11642322b607556affaaa3fd631d4f8942c05d8
- https://github.com/Orcus2021/code-review-mcp-server
- https://github.com/Orcus2021/code-review-mcp-server/releases/tag/v1.5.3

Page: https://cve.now/GHSA-JQ3Q-62JC-FQQ9
