The Model Context Protocol project has shipped its third security release for mcp-server-git in three weeks. On 18 November 2026 it published eight advisories for its reference servers, five of them rated high, and every high one has the same root: a repository’s own Git configuration could make the server launch a program with the user’s rights. Several paths start from tools an agent treats as harmless, such as git_status or git_show. The fixes are in release v2.5.0: upgrade the Git server to 2026.11.18.
Why a status check could run someone else’s program
The reference Git server lets an AI agent inspect and edit local repositories. Since its November 11 release it promises never to run a program that a repository’s configuration names, and it enforces that by overriding risky Git settings on every command. The new reports show where that list had gaps: automatic garbage collection after a merge, a lazy fetch of a missing object, a config include that only appears after a merge, a filter driver whose name is an empty string, and nested diffs or checkouts inside submodules.
The catch is delivery. A normal git clone does not copy the remote’s .git/config, so cloning a hostile project is not enough. The attacker needs a repository that reaches the disk as a whole folder: an unpacked archive, a CI artifact, a shared drive, a vendored tree or a copied workspace. Once it is there, the advisories note that git_status is usually auto approved, returns a normal result while the command runs, and that --repository confinement does not help, because the hostile repository is the one inside the boundary.
All eight advisories at a glance
| Advisory | Package | Triggered by | Severity |
|---|---|---|---|
| GHSA-h2g3-rwxm-xfm3 | mcp-server-git | git_merge, fast forwards included (auto maintenance runs gc.recentObjectsHook) | High |
| GHSA-87qg-cmw8-jc5m | mcp-server-git | Read-only tools such as git_show, git_diff, git_status, git_log when an object is missing (lazy fetch) | High |
| GHSA-9vjp-x34c-xg6v | mcp-server-git | git_merge with a conflict: an include added by the merged branch runs during the abort | High |
| GHSA-pm7p-vphh-2cg7 | mcp-server-git | git_status with a filter driver named "" | High |
| GHSA-8wv7-r664-7594 | mcp-server-git | Diff tools with diff.submodule=diff; git_checkout and git_add in repos with submodules | High |
| GHSA-r2q8-f657-4r56 | mcp-server-git | Diff and status tools: a crafted index reads files outside --repository | Moderate |
| GHSA-rq2p-q7c4-6g27 | server-filesystem | Directory listing tools after a symlink swap (entry names only) | Low |
| GHSA-38j4-j742-j7r3 | server-everything | gzip resource fetch reaching private IPv4 hosts via NAT64 addresses | Low |
Three fix releases in 22 days
This is a pattern, not a one-off. On 28 October version 2026.10.28 closed a --repository bypass through a nested gitdir file (now CVE-2026-134465). On 11 November version 2026.11.11 fixed command execution via core.fsmonitor and introduced the hardening that this batch picks apart. A week later five new ways around it were patched. In January we already covered three chained flaws in the same Git server, and the class is not unique to MCP: earlier this month Mistral Vibe also ran code from a crafted Git config before its trust prompt appeared. Our count from the advisory pages: five of the eight reports state that AI tools helped find or write them up, so automated bug hunting is now aimed squarely at agent tooling.
What to check on your machine today
- Look at how your MCP client starts the server. A pinned entry such as
mcp-server-git@2026.11.11stays vulnerable until you edit it, and uvx may reuse an older cached copy;uvx mcp-server-git@latestresolved to 2026.11.18 in our test on 24 November. For pip installs,pip show mcp-server-gitshows the version (the server has no version flag). - Run
git --version. The fixed server refuses Git older than 2.31, and older than 2.33 for repositories with a checked-out submodule. - Node servers:
npm ls @modelcontextprotocol/server-filesystem. The release notes warn that package managers rank 2.4.0 below the old date versions (2025.x, 2026.x), so install@2.4.0explicitly. server-everything needs 2.3.1. - Until you can upgrade, set
GIT_NO_LAZY_FETCH=1in the server’s environment block, stop auto approvinggit_merge, and do not let the agent merge branches in repositories you received from someone else. - As a standing rule, give agent Git tools a fresh clone, not an unpacked archive, artifact or shared folder.
git clonewrites its own clean config. Our piece on how one-step MCP runners drift between versions shows why it pays to know which version actually runs.
What is still open
The release notes list two known gaps: the --repository confinement check is not yet repeated after a tool writes the working tree, and directory listings in server-filesystem are not yet anchored on Windows. None of the advisories has a CVE ID yet, and none reports exploitation. More MCP server flaws are collected on our MCP security tracker; we will update this piece when the open items close.



