Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessInvoke MCP tool as authorized caller
-
DeliverySupply crafted baseBranch/folderPath with shell metacharacters
-
ExploitInjected string interpolated into execSync command
-
Execution/bin/sh executes arbitrary command
-
ImpactCode execution with MCP host process privileges
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization OS command sanitization, avoid shell exec
MITRE ATT&CK
2 techniques across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires a code-review-mcp-server instance prior to 1.5.3 where the attacker can invoke the getLocalGitDiff, codeReview, createPR, or getPRTemplate MCP tools and control the folderPath or baseBranch string parameters; these are interpolated into git/gh command strings run through /bin/sh via execSync, so shell metacharacters, $(...) command substitution, or quote-breaking input trigger execution. No special feature toggle or non-default configuration is needed - default behavior is vulnerable. Limiting factors: the attacker must be an authorized caller able to reach the MCP tool interface (CVSS PR:L), no user interaction is required (UI:N), and only versions below 1.5.3 are affected since 1.5.3 switched to execFileSync argument arrays. The only complete fix per the vendor is upgrading to 1.5.3 or later; the advisory states there are no workarounds. |
| Impact | This is a genuine, high-priority command-injection flaw (CWE-78) rather than an inflated CVSS number: the vendor GHSA advisory, the linked issue (#56), fixing PR (#57), patch commit, and 1.5.3 release all confirm the mechanism, and the diff shows the exact vulnerable pattern (caller-controlled folderPath/baseBranch interpolated into execSync strings run through /bin/sh) replaced with execFileSync argument arrays. The supplied CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N, VC/VI/VA:H, score 8.7) indicates network-reachable, low-complexity, low-privilege exploitation with full confidentiality/integrity/availability impact and no scope change - all consistent with arbitrary code execution as the host process. The vuln.today decision label is 'this_week', not act_now/emergency. No EPSS score and no CISA KEV entry were provided, and there is no evidence of active exploitation, so exploitation status should be read as a public PoC reference (advisory example payloads and the issue/PR) rather than confirmed in-the-wild use. Conflicting/ambiguous signal to verify: PR:L (authenticated) reflects that an attacker must be an authorized caller of the MCP tools, but in realistic MCP deployments the tool arguments may originate from an LLM acting on untrusted content, which can lower the practical barrier below what PR:L implies - assess against your own MCP exposure. |
| Exploit ScenarioDerived | An attacker able to supply arguments to the MCP tools (getLocalGitDiff, codeReview, createPR, getPRTemplate) sends a baseBranch value such as 'main; <command> #' or a $(...) substitution, or a quote-breaking folderPath; because the string is interpolated into a shell command executed by execSync via /bin/sh, the injected command runs with the privileges of the MCP server process. A public PoC reference exists in the advisory and linked issue; it is not verified as working exploit code. Per CVSS AC:L the attack is low-complexity and requires no user interaction, but PR:L means the attacker must be able to reach and invoke the MCP tool interface. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 16, 2026
Arbitrary command execution in the npm package code-review-mcp-server affects all versions before 1.5.3: the getLocalGitDiff, codeReview, createPR and getPRTemplate MCP tools pass caller-supplied folderPath and baseBranch strings into git/gh command lines built with child_process.execSync, which runs through /bin/sh. An attacker who is authorized to invoke those MCP tools (the assessed vector is PR:L, UI:N) can inject shell metacharacters, command substitution or quote-breaking input and run commands with the privileges of the host process running the MCP server, with high confidentiality, integrity and availability impact to that host. The vendor advisory, issue #56, PR #57, the patch commit and the v1.5.3 release all confirm the mechanism, and version 1.5.3 replaces every execSync call with execFileSync argument arrays; no public exploit code was identified at time of analysis and the flaw is not in CISA KEV, but the default configuration is vulnerable and no workaround is offered.
RemediationAI
Vendor-released patch: upgrade to code-review-mcp-server 1.5.3 or later (npm install code-review-mcp-server@1.5.3), which is the version tagged at https://github.com/Orcus2021/code-review-mcp-server/releases/tag/v1.5.3 and built from the fix in https://github.com/Orcus2021/code-review-mcp-server/pull/57 (commit d11642322b607556affaaa3fd631d4f8942c05d8), replacing every execSync shell string with execFileSync argument arrays. The advisory at https://github.com/Orcus2021/code-review-mcp-server/security/advisories/GHSA-jq3q-62jc-fqq9 states explicitly that there are no workarounds and that upgrading is the only complete fix, so no alternative configuration, escaping scheme or parameter filtering should be treated as an equivalent remedy; operators who cannot upgrade immediately should treat exposure of the affected MCP tools to untrusted callers as the outstanding risk while planning the 1.5.3 upgrade.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in npm
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
code-review-mcp-server is a Node.js Model Context Protocol server that automates code review and can post comments on GitHub pull requests by shelling out to the git and gh CLIs. The root cause is CWE-78 (OS command injection): the TypeScript helper src/utils/getGitHandler.ts and the GitHub CLI provider src/utils/githubProvider/cliProvider.ts built command strings such as git -C "${folderPath}" diff --numstat ${baseBranch}..${currentBranch} and gh pr view ${prUrl} ... and passed them to child_process.execSync, which executes via /bin/sh. Because the caller-controlled folderPath and baseBranch parameters were concatenated into those strings, shell metacharacters, $(...) substitution or a value that breaks out of the surrounding quotes were interpreted by the shell rather than passed as literal git arguments. A helper named escapeShellArg existed in src/utils/formatComment.ts but the affected paths did not neutralise the injected values. The fixing PR removes that escaping helper entirely and rewrites every execSync call to execFileSync('git', [...]) / execFileSync('gh', [...]) with argument arrays, so values reach the binary without a shell; the diff also notes that a JSON.stringify-produced jq string literal is used where attacker-controlled filenames previously flowed into a jq filter, and the workflow/Node baseline moves from Node 18 to Node 22.
Know when Code Review Mcp Server gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Network-reachable MCP tool call with controllable parameters (AV:N/AC:L), requiring an authorized caller (PR:L), no interaction (UI:N); shell command execution yields full C/I/A impact with no scope change.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.org
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.
Technical POC Analysis
CWE-78, OS command injection.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Latest POC
1 PoC candidate from github (unverified)
Sign in to open the public PoC links collected for this CVE.
Executive ViewAI
A high-severity vulnerability in code-review-mcp-server, an npm package used for code review automation, affects all versions before 1.5.3. An authenticated attacker who can invoke the affected MCP tools could execute arbitrary commands on the host running the server, compromising the confidentiality, integrity, and availability of that system. Leadership should care because this tool may be used in development and CI/CD pipelines, and a successful exploit could lead to unauthorized access, data breaches, or service disruption.
Vendor-released patch: 1.5.3
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
OS command injection occurs when an application passes unsanitized user input directly into system shell commands.
EUVD-2026-126705
GHSA-jq3q-62jc-fqq9
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB