mcp-server-git v2.5.0: We Retested the Week-Old Fix, and It Still Ran Our Code

MCP reference servers v2.5.0 fixes eight vulnerabilities. We retested the week-old mcp-server-git build and it still ran our code and leaked files.

Updated November 19, 2026. Based on the modelcontextprotocol/servers v2.5.0 release notes and v2.4.0 notes, the eight linked GitHub Security Advisories, PyPI release history, and our own November 19 test run with mcp-server-git 2026.11.11 and 2026.11.18 over MCP stdio.

The Model Context Protocol project shipped reference servers v2.5.0 on November 18, 2026, fixing eight vulnerabilities across three servers. Six of them sit in mcp-server-git, the official Git server that an AI agent calls to read and change repositories, and each one lets a repository’s own files run a command on the host or read files the server should not reach.

The same server was patched one week earlier. Version 2026.11.11, released November 11 in v2.4.0, fixed the first config-driven remote code execution, where a read-only git_status ran a program named in a repository’s .git/config (our test of that mcp-server-git vulnerability covers it). v2.5.0 now lists 2026.11.11 as the affected version for six more.

Upgrade mcp-server-git to 2026.11.18, @modelcontextprotocol/server-filesystem to 2.4.0, and @modelcontextprotocol/server-everything to 2.3.1, and treat any repository opened by an MCP Git server as untrusted code, not just data. We installed the week-old 2026.11.11 build and the new 2026.11.18 and drove both over real MCP stdio: 2026.11.11 ran our command through two different repository settings and handed back a file from outside its confinement boundary, while 2026.11.18 refused all three. On November 19, none of the six Git advisories had reached OSV.dev, so pip-audit still called the vulnerable build clean.

TL;DR

  • MCP reference servers v2.5.0 (November 18, 2026) fixes eight vulnerabilities: six in mcp-server-git, one in the filesystem server, one in the everything server.
  • The six Git issues all let a repository’s own configuration run a program as the MCP server user, or read files outside a confined repository. Five of the six are rated High (CVSS 7.8).
  • mcp-server-git 2026.11.11, itself last week’s security fix, is the affected version. We confirmed three of the paths run on 2026.11.11 and are refused on 2026.11.18.
  • In our test, a single git_merge and a read-only git_show each ran our command on 2026.11.11, and a crafted index made git_diff_unstaged return a file outside the repository.
  • None of the six Git advisories was in OSV.dev on November 19, so pip-audit reported “No known vulnerabilities found” for the vulnerable build.

What MCP Reference Servers v2.5.0 Fixed

The v2.5.0 release notes list eight advisories and tell operators to upgrade three packages: mcp-server-git to 2026.11.18, @modelcontextprotocol/server-filesystem to 2.4.0, and @modelcontextprotocol/server-everything to 2.3.1. The release went out on November 18, 2026, one week after v2.4.0. Six of the eight advisories are in the Git server alone.

GitHub release notes for MCP reference servers v2.5.0 listing eight vulnerability fixes and the affected and fixed versions for three servers
The v2.5.0 release notes list eight fixes and the affected and fixed versions. Image: GitHub, captured November 19, 2026.

Every Git issue shares one root cause. The server runs Git inside a repository the client chose, and Git treats several configuration keys as commands to run. The fix from the week before pinned a fixed list of those keys, and these six are the keys and code paths that list missed. The table below groups all eight by server.

AdvisoryServerSeverityWhat a repository could do
GHSA-h2g3-rwxm-xfm3mcp-server-gitHighRun a gc.recentObjectsHook command when a merge triggers Git maintenance
GHSA-87qg-cmw8-jc5mmcp-server-gitHigh (7.8)Name the program Git runs on a lazy fetch (uploadpack, core.sshCommand)
GHSA-9vjp-x34c-xg6vmcp-server-gitHigh (7.8)Create a filter or merge driver mid-merge that runs during git merge --abort
GHSA-pm7p-vphh-2cg7mcp-server-gitHigh (7.8)Use an empty-named filter driver the server’s list did not blank
GHSA-8wv7-r664-7594mcp-server-gitHigh (7.8)Run a submodule’s own diff.external or clean filter
GHSA-r2q8-f657-4r56mcp-server-gitMediumUse a crafted index to read files outside a --repository boundary
@modelcontextprotocol/server-filesystemfilesystemLow (2.2)Swap a directory for a symlink between the check and the listing
@modelcontextprotocol/server-everythingeverythingLow (3.7)Reach a private IPv4 address through a NAT64 address the guard read as public
The eight vulnerabilities fixed in MCP reference servers v2.5.0, grouped by server. Severity from each GitHub Security Advisory. Source: modelcontextprotocol/servers.

We Retested the Week-Old Fix: What Happened

We installed mcp-server-git 2026.11.11, last week’s security fix, and 2026.11.18 from v2.5.0, and called both from a Python MCP client over stdio. Each test repository supplied only its own files and .git/config. A planted command wrote a marker file, so a created file proves execution, not anything the tool reported back.

Table comparing mcp-server-git 2026.11.11 and 2026.11.18 across three planted repository behaviors and a dependency scan
Our November 19, 2026 test of mcp-server-git 2026.11.11 and 2026.11.18 over MCP stdio. Image: AgentStack.

Two of the paths ran code. A repository that set gc.recentObjectsHook and a two-pack layout made a single git_merge run our command as the server user on 2026.11.11, while the tool reported an ordinary fast-forward; 2026.11.18 merged with nothing run, matching GHSA-h2g3-rwxm-xfm3. A repository that marked a remote as a promisor and named its uploadpack program made the read-only git_show run our command when it reached for a missing object on 2026.11.11, and 2026.11.18 returned the diff with nothing run, matching GHSA-87qg-cmw8-jc5m.

