The official Git server of the Model Context Protocol could still be made to run programs named in a repository’s own configuration after the hardening of 18 November, this time through Git LFS. Release v2.6.0 from 27 November closes that route and seven more reported flaws in the Git, Memory and Fetch reference servers, and it narrows a Windows gap in the Filesystem server. If you moved to mcp-server-git 2026.11.18 after our report on the previous batch, that version is now outdated as well: the target is 2026.11.27.
How Git LFS got around the 18 November fix
The earlier fix worked from a list. It emptied certain filter, merge and branch keys in the repository’s config, and it kept drivers that come from the user’s global or system settings on purpose, Git LFS among them. GHSA-6663-fm5v-gqm5, rated 7.8 and reported by sholub-dev, shows the flaw in that trust. The LFS driver is trusted, but once it runs it reads its own options from the repo’s .git/config, and several of those options are program paths: extension clean and smudge commands, custom transfer agents, and for downloads core.sshCommand, credential.helper and core.askpass. The extension clean command fires on a plain git_status, with no network and no LFS object involved, while the tool still reports an unchanged working tree.
The attacker model is the same as last week. Someone has to control the .git folder itself, which happens with an unpacked archive, a shared folder or a vendored tree. A normal clone does not carry those settings, and git-lfs ignores them in a tracked .lfsconfig file. The fix empties the LFS program keys at repository level and switches LFS downloads off with GIT_LFS_SKIP_SMUDGE=1. One side effect you will notice: checkouts and merges through the agent now leave LFS files as pointer files, and you fetch the real content yourself with git lfs pull.
Exposed without knowing it: LFS and the Docker image
The bug needs the LFS driver in your system or global Git config, which a single git lfs install at any point leaves behind. You can see where it comes from with git config --show-origin --get-regexp '^filter\.lfs'. The server’s own Dockerfile installs git-lfs and enables it system wide, so every image built from it was exposed. There is a second Docker catch that the release does not mention. The README’s Docker examples start an image called mcp/git and describe building it locally under that name. If you never built it, Docker pulls the mcp/git image from Docker Hub instead, and when we checked on 28 November that image had last been updated on 16 June 2025 (211,808 pulls). It predates every one of the four Git server security releases since late October. Build it yourself from the current source with docker build -t mcp/git . in src/git.
All eight advisories in v2.6.0
| Advisory | Server | What an attacker could do | GitHub rating |
|---|---|---|---|
GHSA-6663-fm5v-gqm5 | mcp-server-git | Run programs set in Git LFS keys of a repo’s config, even via git_status | High (7.8) |
GHSA-3whj-m8jj-x97q | mcp-server-git | Point the configured –repository root at another repository through a .git pointer | Moderate |
GHSA-wvv2-676g-r57j | mcp-server-git | Make git_remote reveal a token from the user’s insteadOf rule via a tab in a remote name | Moderate (5.3) |
GHSA-f33v-89w7-f9vc | mcp-server-git | Read environment variables of the server through repo_path expansion in an error message | Moderate |
GHSA-5pwg-5xfw-x322 | mcp-server-git | Swap an alternates file mid-call so git_show returns objects from another repo | Moderate |
GHSA-qf89-h82f-h5r5 | mcp-server-git | Overwrite ignored files such as .env in a merge of diverged branches | Low |
GHSA-48j5-hj63-c82c | server-memory | Win a symlink race during a save and change permissions of a file outside the memory path | Moderate (4.2) |
GHSA-g7v6-hfx3-8rv6 | mcp-server-fetch | Slip past robots.txt rules with backslash or path parameter spellings | Low |
Our tally against the previous release: v2.5.0 carried five high ratings among its eight advisories, v2.6.0 has one high, five moderate and two low. That is 16 advisories for the reference servers in nine days, and the fourth security release of mcp-server-git since 28 October (2026.10.28, 2026.11.11, 2026.11.18 and now 2026.11.27). None of the eight has a CVE ID, so a scanner that matches only CVEs will not flag your installation. Track the GHSA IDs and the version numbers instead.
The two gaps we flagged last week
On 24 November we listed two items the project itself called open. The first is now closed: after git_checkout, git_merge or a conflict abort writes the working tree, the server checks the –repository boundary again and stops if it fails, which completes GHSA-9vjp-x34c-xg6v. The second is only smaller. Filesystem 2.4.1 now refuses directory listings on Windows when a junction or symlink sits on the path or the directory changed during the read, but a swap that is made and reversed while the listing runs still goes unnoticed. Nothing changes on macOS and Linux.
Why npm will not hand you the fix
On PyPI the update is plain: on 28 November both mcp-server-git and mcp-server-fetch listed 2026.11.27 as their newest release, so pip install -U gets it. npm is the trap. The TypeScript servers switched from date versions to semantic versions with 1.0.0, and in semver order 2.2.2 ranks below the old date builds such as 2026.8.31. In our registry check npm’s latest tag already pointed at 2.2.2 for server-memory and 2.4.1 for server-filesystem, so an npx -y call without a version picks up the fix. A config or lockfile pinned to a date version, or a ^2026 range, never moves on its own, and npm update keeps you on the old line. That is how servers fall behind unnoticed, as our MCPhantom report on outdated MCP servers showed.
Patch checklist
- Python servers:
pip show mcp-server-git mcp-server-fetchmust report 2026.11.27. In uvx or MCP client configs, replace any pinned 2026.11.18 or older with 2026.11.27. - Node servers: run
npm ls @modelcontextprotocol/server-memory @modelcontextprotocol/server-filesystemand install@modelcontextprotocol/server-memory@2.2.2and, on Windows,@modelcontextprotocol/server-filesystem@2.4.1by exact version. - Docker: rebuild mcp/git from current source and restart the client; do not rely on the Docker Hub image.
- Rotate a token if needed: if your global Git config holds a url.<base>.insteadOf rule with an embedded token and an agent ran git_remote on repositories you did not create, replace that token.
- Expect pointer files: after an agent checkout in an LFS repository, run
git lfs pullbefore building or testing. - Shared Linux hosts: make the Memory server’s graph directory writable only by the account that runs it.
- Standing rule: hand agent Git tools a fresh clone, never an unpacked archive, CI artifact or shared folder.
What is still open
The Windows race in the Filesystem server is not fully fixed, and the project gives no date for the rest. Neither the release nor the advisories we read mention attacks in the wild. Given the pace of reports, another batch would not be a surprise; we will update this piece if one lands. More MCP server flaws are collected on our MCP security tracker.


