---
id: "CVE-2026-106764"
kind: "vulnerability"
aliases: ["CVE-2026-106764"]
title: "mcp-git-tools npm package: resolveBaseBranch flaw allows remote code execution"
severity: "high"
cvss: 7.5
epss: null
exploited: false
status: "open"
category: "ai-tooling"
products: []
ecosystems: []
tags: ["ai-tooling", "git", "mcp", "node", "npm"]
not_affected_if: ["package-not-installed"]
published_at: "2026-10-23T15:17:23+00:00"
first_seen_at: "2026-10-23T21:57:34+00:00"
updated_at: "2026-10-25T03:14:51+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-106764", "first_seen_at": "2026-10-23T21:57:34+00:00"}]
---

# mcp-git-tools npm package: resolveBaseBranch flaw allows remote code execution

The @rog0x/mcp-git-tools 1.0.1 package, an MCP server for git operations, contains a flaw in its resolveBaseBranch function. Per the NVD entry, a remote attacker can use it to execute arbitrary code.

_Summary, check and fix written by a model from the sources; labelled as such._

## How to check

- `npm ls @rog0x/mcp-git-tools` to see whether the package is installed and at which version
- Look for `@rog0x/mcp-git-tools` in `package.json` and lockfiles of MCP server setups
- unknown whether the vulnerable code path is reached in typical use

## Fix

- Remove `@rog0x/mcp-git-tools` or move off version `1.0.1` if a fixed release exists; unknown which version fixes it
- Rotate any credentials available to the MCP server process if it ran exposed

## Timeline

- 2026-10-23T21:57:34+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-106764

## From the sources

An issue in @rog0x/mcp-git-tools 1.0.1 allows a remote attacker to execute arbitrary code via the resolveBaseBranch function.

---

_Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai_