GitHub Security Advisory GHSA-87qg-cmw8-jc5m rating the mcp-server-git promisor lazy-fetch issue High with CVSS 7.8
GHSA-87qg-cmw8-jc5m rates the promisor lazy-fetch path High, CVSS 7.8, reached by read-only tools. Image: GitHub, captured November 19, 2026.

The third path read a file it should not reach. With the server started under --repository, a crafted .git/index that named ../outside/secret made git_diff_unstaged on 2026.11.11 return the full text of that file, which sat outside the confined repository. On 2026.11.18 the same call failed with an explicit out-of-tree error, matching GHSA-r2q8-f657-4r56. We did not reproduce the merge-time include path (GHSA-9vjp-x34c-xg6v), the empty-named filter (GHSA-pm7p-vphh-2cg7) or the submodule path (GHSA-8wv7-r664-7594); each is described in its advisory.

Our test has limits. We ran on Linux with Git 2.47.3, called tools directly rather than planting an injection in a live agent session, and used a harmless marker command. The point is narrow and checkable: the build many teams installed last week as the security update still runs repository-supplied code on two tool calls and still leaks a file on a third.

Why the November 11 Patch Did Not End It

mcp-server-git has now shipped three releases in three weeks. Each patch closed the reported paths and left the next set open, because the defense blanks a named list of command-bearing keys rather than refusing untrusted repository configuration outright. The PyPI history shows 423,512 downloads in the last month, so the affected build is widely installed.

Timeline of mcp-server-git releases on November 11 and November 18 2026 and the vulnerabilities each one fixed and left open
The mcp-server-git release sequence and the config-execution issues fixed at each step. Image: AgentStack, from the v2.4.0 and v2.5.0 release notes.

The v2.5.0 notes are candid about what is still open. They mark two gaps: the --repository confinement check is not yet repeated after a tool writes the working tree (issue #5599), and the matching filesystem fix does not yet anchor directory listings on Windows (issue #5600). Operators who treat an MCP Git server as safe on untrusted repositories should plan for more of these, not fewer.

Why pip-audit and OSV Will Not Flag These Yet

On November 19, 2026, none of the six mcp-server-git advisories appeared in OSV.dev, the database that feeds pip-audit and other scanners. An OSV query for 2026.11.11 returned no vulnerabilities, and our pip-audit run against that version reported “No known vulnerabilities found.” A scanner that matches by name and version range cannot act until the records sync.

This is the same gap we have reported for other MCP servers in the last week, and it has a simple consequence. A team that gates upgrades on a clean dependency scan will keep running the vulnerable Git server, because the scanner has nothing to match. Track the repository’s own advisory feed and release notes until the databases catch up.

What MCP Server Operators Should Do Now

These steps apply to anyone running the MCP reference Git, filesystem or everything servers on developer machines or agent runners as of November 19, 2026. They put the Git upgrade and the untrusted-repository rule first, because that is where code runs.

  1. Upgrade mcp-server-git to 2026.11.18. A uvx mcp-server-git setup can keep serving a cached older copy, so pin the version or clear the cache and confirm with pip show mcp-server-git or uvx mcp-server-git --version.
  2. Upgrade @modelcontextprotocol/server-filesystem to 2.4.0 and @modelcontextprotocol/server-everything to 2.3.1. For a date-versioned filesystem install, request 2.4.0 explicitly, because package managers rank it below the 2025.x and 2026.x versions.
  3. Treat any repository an agent opens as untrusted code. Do not point an MCP Git server at an archive, shared folder or copied workspace whose .git/config you did not write.
  4. Do not rely on pip-audit, Dependabot or OSV for these yet. Watch the modelcontextprotocol/servers advisory page and release notes directly.
  5. Keep write-capable and repository-opening tools on a manual prompt rather than an auto-approve list, whatever a tool’s read-only annotation says.

For the wider picture, our guide to the best MCP servers for enterprise teams covers which servers suit production use, the MCP security tools roundup compares products that enforce tool-level policy, and the AI agent security tools and prompt injection detection tools guides cover the controls in front of the agent. The MCP clients comparison shows how each client handles tool approval, and our look at default MCP approval covers the same annotation-trust trap.

FAQ

Which MCP servers are affected by the v2.5.0 advisories?

mcp-server-git through 2026.11.11, @modelcontextprotocol/server-filesystem before 2.4.0 (and date versions 2025.1.14 through 2026.8.31), and @modelcontextprotocol/server-everything through 2.3.0. The six Git advisories are the serious ones, because each lets a repository run code or read files outside its boundary. Upgrade to mcp-server-git 2026.11.18, filesystem 2.4.0 and everything 2.3.1, and check installed versions with pip show or npm ls.

Was the November 11 mcp-server-git fix enough?

No. Version 2026.11.11, shipped November 11 in v2.4.0, fixed the first config-driven RCE in git_status, but v2.5.0 lists it as the affected version for six more. In our November 19 test, 2026.11.11 still ran our command on a git_merge and a read-only git_show, and returned a file from outside a confined repository. Only 2026.11.18 refused all three.

Can a read-only MCP Git tool really run code?

Yes. Two of the fixed paths run through read-only tools. A promisor remote names the program Git starts on a lazy fetch, which a read-only git_show or git_diff can trigger. The read-only label describes what the tool means to do, not what Git does under it, so it is not a safe basis for auto-approval.

Why does pip-audit not report the mcp-server-git vulnerabilities?

On November 19, 2026, none of the six Git advisories was in OSV.dev, which pip-audit and Dependabot rely on, so a scan of mcp-server-git 2026.11.11 returned no findings. The advisories are public on GitHub but not yet in the machine-readable databases. Until they sync, verify the version by hand and watch the modelcontextprotocol/servers advisory feed.