MCP reference servers v2.6.0 fixes eight flaws, six of them in mcp-server-git. Upgrade, and pin by exact version
The official MCP reference servers shipped v2.6.0 on November 27 with eight security fixes. The worst lets a hostile repository run programs through Git LFS when an agent calls git_status. If you run mcp-server-git, server-memory, mcp-server-fetch, or server-filesystem on Windows, upgrade, and check that your pins don't skip the fix.
On this page
Everything below comes from the v2.6.0 release notes, the eight GitHub security advisories published with it, the fix PR, and the npm and PyPI registries, which we checked on November 30, 2026. We didn't reproduce any of the bugs. None of the advisories has a CVE yet, and none reports exploitation.
What shipped
The modelcontextprotocol/servers repo holds the reference servers that many tutorials and agent setups start from: Git, Fetch, Filesystem, Memory, Time, and a few others. The release summary says v2.6.0 "fixes eight vulnerabilities in three servers, and completes two fixes that v2.5.0 left open."
| Package | Registry | Fixed version | Affected |
|---|---|---|---|
mcp-server-git | PyPI | 2026.11.27 | Through 2026.11.18 |
mcp-server-fetch | PyPI | 2026.11.27 | 2026.10.10 through 2026.11.18 |
@modelcontextprotocol/server-memory | npm | 2.2.2 | 1.0.0 through 2.2.1 |
@modelcontextprotocol/server-filesystem | npm | 2.4.1 | Windows only, through 2.4.0 (partial fix) |
On Windows, 2.4.1 checks a listed directory before and after reading it, but the release notes say "A swap made and undone while the directory is being read is still not detected on Windows." mcp-server-time 2026.11.27 and server-everything 2.4.0 also shipped, with non-security changes. Sequential Thinking stayed at 2.2.0.
The eight advisories
All eight were published on November 27, 2026. Six affect mcp-server-git. Severity is as GitHub shows it; in one case that disagrees with the advisory's own text.
| Advisory | Server | Severity | What goes wrong |
|---|---|---|---|
| GHSA-6663-fm5v-gqm5 | Git | High, CVSS 7.8 | A repository's own .git/config names programs that Git LFS runs |
| GHSA-3whj-m8jj-x97q | Git | Moderate, 5.9 | A .git pointer file retargets --repository to another repo |
| GHSA-wvv2-676g-r57j | Git | Moderate, 5.3 | A TAB in a remote name defeats credential redaction in git_remote |
| GHSA-f33v-89w7-f9vc | Git | Moderate, no score | repo_path expands $NAME, and the error message prints the value |
| GHSA-5pwg-5xfw-x322 | Git | Moderate, 6.5 | A race with Filesystem write_file lets git_show read another repo |
| GHSA-qf89-h82f-h5r5 | Git | Low (body says 6.5) | git_merge overwrites ignored local files |
| GHSA-48j5-hj63-c82c | Memory | Moderate, 4.2 | A temp-file symlink race changes another file's permissions |
| GHSA-g7v6-hfx3-8rv6 | Fetch | Low, 3.7 | robots.txt checks miss backslash and ; path spellings |
The one that matters: Git LFS runs repo-named programs
The Git server already "hardens" a repo before working on it by blanking a list of risky repository-level config keys. The gap was Git LFS. If LFS is installed in your system or global Git config, its filter is trusted, and git-lfs then reads lfs.extension.*, lfs.customtransfer.*, and lfs.standalonetransferagent from the repository's own .git/config. Those keys name programs to run.
The advisory says the read-only git_status tool is enough to trigger it. Its preconditions are specific:
- The attacker controls the
.gitdirectory. Think of an unpacked archive, a shared folder, or a vendored tree. A plaingit cloneof a hostile repo doesn't give them that. - Git LFS is installed system-wide or globally. The advisory notes that the official Docker image runs
git lfs install --system. - An MCP client calls a Git tool on that repository.
--repositorydoesn't help if the hostile repo is the one you pointed it at.
In our view that combination isn't rare for coding agents, which often get pointed at downloaded sample projects, extracted tarballs from bug reports, and shared network drives. The advisory also says that setting GIT_LFS_SKIP_SMUDGE=1 on its own is not a fix.
The other seven, and who they reach
Most of the rest need a narrower setup. Each advisory spells out its own conditions:
- Secrets in the server's environment (GHSA-f33v). A
repo_pathof$GITHUB_TOKENcomes back in the not-found error, and prompt injection is the expected route. Without--repositorythe leak always works. With it, it works when the server's working directory is inside the allowed root. - Credentials in
url.<base>.insteadOfrules (GHSA-wvv2). If your~/.gitconfigrewrites URLs to embed a token, a repo with a TAB in a remote name can get that token printed unredacted. Affected releases start at 2026.11.4. - Git and Filesystem servers running side by side (GHSA-5pwg). A caller who can write
.git/objects/info/alternatesthrough Filesystem can racegit_showinto reading a sibling repository. - A Memory graph directory that another account can write (GHSA-48j5). That account can race a save and change the permissions of a file outside the graph. The advisory's proof of concept uses the HTTP transport and says default stdio installs aren't affected "by this scenario," but the fix PR says it "Affects stdio and Streamable HTTP alike." Upgrade either way, and keep the graph directory private.
- Autonomous Fetch against IIS-style or servlet origins (GHSA-g7v6). This completes an earlier robots.txt fix and only matters if you rely on the server honoring robots.txt.
How to upgrade, and the version-number trap
The release notes' upgrade line is short: mcp-server-git and mcp-server-fetch to 2026.11.27, server-memory to 2.2.2, and on Windows server-filesystem to 2.4.1. They also warn about a catch: "Package managers rank 2.2.2 and 2.4.1 below every 2025.x and 2026.x version, so they won't offer them as an upgrade."
The npm servers used date-style versions until at least August 2026 (the registry still lists server-memory 2026.8.31, for example) and then switched to 2.x. On November 30 the latest tag pointed at 2.2.2 and 2.4.1, so an unpinned npx -y gets the fix. A lockfile, a ^2026.8.31 range, or npm update won't. Pin the exact version:
Change only the version. Keep each server's existing scope, environment variables, and arguments. The Memory server, for example, reads its graph location from MEMORY_FILE_PATH, and re-adding it without that variable would open a different graph. In Claude Code, look at the current definition first:
# see the scope, command, args, and env each server uses now
claude mcp get git
claude mcp get memoryIf the server lives in a project's .mcp.json, edit the version inside its args array and commit it, so teammates get the same pin. If you added it with claude mcp add, remove it and add it back with the same flags and a pinned version. This example assumes the definition claude mcp get showed was user scope with a custom graph path:
claude mcp remove memory --scope user
claude mcp add --scope user --env MEMORY_FILE_PATH=/home/you/.mcp/memory.jsonl \
memory -- npx -y @modelcontextprotocol/[email protected]
# Python servers take the version after @ with uvx
claude mcp remove git --scope user
claude mcp add --scope user git -- uvx [email protected] --repository /path/to/repoThe claude mcp add and --scope forms are from the Claude Code MCP docs. Run claude mcp get again afterwards to confirm each server connects. For other clients, the change is the same: put the exact version in the command that starts the server, and leave the rest alone.
What the Git fix changes
The fix, PR #5672, blanks the LFS extension and custom-transfer keys and sets GIT_LFS_SKIP_SMUDGE=1. Its breaking-change notes say two things:
- "
git_checkoutandgit_mergenow write each Git LFS file as its pointer file." - "A repository whose own
.git/configdefines a Git LFS extension now fails the tools that run the LFS clean or smudge filter."
If your agent checks out branches in an LFS-heavy repo through the MCP server, expect pointer files where binaries used to appear. Run git lfs pull yourself afterwards, but only in a repository whose local Git and LFS config you trust. The fix only protects Git processes the server starts and leaves .git/config as it was, so a manual git lfs pull in a hostile tree still runs whatever programs that config names.
The PR also states its limit plainly: "The analysis covers only Git LFS among trusted drivers." Other filter drivers you've configured globally weren't audited.
A five-minute checklist
- Find every copy. Search your
.mcp.jsonfiles,~/.claude.json, and other clients' configs formcp-server-git,server-memory,mcp-server-fetch, andserver-filesystem. - Pin exact versions as above, including in Dockerfiles and CI images.
- Check
git config --system --get-regexp lfsand the--globalequivalent on machines and images that run the Git server. - Move secrets out of the server's environment where you can, and avoid tokens in global
insteadOfrules. - Point the Git server at repos you trust. Use a scratch container for anything you unpacked from somewhere else.
That last point applies to every MCP server that shells out to a tool. Our guide to skills over MCP in Claude Code covers the hooks and permission rules that limit what a server can make Claude run.
Verdict
This is a routine patch release with one bug worth acting on today. GHSA-6663 turns a read-only status check into code execution under conditions that agents meet often: untrusted trees and LFS installed by default. The other seven mostly need specific setups, and the advisories say which.
The less obvious risk is the version scheme. A team that pinned [email protected] in July and runs npm update will stay on the vulnerable build indefinitely. Pin the exact fixed versions and check them in.
Sources
- modelcontextprotocol/servers: v2.6.0 release (November 27, 2026): package versions, affected ranges, upgrade notes, and the version-ranking warning.
- The eight advisories linked in the table above (all published November 27, 2026): severity, affected and patched versions, root causes, and preconditions.
- modelcontextprotocol/servers PR #5672: the Git LFS fix and its breaking changes.
- PyPI: mcp-server-git and npm: @modelcontextprotocol/server-memory: release timestamps and the
latesttag, checked November 30, 2026. - Claude Code docs: MCP:
claude mcp add,remove, andget.
Researched and drafted by an AI agent from the linked sources. How posts are made.