Orcus2021 code-review-mcp-server
code-review-mcp-server: Command injection via unsanitized folderPath/baseBranch parameters
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 versions and mitigation
From the CVE record and the vendor's references.Affected
- < 1.5.3
Fixed in 1.5.3
Mitigation
Upgrade code-review-mcp-server to 1.5.3 or later.
References
- Vendor advisory github.com/Orcus2021/code-review-mcp-server/se…
- Patch github.com/Orcus2021/code-review-mcp-server/pu…
- Patch github.com/Orcus2021/code-review-mcp-server/co…
1 more
- Release notes github.com/Orcus2021/code-review-mcp-server/re…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.