CVE-2026-68934: CVE-2026-68934: OS Command Injection in code-review-mcp-server via Unsafe Shell Execution
CVE-2026-68934: OS Command Injection in code-review-mcp-server via Unsafe Shell Execution Vulnerability ID: CVE-2026-68934 CVSS Score: 8.7 Published: 2026-11-16 A remote OS command injection vulnerability (CWE-78) e
CVE-2026-68934: OS Command Injection in code-review-mcp-server via Unsafe Shell Execution
Vulnerability ID: CVE-2026-68934
CVSS Score: 8.7
Published: 2026-11-16
A remote OS command injection vulnerability (CWE-78) exists in code-review-mcp-server prior to version 1.5.3. The application passes caller-controlled tool parameters directly into Node.js child_process.execSync() calls without proper neutralization. An attacker or compromised LLM agent invoking tools such as getLocalGitDiff, codeReview, createPR, or getPRTemplate can inject arbitrary shell commands that execute with the privileges of the MCP server host process.
TL;DR
Versions of code-review-mcp-server prior to 1.5.3 concatenate unsanitized MCP tool arguments into shell strings executed by child_process.execSync(). Attackers or indirect prompt injections can supply shell metacharacters in parameters like folderPath and baseBranch to achieve arbitrary command execution on the host system.
β οΈ Exploit Status: POC
Technical Details
- CVE ID: CVE-2026-68934 (GHSA-jq3q-62jc-fqq9)
- Vulnerability Class: CWE-78: OS Command Injection
- CVSS v4.0 Score: 8.7 High (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)
- EPSS Score: 0.43% (37.52nd Percentile)
- Affected Component: code-review-mcp-server (< 1.5.3)
- Patched Version: 1.5.3
- Exploit Status: Public PoC Available
- CISA KEV Status: Not Listed
Affected Systems
- code-review-mcp-server (npm package)
-
code-review-mcp-server: < 1.5.3 (Fixed in:
1.5.3)
Code Analysis
Commit: d116423
fix: prevent command injection in git/gh calls (#56)
File: src/utils/getGitHandler.ts
@@ -1,4 +1,4 @@
-import { execSync } from 'child_process';
+import { execFileSync } from 'child_process';
@@ -14,8 +14,9 @@ const getFileChanges = (
baseBranch: string,
currentBranch: string,
): FileChange[] => {
- const numstatOutput = execSync(
- `git -C "${folderPath}" diff --numstat ${baseBranch}..${currentBranch}`,
+ const numstatOutput = execFileSync(
+ 'git',
+ ['-C', folderPath, 'diff', '--numstat', `${baseBranch}..${currentBranch}`],
{ encoding: 'utf-8' },
).trim();
Exploit Details
- GitHub: Original vulnerability disclosure and technical proof-of-concept report by Yinci Chen demonstrating command injection via baseBranch and folderPath.
Mitigation Strategies
- Upgrade code-review-mcp-server to version 1.5.3 or later to replace shell-based execSync() calls with parameterized execFileSync() calls.
- Enforce human-in-the-loop confirmation in MCP clients (e.g., Claude Desktop, Cursor) before executing code-review-mcp-server tool requests.
- Execute MCP servers inside isolated containers or restricted OS sandboxes with minimal filesystem access and least-privilege GitHub tokens.
- Monitor process trees for Node.js MCP server instances spawning /bin/sh or cmd.exe child processes.
Remediation Steps:
- Update global or local npm installations by running: npm install -g [email protected]
- Update MCP client configuration files (such as claude_desktop_config.json) to explicitly specify '[email protected]' in the npx arguments array.
- Clear the local npx cache (~/.npm/_npx) if the MCP client previously cached an unpinned version of code-review-mcp-server.
- Restart the MCP client or host application to ensure the updated server binary is loaded.
References
- GitHub Security Advisory GHSA-jq3q-62jc-fqq9
- Official CVE-2026-68934 Record (CVE.org)
- National Vulnerability Database (NVD) - CVE-2026-68934
- GitHub Issue #56: Original Vulnerability Report and PoC
- GitHub Pull Request #57: Remediation PR
- Official Fix Commit d11642322b607556affaaa3fd631d4f8942c05d8
- Release Tag v1.5.3
- CVE v5 JSON Advisory Record
Read the full report for CVE-2026-68934 on our website for more details including interactive diagrams and full exploit analysis.
Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes β full credit and traffic to the original publisher.