Technical impact
The vulnerability exists in Anthropic's mcp-server-git prior to version 2026.10.28. A user who can run the server’s tools can place a .git file inside an allowed directory that contains a gitdir pointer to a repository outside the restricted path. This enables the attacker to read any committed content from that external repository and to create branches within it. The weakness stems from inadequate path validation and is classified under CWE-22. The impact is a breach of confidentiality and integrity for repositories that the attacker can reach.
Affected Systems
Anthropic's mcp-server-git product, all releases before 2026.10.28. The affected version range is any pre‑2026.10.28 build where the --repository restriction is enforced.
Risk and Exploitability
The CVSS score of 5.8 indicates a moderate severity level. The EPSS score is not available, so the exact exploit probability is unknown, but the lack of a KEV listing means no confirmed public exploitation has been reported yet. The likely attack vector requires the attacker to invoke the server’s tools and write to the allowed directory, implying either local or authenticated remote access to the server. If that access is available, the attacker can exploit the bypass to gain unauthorized read and write access to repositories outside the intended scope.