MCP Git repo_path expansion leaks environment variables in errors
GitPython expanded environment variables in repo_path, and errors could return the expanded values to the client. A caller able to influence a tool argument could disclose server-process environment values. The maintainer lists version 2026.11.27 as patched.
The report describes information disclosure through NoSuchPathError after environment-variable expansion. It can occur without --repository and, under the documented working-directory conditions, with --repository. This differs from Git LFS command execution and remote-output redaction failures.
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. Disable expansion of untrusted paths and prevent tool errors from exposing process secrets.