mcp-server-git patches --repository repository boundary bypass and discloses Windows residual risk
mcp-server-git released version 2026.11.11, fixing two --repository repository boundary bypasses disclosed in GHSA-q74p-4wrc-q7w6; affected versions are 2026.10.28 and later, and before 2026.11.11, with earlier versions covered by GHSA-w766-5x43-whvw. In the first, an attacker only needs to write a plain-text objects/info/alternates redirection file within an allowed directory to make tool calls such as git_show and git_diff read the commit contents and history of an external repository; in the second, by exploiting a flaw in which git_dir and common_dir are merged into the same set for validation in the linked worktree scenario, after writing a gitdir pointer file in a nested directory, calls such as git_reset and git_commit can be used to modify the main repository's HEAD, index and other state outside the restricted scope.
The advisory gives the specific mechanisms of the two bypasses, the fixed version and the Windows residual risk, so teams that use --repository to limit mcp-server-git's access scope can determine whether an upgrade is needed.