{"id":"GHSA-jq3q-62jc-fqq9","summary":"code-review-mcp-server: Command injection via unsanitized folderPath/baseBranch parameters","details":"### Impact\n\n`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`.\n\nA crafted value such as `baseBranch = \"main; \u003carbitrary command\u003e #\"` (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.\n\n### Patches\n\nFixed 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.\n\n### Workarounds\n\nNone. Upgrade to `code-review-mcp-server@1.5.3` or later.","aliases":["CVE-2026-68934"],"modified":"2026-11-16T22:15:05.607054314Z","published":"2026-11-16T22:09:06Z","database_specific":{"github_reviewed_at":"2026-11-16T22:09:06Z","nvd_published_at":null,"cwe_ids":["CWE-78"],"severity":"HIGH","github_reviewed":true},"references":[{"type":"WEB","url":"https://github.com/Orcus2021/code-review-mcp-server/security/advisories/GHSA-jq3q-62jc-fqq9"},{"type":"WEB","url":"https://github.com/Orcus2021/code-review-mcp-server/issues/56"},{"type":"WEB","url":"https://github.com/Orcus2021/code-review-mcp-server/pull/57"},{"type":"WEB","url":"https://github.com/Orcus2021/code-review-mcp-server/commit/d11642322b607556affaaa3fd631d4f8942c05d8"},{"type":"PACKAGE","url":"https://github.com/Orcus2021/code-review-mcp-server"},{"type":"WEB","url":"https://github.com/Orcus2021/code-review-mcp-server/releases/tag/v1.5.3"}],"affected":[{"package":{"name":"code-review-mcp-server","ecosystem":"npm","purl":"pkg:npm/code-review-mcp-server"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"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"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"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"}]}