GHSA-jq3q-62jc-fqq9

Suggest an improvement
Source
https://github.com/advisories/GHSA-jq3q-62jc-fqq9
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/11/GHSA-jq3q-62jc-fqq9/GHSA-jq3q-62jc-fqq9.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-jq3q-62jc-fqq9
Aliases
  • CVE-2026-68934
Published
2026-11-16T22:09:06Z
Modified
2026-11-16T22:15:05Z
Severity
  • 8.7 (High) CVSS_V4 - 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 CVSS Calculator
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 code-review-mcp-server@1.5.3 or later.

Database specific
{
    "cwe_ids":  [
        "CWE-78"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-11-16T22:09:06Z",
    "nvd_published_at":  null,
    "severity":  "HIGH"
}
References

Affected packages

npm / code-review-mcp-server

Package

Name
code-review-mcp-server
View open source insights on deps.dev
Purl
pkg:npm/code-review-mcp-server

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
1.5.3

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/11/GHSA-jq3q-62jc-fqq9/GHSA-jq3q-62jc-fqq9.json"