MCP Servers v2.6.0: Eight Vulnerabilities Fixed in Git, Memory, and Fetch
If you run the reference MCP servers from modelcontextprotocol/servers behind Claude Code or any other MCP client, stop and check your lockfiles. v2.6.0 fixes eight vulnerabilities across three servers, and closes out two fixes that v2.5.0 left half-done. Four packages move: mcp-server-git to 2026.11.27, @modelcontextprotocol/server-memory to 2.2.2, mcp-server-fetch to 2026.11.27, and on Windows, @modelcontextprotocol/server-filesystem to 2.4.1. Full notes are here: v2.6.0 release.
This is the kind of release that gets skimmed because it reads like routine patch notes. It is not routine. Several of these bugs let a tool call that looked read-only touch things outside the repository or directory it was scoped to, which is exactly the trust boundary teams assume MCP tool-use respects.
Why the git server is the one to read carefully
mcp-server-git carries six fixes, and most of them share a pattern: the server trusted configuration or paths that the agent, not the user, effectively controlled once a repository was in scope.
The sharpest one is the Git LFS issue. If LFS is installed, which the official Docker image does system-wide, the server kept the LFS filter from the user's own config. Git LFS then read program-naming keys out of the repository's own .git/config: lfs.extension.<name>.clean/.smudge, lfs.customtransfer.<name>.path/.args, and lfs.standalonetransferagent. A cloned repository could name a program there, and read-only-looking calls like git_status, git_diff, git_add, git_checkout, and git_merge would run it with the server's own privileges. The fix empties those keys at repository scope and sets GIT_LFS_SKIP_SMUDGE=1, so LFS downloads are off by default now.
Second: the --repository root itself could be redirected. A root whose .git file or commondir pointed at a Git directory somewhere else was accepted as if it belonged to the root, so tools like git_show served content from a different repository than the one an operator thought they'd scoped the agent into. v2.6.0 records the root's Git directories at startup and refuses a root whose .git file names any other directory.
Third, git_remote could leak a credential. A tab character in a remote name could shift the URL column, and a URL that didn't start its own value could dodge redaction, so a url.<base>.insteadOf entry carrying a credential in the user's config came back verbatim. Remote names are now matched against Git's own list, and anything that looks like a URL but doesn't start the field is replaced with <redacted>.
Fourth, repo_path was taken too literally by GitPython itself, which expanded $NAME and ${NAME} tokens, and an error for a nonexistent path returned the expanded value, giving a tool call a way to read arbitrary environment variables from the server process. Neither repo_path nor --repository expands now.
Fifth, under --repository, object reads could be redirected through objects/info/alternates if that file was empty at check time and rewritten before Git actually looked the object up, so git_show could return an object from a different repository. Each call now runs against a private object directory that links only the repository's own objects, so Git never consults alternates at all. This behavior is scoped to --repository use; without it, alternates still work as before.
Sixth, git_merge could silently overwrite ignored files, including something like .env, when merging diverged branches, because Git's --no-overwrite-ignore flag only applies on a fast-forward. The server now checks incoming paths before merging and refuses rather than overwriting.
The notes also close a gap from v2.5.0 (GHSA-9vjp-x34c-xg6v): a checkout or merge could rewrite configuration that moves the working tree outside the --repository boundary after the initial check passed. git_checkout, git_merge, and the post-conflict abort path now re-check after any write, and stop cold if the recheck fails.
Memory and fetch: smaller blast radius, same pattern
@modelcontextprotocol/server-memory 2.2.2 fixes a symlink race in saveGraph: it used to set file permissions and then rename by path, so an account with write access to the graph's directory could swap in a symlink between those two steps and have the mode change land on an arbitrary target file. The temp file is now created exclusively and written through its own file handle, and a save is refused outright if the temp name gets swapped out from under it.
mcp-server-fetch 2026.11.27 finishes a robots.txt matching fix started in GHSA-3rxj-6jhw-qfv7. Autonomous fetch calls matched disallowed paths as literally spelled and as nginx or Apache would resolve them, but missed how IIS and other Windows-backed servers treat \ or %5C as a path separator, and how Java servlet containers drop ; path parameters. Both readings are checked now, which matters if your fetch server crawls anything sitting behind those stacks.
On Windows specifically, @modelcontextprotocol/server-filesystem also moves to 2.4.1; the upstream notes for that fix weren't available past the version bump, so treat it as a mandatory Windows upgrade without assuming the detail.
Who actually needs to move on this
If your engineering org wires Claude Code or another MCP client to these reference servers for repo inspection, local memory/notes, or autonomous fetch, you have agents making tool calls that were quietly allowed to escape their intended scope: reading a repository that wasn't theirs, leaking a credential through a remote name, or running an LFS-named program with the server's own permissions. None of this requires a compromised model; a crafted repository, a malicious remote config, or a hostile robots.txt is enough.
Security teams should treat this the way they'd treat any dependency with a credential-leak and file-write escalation path: patch, then go back and check whether any of these conditions were already exploitable against your fleet before today. The .env-overwrite bug and the credential leak through git_remote are both things you'd want to grep logs for if you've been running agent-driven git operations against untrusted or third-party repositories.
What to do this week
Pin and upgrade the four packages:
# Node-based servers
npm ls @modelcontextprotocol/server-memory @modelcontextprotocol/server-filesystem
npm install @modelcontextprotocol/[email protected]
npm install @modelcontextprotocol/[email protected] # Windows hosts
# Python-based servers (pip or uv/uvx, matching your install path)
pip show mcp-server-git mcp-server-fetch
pip install --upgrade "mcp-server-git==2026.11.27" "mcp-server-fetch==2026.11.27"
After upgrading, check any automation or Docker image that pins these servers by digest rather than tag; a stale digest keeps you exposed even after you've "upgraded" the manifest. If you run mcp-server-git against repositories you don't control, i.e. CI checkouts of third-party code or agent-driven clones, confirm your --repository flag is actually set, since several of these fixes only fully apply in that mode.
When to call us
If you're running MCP servers in production agent workflows and want a scoping and detection review before the next advisory lands, reach out through /contact or see how we approach agent security on the AI agents practice page.
