code-review-mcp-server command execution in MCP tool parameters
Orcus2021 code-review-mcp-server
Orcus2021 code-review-mcp-server
| Product | Affected | Fixed in |
|---|---|---|
| code-review-mcp-server npm |
|
|
code-review-mcp-server automates code review and can post comments directly on GitHub pull requests. Prior to 1.5.3, the getLocalGitDiff, codeReview, createPR, and getPRTemplate MCP tools accept caller-controlled folderPath and baseBranch string parameters that are interpolated into command strings executed by child_process.execSync through /bin/sh. Shell metacharacters, command substitution, or quote-breaking input can therefore execute arbitrary commands with the privileges of the host process running the MCP server. This issue is fixed in version 1.5.3.
From the CVE record · GitHub_M
Before version 1.5.3, four MCP tools interpolate caller-controlled folderPath and baseBranch values into shell commands. A caller who can invoke these tools can execute arbitrary commands with the privileges of the MCP server process by supplying crafted values.
Anyone running the npm package code-review-mcp-server before version 1.5.3 should check their installation.