News · code-review-mcp-server (npm package) · 2 min read
Event date: · Published:
AI code review MCP server fixes command injection flaw
GitHub disclosed a high severity command injection vulnerability in the npm package code-review-mcp-server on November 16, 2026, fixed in version 1.5.3.
GitHub's Advisory Database disclosed a high severity command injection vulnerability in the npm package code-review-mcp-server, which lets AI coding agents run automated code reviews, on November 16, 2026. The GHSA-jq3q-62jc-fqq9 advisory was published at 22:09:06 UTC and is tracked as CVE-2026-68934.
What the advisory covers
- The flaw affects all versions of code-review-mcp-server before 1.5.3 and is fixed in version 1.5.3.
- It carries a CVSS v4.0 score of 8.7 (High) and is classified as CWE-78, OS command injection.
- The MCP tools
getLocalGitDiff,codeReview,createPR, andgetPRTemplateaccept caller-controlledfolderPathandbaseBranchparameters. - Those parameters were interpolated directly into shell command strings run through Node's
child_process.execSync()via/bin/sh. - A crafted
baseBranchvalue, such as a branch name followed by a semicolon, an extra OS command, and a trailing comment marker (#), could run arbitrary commands with the MCP server's privileges.
Why it matters for AI builders
The vulnerability shows that MCP tools built specifically to let AI coding agents automate code review can themselves become a direct remote code execution vector if their shell command construction isn't hardened. Because an agent could be instructed via a crafted branch name or pull request, the exploit could be triggered without any person typing a malicious command directly, a risk relevant to anyone wiring MCP servers into an agentic code review pipeline.
The fix and what to do next
The fix replaces every execSync() call with execFileSync() using argument arrays, which stops the shell from interpreting the injected input. Teams running code-review-mcp-server should upgrade to version 1.5.3 to remove the exposure.
Sources
- code-review-mcp-server: Command injection via unsanitized folderPath/baseBranch parameters (GitHub Advisory Database, November 16, 2026, official)
Written with AI assistance, strictly from the sources listed above. Before it went live, automated checks verified its dates, sources and every language edition.