Advisory

GHSA-jq3q-62jc-fqq9

Also known as: CVE-2026-68934

Summary

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

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2026-11-16 22:09 UTC
Modified
2026-11-16 22:15 UTC

Affected packages and fixes

code-review-mcp-server

npm · All systems

Affected

  • introduced 0, fixed 1.5.3 (semver)

Fixed versions

1.5.3

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences