Skip to main content

code-review-mcp-server CVE-2026-68934

| EUVDEUVD-2026-126705 HIGH
OS Command Injection (CWE-78)
2026-11-16 GitHub_M GHSA-jq3q-62jc-fqq9
8.7
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Invoke MCP tool as authorized caller
  2. Delivery
    Supply crafted baseBranch/folderPath with shell metacharacters
  3. Exploit
    Injected string interpolated into execSync command
  4. Execution
    /bin/sh executes arbitrary command
  5. Impact
    Code 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
1 PoC candidate (unverified) Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

code-review-mcp-server < 1.5.3

Affected Packages

npm code-review-mcp-server fix: 1.5.3

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

Vendor (GitHub_M) PRIMARY 8.7 HIGH
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
vuln.today AI 8.8 HIGH

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.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Nov 16, 2026 - 23:18 EUVD
CVE Published
Nov 16, 2026 - 21:26 cve.org
HIGH 8.7

DescriptionCVE.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

Why It Matters

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.

Business Impact: High
Compensating Controls

Vendor-released patch: 1.5.3

Threat Intelligence Overview

EPSS Score
0.4%
Top 62% exploitable
Prevalence
Rare
obscure single-maintainer npm MCP server, negligible production footprint
Threat Intel
1
1 source
Social Media
2
Sightings
Data Quality
3 sources
Confidence: Low

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

64
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

OS command injection occurs when an application passes unsanitized user input directly into system shell commands.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy