freenode

← CVE tracker

CVE-2026-134465

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

Severity
medium CVSS 5.8 (v4.0)
Affects
mcp-server-git · Anthropic
Weakness
CWE-22 Improper Limitation of a Pathname to a Restricted Directory
Published
23 November 2026 by Anthropic
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.

Our coverage

We have not written about this one. Know why it matters? Send a tip.