highresolved

MCP Git submodule configuration executes commands through diff and checkout

Submodule configuration could execute repository-selected commands through inline submodule diffs and certain checkout or add operations. Parent-repository hardening did not cover those nested configuration paths. The maintainer lists version 2026.11.18 as patched.

The report demonstrated nested diff execution when diff.submodule=diff, plus filter execution during git_checkout and git_add. A gitlink was sufficient; a .gitmodules entry was not required. These paths differ from the previously fixed status and ordinary submodule-diff checks.

The maintainer's advisory lists 2026.11.18 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.18 or later. Apply configuration restrictions recursively when tools can enter nested repositories.

Sources

mcpmcp-server-git