cvelo
P3 · MediumCVSS 5.8

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

  • CVE-2026-134465
  • GHSA-7f33-9hc8-6cr8
  • EUVD-2026-133154

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.

Text from the CVE.org record.

Affected

  • Anthropic mcp-server-git

    • before 2026.10.28

Product versions from the CVE.org record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.