HIGH · CVSS 4.0 EPSS 0.6% · 43th percentile CWE-78

CVE-2026-68934: code-review-mcp-server: Command injection via unsanitized folderPath/baseBranch parameters

Published 2026-11-16 · Updated 2026-11-16 · Also known as GHSA-jq3q-62jc-fqq9

Summary

The code-review-mcp-server package contains a command injection vulnerability due to unsanitized input in multiple MCP tool parameters. Users running versions prior to 1.5.3 should update immediately to prevent arbitrary command execution on the host machine.

Who is affected

The vulnerability affects all deployments where the MCP server processes untrusted input in the folderPath or baseBranch parameters. By injecting shell metacharacters into these fields, an attacker can achieve arbitrary command execution via child_process.execSync(). This allows for full system compromise on the host running the server, as the shell command is executed directly.

Exploitability

The vulnerability is rated as High severity, with a CVSS 4.0 vector indicating network-based access with low attack complexity and no user interaction required. While the EPSS score of 0.004 suggests low current prevalence, the flaw is currently not listed in the CISA Known Exploited Vulnerabilities catalog.

Remediation

How to check your project

Automated analysis of the published advisory data, generated 2026-11-18. Not human-reviewed; verify against the official advisory. How this works.

Affected packages

EcosystemPackageAffected versionsFixed inUpgrade
npm code-review-mcp-server >= 0, < 1.5.3 1.5.3 npm install [email protected]

CVSS 4.0 vector

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

Attack vectorNetwork
Attack complexityLow
Attack requirementsNone
Privileges requiredLow
User interactionNone
Confidentiality (vulnerable system)High
Integrity (vulnerable system)High
Availability (vulnerable system)High
Confidentiality (subsequent systems)None
Integrity (subsequent systems)None
Availability (subsequent systems)None

Base score is not computed for CVSS 4.0 vectors; severity is taken from the advisory.

FAQ

What specifically caused this vulnerability?

The application used child_process.execSync() to pass unsanitized strings directly to /bin/sh, allowing attackers to inject additional shell commands.

Is there a workaround if I cannot upgrade immediately?

No workarounds have been documented; upgrading to version 1.5.3 or later is the only recommended resolution.

Does this flaw affect all tools within the server?

The flaw impacts tools accepting folderPath or baseBranch parameters, specifically getLocalGitDiff, codeReview, createPR, and getPRTemplate.

Original advisory description
### Impact `code-review-mcp-server` exposes MCP tools (`getLocalGitDiff`, `codeReview`, `createPR`, `getPRTemplate`) that accept `folderPath` and `baseBranch` string parameters. These caller-controlled values were interpolated directly into shell command strings executed via `child_process.execSync()`, which runs commands through `/bin/sh`. A crafted value such as `baseBranch = "main; <arbitrary command> #"` (or a `$(...)` command substitution, or a `folderPath` that breaks out of the surrounding quotes) results in **arbitrary command execution** on the host running the MCP server. ### Patches Fixed in **1.5.3**. Every `execSync()` call was replaced with `execFileSync()` using argument arrays, so inputs are passed directly to `git` / `gh` without going through a shell, eliminating the injection at its root. ### Workarounds None. Upgrade to `[email protected]` or later.

References

Source records: GHSA-jq3q-62jc-fqq9 (OSV.dev) · EPSS by FIRST, 2026-11-26.