Vulnerabilities in pkg:npm/code-review-mcp-server

PACKAGE
Advisory Identifier: GHSA-jq3q-62jc-fqq9
Advisory Summary

CVE-2026-68934 is a HIGH command injection vulnerability (CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')) affecting code-review-mcp-server libraries in the npm ecosystem. The issue involves command injection via unsanitized folderpath/basebranch parameters. Remediation is available by upgrading affected packages to version 1.5.3.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/code-review-mcp-server

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:npm/code-review-mcp-server. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-jq3q-62jc-fqq9 CVE-2026-68934 HIGH code-review-mcp-server: Command injection via unsanitized folderPath/baseBranch parameters

CVE-2026-68934 at a Glance

CVE Identifier CVE-2026-68934
GHSA Identifier GHSA-jq3q-62jc-fqq9
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Affected Product code-review-mcp-server
Package Ecosystem npm
Published Date
Last Updated

How to Fix CVE-2026-68934

To remediate this vulnerability, upgrade all affected code-review-mcp-server dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

code-review-mcp-server fixed: 1.5.3
npm install code-review-mcp-server@1.5.3
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls code-review-mcp-server

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2026-68934, inspect your project dependencies using npm:

npm ls code-review-mcp-server

Analyze the terminal output to locate any version of code-review-mcp-server in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.5.3), your application is affected.

Note: The npm ls code-review-mcp-server command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection'), where the product constructs all or part of an os command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended os command when it is sent to a downstream component. In code-review-mcp-server, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### 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.

CVE-2026-68934 Affected code-review-mcp-server Versions

1 component(s)
Fixed Versions:
1.5.3
Product / Package Ecosystem Affected Versions Fixed Version
code-review-mcp-server
npm
< 1.5.3
1.5.3

References

Frequently Asked Questions

What is CVE-2026-68934?
CVE-2026-68934 is a security vulnerability in code-review-mcp-server involving Command injection via unsanitized folderPath/baseBranch parameters under CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection').
Which code-review-mcp-server versions are affected?
Affected versions include releases prior to 1.5.3 across affected packages: code-review-mcp-server.
What version fixes CVE-2026-68934?
Upgrading to 1.5.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is code-review-mcp-server affected?
Yes, code-review-mcp-server is affected in releases prior to 1.5.3. Upgrade your dependency to 1.5.3 or later.
What CWE is associated with CVE-2026-68934?
CVE-2026-68934 is classified under CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') (The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.).
How can I check npm dependencies for CVE-2026-68934?
Run the dependency tree command: 'npm ls code-review-mcp-server'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-jq3q-62jc-fqq9",
  "modified" : "2026-11-16T22:09:06Z",
  "published" : "2026-11-16T22:09:06Z",
  "aliases" : [ "CVE-2026-68934" ],
  "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; <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.\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.",
  "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"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "code-review-mcp-server"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.5.3"
      } ]
    } ]
  } ],
  "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"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-78" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-11-16T22:09:06Z",
    "nvd_published_at" : null
  }
}