MCP Git concurrent alternates rewrite bypasses repository confinement
A caller with Git and Filesystem tool access could race an alternates-file rewrite after repository validation. The git_show tool could then return an object from a sibling repository. The maintainer lists mcp-server-git 2026.11.27 as patched.
The disclosure describes a time-of-check/time-of-use gap between validating objects/info/alternates and Git resolving an object. It uses a regular file rewritten through the supported Filesystem write_file tool, rather than a stable alternates entry or symbolic link.
The maintainer's advisory lists 2026.11.27 as the patched version. This record describes the disclosed vulnerability and does not assert that DeepInspect would prevent local execution or host compromise.
Takeaway
Upgrade to mcp-server-git 2026.11.27 or later. Treat combinations of filesystem-write and repository-read tools as a shared trust boundary.