NewApp Monitoring is liveSign up free
AgentbeamBeta
AI agent vulnerability · Other MCP servers and tools

CVE-2026-106764: @rog0x/mcp-git-tools executes arbitrary code via the resolveBaseBranch function

highCVSS 3.1 7.5GHSA-jwc4-922r-f2rw

@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-tools

Also 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 entries