VulnWatch by ve1ve2
high 8.7 EPSS 0.43%

GHSA-jq3q-62jc-fqq9 / CVE-2026-68934: code-review-mcp-server: Command injection via unsanitized folderPath/baseBranch parameters

Source:
GitHub Security Advisories
Published:
Fetched:
Updated:
Affects:
code-review-mcp-server

https://github.com/advisories/GHSA-jq3q-62jc-fqq9 ↗

ghsanpmCWE-78

code-review-mcp-server: Command injection via unsanitized folderPath/baseBranch parameters ### 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; #"` (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. Affected packages: npm:code-review-mcp-server Patched: code-review-mcp-server 1.5.3

Linked vulnerabilities (2)

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

code-review-mcp-server: Command injection via unsanitized folderPath/baseBranch parameters

CWE: CWE-78Aliases: CVE-2026-68934
CVE-2026-68934 high 8.7 EPSS 0.43% (p38) NVDCVE.orgGHSA
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

code-review-mcp-server: Command injection via unsanitized folderPath/baseBranch parameters

CWE: CWE-78Aliases: GHSA-jq3q-62jc-fqq9NVD: Received