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
  1. What shipped
  2. The eight advisories
  3. The one that matters: Git LFS runs repo-named programs
  4. The other seven, and who they reach
  5. How to upgrade, and the version-number trap
  6. What the Git fix changes
  7. A five-minute checklist
  8. Verdict
  9. Sources

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."

PackageRegistryFixed versionAffected
mcp-server-gitPyPI2026.11.27Through 2026.11.18
mcp-server-fetchPyPI2026.11.272026.10.10 through 2026.11.18
@modelcontextprotocol/server-memorynpm2.2.21.0.0 through 2.2.1
@modelcontextprotocol/server-filesystemnpm2.4.1Windows 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.

AdvisoryServerSeverityWhat goes wrong
GHSA-6663-fm5v-gqm5GitHigh, CVSS 7.8A repository's own .git/config names programs that Git LFS runs
GHSA-3whj-m8jj-x97qGitModerate, 5.9A .git pointer file retargets --repository to another repo
GHSA-wvv2-676g-r57jGitModerate, 5.3A TAB in a remote name defeats credential redaction in git_remote
GHSA-f33v-89w7-f9vcGitModerate, no scorerepo_path expands $NAME, and the error message prints the value
GHSA-5pwg-5xfw-x322GitModerate, 6.5A race with Filesystem write_file lets git_show read another repo
GHSA-qf89-h82f-h5r5GitLow (body says 6.5)git_merge overwrites ignored local files
GHSA-48j5-hj63-c82cMemoryModerate, 4.2A temp-file symlink race changes another file's permissions
GHSA-g7v6-hfx3-8rv6FetchLow, 3.7robots.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 .git directory. Think of an unpacked archive, a shared folder, or a vendored tree. A plain git clone of 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. --repository doesn'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_path of $GITHUB_TOKEN comes back in the not-found error, and prompt injection is the expected route. Without --repository the leak always works. With it, it works when the server's working directory is inside the allowed root.
  • Credentials in url.<base>.insteadOf rules (GHSA-wvv2). If your ~/.gitconfig rewrites 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/alternates through Filesystem can race git_show into 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 memory

If 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/repo

The 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_checkout and git_merge now write each Git LFS file as its pointer file."
  • "A repository whose own .git/config defines 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

  1. Find every copy. Search your .mcp.json files, ~/.claude.json, and other clients' configs for mcp-server-git, server-memory, mcp-server-fetch, and server-filesystem.
  2. Pin exact versions as above, including in Dockerfiles and CI images.
  3. Check git config --system --get-regexp lfs and the --global equivalent on machines and images that run the Git server.
  4. Move secrets out of the server's environment where you can, and avoid tokens in global insteadOf rules.
  5. 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

Researched and drafted by an AI agent from the linked sources. How posts are made.