CODE-REVIEW-MCP-SERVER · CVE-2026-68934 · AI agents & MCP
FIX → 1.5.3
The code-review-mcp-server MCP tools pass folderPath and baseBranch straight into shell command strings run by execSync, so a crafted value runs arbitrary commands. An attacker who can call these MCP tools gets command execution on the host running the server.
first public Jul 6, 2026 · 2 sources
Check it with your coding agent
It reads this page and tells you if your code or app is affected.
Any team running code-review-mcp-server versions before 1.5.3 as an MCP server that accepts tool calls with folderPath or baseBranch values. The sources say the flaw sits in the MCP tools getLocalGitDiff, codeReview, createPR and getPRTemplate. Teams that do not run this package can skip it.
Not affected if fixed-version, not-installed
Who cares code-review, mcp, node, npm
npm ls code-review-mcp-server and look for any version below 1.5.3.Upgrade to 1.5.3
code-review-mcp-server upgrade to 1.5.3 or later; the sources state no workaround exists.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.
Fixed in . Every call was replaced with using argument arrays, so inputs are passed directly to / without going through a shell, eliminating the injection at its root.
Are you affected?
Ask from here. InfraStack checks the affected versions against your stack and answers in your inbox.
InfraStack checks the affected versions against your stack and answers in Slack, with the evidence and the fix.
InfraStack checks it against your stack and answers on your report, with the evidence and the fix.
execSync()execFileSync()gitghNone. Upgrade to code-review-mcp-server@1.5.3 or later.
This page as .md · .json · 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
GitHub Advisory Database, CC-BY 4.0 · NVD data is provided by NIST and is public domain. Posts quoted belong to their authors.