Directory Traversal Vulnerability in mcp-server-git by ModelContextProtocol
CVE-2026-134465
5.8MEDIUM
What is CVE-2026-134465?
A directory traversal vulnerability exists in mcp-server-git prior to version 2026.10.28 that allows attackers to bypass the --repository restriction. This is achieved by placing a .git file with a gitdir pointer in a nested directory within the allowed path. If an attacker can invoke the server’s tools and knows the path of an outside repository, they can read committed content and create new branches, potentially leading to unauthorized access to sensitive data.
Affected Version(s)
mcp-server-git 0 < 2026.10.28
