---
id: "CVE-2026-68934"
page: "https://infrastack.ai/live/CVE-2026-68934"
kind: "vulnerability"
aliases: ["CVE-2026-68934", "GHSA-jq3q-62jc-fqq9"]
title: "code-review-mcp-server: Command injection via unsanitized folderPath/baseBranch parameters"
severity: "high"
cvss: 8.7
epss: null
exploited: false
status: "open"
category: "ai-tooling"
products: [{"name": "code-review-mcp-server", "fixed": ["1.5.3"], "affected": "< 1.5.3", "ecosystem": "npm"}]
ecosystems: ["npm"]
tags: ["ai-tooling", "code-review", "cwe-78", "mcp", "node", "npm"]
not_affected_if: ["fixed-version", "not-installed"]
published_at: "2026-11-16T22:09:06+00:00"
first_seen_at: "2026-11-16T22:12:15+00:00"
updated_at: "2026-11-16T22:39:15+00:00"
sources: [{"source": "ghsa", "url": "https://github.com/advisories/GHSA-jq3q-62jc-fqq9", "first_seen_at": "2026-11-16T22:12:15+00:00"}, {"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-68934", "first_seen_at": "2026-11-16T22:39:15+00:00"}]
exploit_sources: []
---

# code-review-mcp-server: Command injection via unsanitized folderPath/baseBranch parameters

Link for people: https://infrastack.ai/live/CVE-2026-68934 (this .md is for agents)

The code-review-mcp-server MCP tools pass folderPath and baseBranch straight into shell command strings run by execSync, so a crafted value runs arbitrary commands. An attacker who can call these MCP tools gets command execution on the host running the server.

_Summary, check and fix written by a model from the sources; labelled as such._

## Affected

- npm:code-review-mcp-server affected < 1.5.3 fixed 1.5.3

## How to check

- Check the installed version with `npm ls code-review-mcp-server` and look for any version below `1.5.3`.
- Find where the server runs (developer machines, CI runners, shared hosts) and confirm it is started from the affected package.

## Fix

- `code-review-mcp-server` upgrade to `1.5.3` or later; the sources state no workaround exists.

## Timeline

- 2026-11-16T22:12:15+00:00 ghsa https://github.com/advisories/GHSA-jq3q-62jc-fqq9
- 2026-11-16T22:39:15+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-68934

## Documents

- [advisory] Maintainer's advisory: api.github.com https://api.github.com/repos/Orcus2021/code-review-mcp-server/security-advisories/GHSA-jq3q-62jc-fqq9
- [advisory] Maintainer's advisory: github.com https://github.com/Orcus2021/code-review-mcp-server/security/advisories/GHSA-jq3q-62jc-fqq9
- [fix] Patch: github.com https://github.com/Orcus2021/code-review-mcp-server/pull/57
- [fix] Patch: github.com https://github.com/Orcus2021/code-review-mcp-server/commit/d11642322b607556affaaa3fd631d4f8942c05d8
- [fix] Release: github.com https://github.com/Orcus2021/code-review-mcp-server/releases/tag/v1.5.3

## From the sources

### 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 `code-review-mcp-server@1.5.3` or later.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
