code-review-mcp-server: Command injection via unsanitized folderPath/baseBranch parameters
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in code-review-mcp-server 1.5.3.
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.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Orcus2021 | <1.5.3 | ||
| npm: code-review-mcp-server | <1.5.3 | 1.5.3 |
Timeline
Every event on this vulnerability
Embed
A live severity badge for an advisory, README or ticket