CVE-2026-106764: @rog0x/mcp-git-tools executes arbitrary code via the resolveBaseBranch function
@rog0x/mcp-git-tools 1.0.1 and earlier is reported to pass a tool parameter into a shell command without escaping. The advisory names the resolveBaseBranch function. An attacker who can influence the model's tool arguments can run arbitrary commands on the host. No patched version exists yet.
Published Oct 23, 2026 · Updated Oct 29, 2026 · Analysis Oct 30, 2026
What an attacker can do
The reporter says a documented tool parameter flows from the tool schema to shell execution with no escaping, so the value is treated as a command instead of data. The advisory points at resolveBaseBranch, the function that resolves the base branch for git operations. The public issue gives no payload and no exact parameter, so the precise bypass is unconfirmed.
The trigger is a tool argument that the model supplies. That makes indirect prompt injection a realistic route: a README, issue, pull request description or web page that the model reads could steer it into passing a crafted branch name. The CVSS vector reflects network reach, high complexity and required user interaction. The result is code execution as the user running the MCP server, with access to the repositories, SSH keys and tokens on that machine.
The reporter says the sibling package @rog0x/mcp-docker-tools 1.0.1 has the same class of flaw.
Who is affected
@rog0x/mcp-git-tools 1.0.1 is named as affected, and the data marks all versions up to 1.0.1 as vulnerable. Check what you have installed:
npm ls @rog0x/mcp-git-toolsAlso look at your MCP client configuration for entries that launch this package. Treat @rog0x/mcp-docker-tools 1.0.1 as suspect too, since the reporter names it in the same issue.
@rog0x/mcp-git-tools
- Ecosystem
- npm
- Affected
- <= 1.0.1
- Fixed in
- No patched version yet
- Check
npm ls @rog0x/mcp-git-tools
How to fix it
No patched version is available. The issue is open, with no maintainer reply, no linked pull request, and the reporter says private vulnerability reporting is disabled.
Until a fix ships, remove the server from MCP client configs, or run it in a container with limited filesystem and network access. Require human approval for tool calls that run commands, and do not use it in sessions that read untrusted repositories or web content. The reporter's suggested code fix is to pass arguments as an array to execFile or spawn instead of building a shell string. If you fork the package, apply that change and test it.
How to tell if you were hit
No indicators are published. Look for shell child processes spawned by the Node process that runs the server, especially ones that are not git. Check the process's outbound connections. Review MCP tool-call history for git tool arguments with shell metacharacters such as ;, &&, backticks or $(, particularly in branch or base-branch fields. Beam records the MCP tool calls and shell commands an agent runs, and its rules flag risky ones, which helps here.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
An issue in @rog0x/mcp-git-tools 1.0.1 allows a remote attacker to execute arbitrary code via the resolveBaseBranch function.
Credited to stillmarcus24.
Questions
- Is there a patched version of @rog0x/mcp-git-tools?
No. The data lists no patched version, and the public issue had no maintainer response or linked fix when it was published.
- Could a malicious repository trigger this?
Possibly. The flaw is reached through tool arguments the model supplies, so text the model reads in a repository or issue could cause it to send a crafted value. The vector requires user interaction.
- Are other rog0x MCP packages affected?
The reporter names @rog0x/mcp-docker-tools 1.0.1 as having the same vulnerability class. That claim comes from the issue and is not confirmed elsewhere.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology
More Other MCP servers and tools vulnerabilities
All Other MCP servers and tools entriesCVE-2026-77312
Flyto2 Core: Arbitrary file write via unguarded data.*/file.* modules (incomplete fix of CVE-2026-67429)
critical10.0Nov 20, 2026CVE-2026-77318
Jupyter MCP Server: Unauthenticated management routes can hijack the Jupyter backend in standalone HTTP mode
high7.3Nov 20, 2026CVE-2026-77359
Jupyter MCP Server: Browser DNS rebinding can hijack the Jupyter backend through management routes
critical9.3Nov 20, 2026CVE-2026-130007
k8s-mcp-server: Missing authentication on default SSE/HTTP transport allows unauthenticated Kubernetes tool execution
high7.9Nov 19, 2026CVE-2026-130008
sqlite-mcp: Read-only mode bypass via statement chaining and SQL injection in describe_table
high8.2Nov 19, 2026CVE-2026-62964
Gortex: Arbitrary file write / repo-confinement escape in `write_file` / `edit_file` / `move_inline` MCP tools → code execution
high7.8Nov 19, 2026
