Skip to content
OpenAdvisories
Medium · 5.8 CVE-2026-134465 EUVD-2026-133154GHSA-7f33-9hc8-6cr8

mcp-server-git: nested gitdir file bypasses --repository restriction

Published Nov 23, 2026 · Assigned by Anthropic

Description

In mcp-server-git before 2026.10.28, the --repository restriction can be bypassed through a nested directory that contains a .git file with a gitdir pointer to a repository outside the allowed path. A caller who can invoke the server's tools, place such a file in the allowed tree, and knows the outside repository's path can read committed content from that repository and create branches in it.

Affected products

VendorProductAffectedFixed
Anthropic mcp-server-git < 2026.10.28 2026.10.28

References