mcp-server-git still ran repo programs via Git LFS: patch again to 2026.11.27

Nine days after the last batch, mcp-server-git 2026.11.18 still ran programs from a repository's config through Git LFS. v2.6.0 fixes eight flaws in three MCP reference servers. Why npm pins and the Docker Hub image keep you exposed, and a patch checklist.

Christopher Ort
By i10X News Desk · Reviewed by Christopher Ort · 5 min read
Share
Server room aisle with a single rack lit in amber warning light and network cables in the foreground
Image: AI-generated, i10X
On this page
  1. How Git LFS got around the 18 November fix
  2. Exposed without knowing it: LFS and the Docker image
  3. All eight advisories in v2.6.0
  4. The two gaps we flagged last week
  5. Why npm will not hand you the fix
  6. Patch checklist
  7. What is still open

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

AdvisoryServerWhat an attacker could doGitHub rating
GHSA-6663-fm5v-gqm5mcp-server-gitRun programs set in Git LFS keys of a repo’s config, even via git_statusHigh (7.8)
GHSA-3whj-m8jj-x97qmcp-server-gitPoint the configured –repository root at another repository through a .git pointerModerate
GHSA-wvv2-676g-r57jmcp-server-gitMake git_remote reveal a token from the user’s insteadOf rule via a tab in a remote nameModerate (5.3)
GHSA-f33v-89w7-f9vcmcp-server-gitRead environment variables of the server through repo_path expansion in an error messageModerate
GHSA-5pwg-5xfw-x322mcp-server-gitSwap an alternates file mid-call so git_show returns objects from another repoModerate
GHSA-qf89-h82f-h5r5mcp-server-gitOverwrite ignored files such as .env in a merge of diverged branchesLow
GHSA-48j5-hj63-c82cserver-memoryWin a symlink race during a save and change permissions of a file outside the memory pathModerate (4.2)
GHSA-g7v6-hfx3-8rv6mcp-server-fetchSlip past robots.txt rules with backslash or path parameter spellingsLow

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-fetch must 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-filesystem and install @modelcontextprotocol/server-memory@2.2.2 and, on Windows, @modelcontextprotocol/server-filesystem@2.4.1 by 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 pull before 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.

Christopher Ort

Christopher Ort

Christopher Ort is the editor of i10X News at i10x.ai. He has worked hands-on with AI tools, models and agent workflows for years and leads i10X’s coverage of AI launches, funding and research. He is the author of “The Style Penalty”, an SSRN study on how frontier AI models judge AI-written CVs, covered by heise online and t3n.

Editor's picks

  1. Nielsen Pulls His Free Deep Learning Book: What the License Still Allows
  2. YouTube Demonetized AI Channels: What Its Replies Show and How to Appeal
  3. v2video Tested: Version Control for AI Video Edits, and What It Costs in Disk
  4. mcp-server-git still ran repo programs via Git LFS: patch again to 2026.11.27
  5. Hugging Face GGUF malware: models pulled, but the Ollama copy still serves it