LIVE LOG · recorded complete source-check dates between October 14 and November 30, 2026; excludes entries with incomplete or unverified source checks · site updated Nov 12, 2026, 12:09 AM ET

← All incidents

mcp-server-git --repository restriction bypassed via nested gitdir file (CVE-2026-134465)

Vulnerability · mcp-server-git · MEDIUM

Incident date
DisclosedNov 23, 2026 (GitHub advisory)
Added hereNov 23, 10:43 PM ET
Last verifiedNov 23, 2026

Summary

In mcp-server-git before 2026.10.28, the --repository restriction can be bypassed with a nested directory containing a .git file whose gitdir pointer names a repository outside the allowed path. The caller must be able to invoke the server's tools, place such a file in the allowed tree, and know the path of an outside repository that the MCP process can access. That caller can then read committed content from that repository and create branches in it. The project advisory says this is not claimed to be an unauthenticated standalone remote exploit.

Severity

MEDIUM The GitHub advisory rates it Medium.

Kit, our email provider, gets your address only to send the newsletter. Every email has an unsubscribe link. Privacy policy.

Timeline

  1. Oct 27, 2026
    The issue was reported to the modelcontextprotocol/servers project.
  2. Oct 28, 2026
    The project published its advisory, which labels the issue Moderate and lists 2026.10.28 as the patched version.
  3. Nov 23, 2026
    GitHub advisory GHSA-7f33-9hc8-6cr8 for CVE-2026-134465 was published and labels the issue medium.

How it happened

With --repository set, validate_repo_path() accepts a nested directory because its path is inside the allowed repository. open_repo() then passes it to git.Repo(), which follows the .git file's gitdir pointer. The reporter confirmed that git_show returned committed content from the outside repository and that git_create_branch created a branch in it. The reporter confirmed package version 2026.10.19 and two source commits and did not assess other versions. The advisory lists all versions before 2026.10.28 as affected.

How to check your app

Sources

Corrections and updates

None. Re-checked against every source on Nov 23, 2026.

Cite this entry
Title
mcp-server-git --repository restriction bypassed via nested gitdir file (CVE-2026-134465)
Added
Nov 23, 2026
URL
https://vibeincidents.com/incidents/mcp-server-git-cve-2026-134465/
Suggested citation
VibeIncidents. "mcp-server-git --repository restriction bypassed via nested gitdir file (CVE-2026-134465)." Nov 23, 2026. https://vibeincidents.com/incidents/mcp-server-git-cve-2026-134465/