Skip to content
PatchBriefing

Search PatchBriefing

Type at least two characters. Results update as you type.

Search CVEs, products, packages and article titles.

Nothing found. Identifiers such as CVE and GHSA can be searched in both languages.

Subscribe

High · 8.7 Node.js & npm CVE-2026-68934 GHSA-jq3q-62jc-fqq9

Command Injection in code-review-mcp-server Allows Arbitrary Command Execution

code-review-mcp-server before version 1.5.3 fails to sanitize the folderPath and baseBranch parameters accepted by several of its MCP tools, allowing attackers to execute arbitrary commands on the host running the server. A fix is available in version 1.5.3.

By PatchBriefing ·

Produced automatically from official sources with the help of AI. How we work →

Synthesized by AI from 3 sources · updated 1 week ago

AI summary

A command injection vulnerability has been disclosed in code-review-mcp-server, an npm package that automates code review and can post comments directly on GitHub pull requests. Versions before 1.5.3 pass caller-controlled parameters into shell commands without proper sanitization, allowing an attacker to execute arbitrary commands with the privileges of the host process. The issue is tracked as CVE-2026-68934 and GHSA-jq3q-62jc-fqq9, and is fixed in version 1.5.3.

What happened

A command injection vulnerability was identified in code-review-mcp-server. Four of its MCP tools — getLocalGitDiff, codeReview, createPR, and getPRTemplate — accept caller-controlled folderPath and baseBranch string parameters. These values are interpolated directly into command strings that are executed via child_process.execSync through /bin/sh, without sanitization.

Technical cause

Because the folderPath and baseBranch parameters are inserted directly into shell command strings before execution, an attacker who controls these inputs can include shell metacharacters, command substitution sequences, or quote-breaking characters. This allows arbitrary commands to be executed with the privileges of the process running the MCP server. The issue is classified as CWE-78, Improper Neutralization of Special Elements used in an OS Command.

Why it matters

code-review-mcp-server automates code review tasks and can post comments directly on GitHub pull requests. A successful exploitation of this vulnerability means an attacker could run arbitrary commands on the system hosting the server, potentially leading to full compromise of the host process and any data or credentials it has access to, including interactions with connected repositories.

Affected versions

All versions of code-review-mcp-server prior to version 1.5.3 are affected.

Fixes and mitigation

The vendor has released version 1.5.3, which fixes this issue. Users should update to version 1.5.3 or later.

Recommended action

Update code-review-mcp-server to version 1.5.3 as soon as possible. If immediate updating is not possible, avoid exposing the affected MCP tools (getLocalGitDiff, codeReview, createPR, getPRTemplate) to untrusted callers, and restrict who can supply folderPath or baseBranch values until the update is applied.

PatchBriefing score

8.7 / 10 · High

Official CVSS: 8.7

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

EPSS 0.0060 (43 percentile)

Why this score

The PatchBriefing score equals the official CVSS score; when this article covers several vulnerabilities, the highest one. Signals such as known exploitation and EPSS are listed separately and do not change the score.

Affected versions

code-review-mcp-server < 1.5.3
vulnerable
code-review-mcp-server ≥ 0 < 1.5.3
vulnerable
≥ 1.5.3
patched

Reported fixes

The vendor has released version 1.5.3, which fixes this issue. Users should update to version 1.5.3 or later.

How this was built

3 source records were collected, matched and used to prepare the report above.

  • NVD (NIST) database
  • GitHub Advisory Database database
  • OSV.dev database
Unified report
Command Injection in code-review-mcp-server Allows Arbitrary Command Execution
1 article · 3 sources cited
Revision history
  1. Published
  2. Generated
The Morning Brief

Relevant changes for the stacks you follow.

Choose your stacks, topics and optional WordPress plugins. At 07:00 CET, matching advisories and releases from the reporting period are grouped into one email.

✓ Choose stacks and topics✓ Change preferences anytime✓ One grouped email