
News
MCP Reference Servers 2.6.0 Patches Git, Memory, Fetch, and Windows Filesystem
Reference MCP servers 2.6.0 patch git command execution, credential leaks, a memory permission race, and a partial Windows directory fix.
The official MCP reference servers published v2.6.0 on November 27, 2026, with fixes for git command execution, credential and environment disclosure, a memory permission race, and a partial Windows filesystem check. Install the versions below. This is an upgrade for people running those reference servers, not a new MCP specification.
The release notes say v2.6.0 fixes eight vulnerabilities in three servers and completes two fixes that v2.5.0 left open. On git, a repository could cause tools to run programs named in its configuration when Git LFS was installed, read another repository, or overwrite an ignored local file such as .env. Separately, git_remote returned a credential from the user's own url.<base>.insteadOf configuration when a remote name or URL bypassed redaction, and a repo_path or --repository value was expanded so a missing-path error disclosed a server environment variable. On Windows, the filesystem directory check is only narrowed: a swap made and undone during the read is still not detected.
Upgrade these versions
| Package | Affected | Fixed in |
|---|---|---|
mcp-server-git (PyPI) |
through 2026.11.18 | 2026.11.27 |
@modelcontextprotocol/server-memory (npm) |
1.0.0 through 2.2.1 | 2.2.2 |
mcp-server-fetch (PyPI) |
2026.10.10 through 2026.11.18 | 2026.11.27 |
@modelcontextprotocol/server-filesystem (npm, Windows) |
through 2.4.0 | 2.4.1 |
Date-versioned npm releases will not offer the TypeScript fixes. The notes say those servers moved from date versions (2025.x, 2026.x) to semantic versions in 1.0.0, and package managers rank 2.2.2 and 2.4.1 below every 2025.x and 2026.x version. If you are on a date version of memory or filesystem, install explicitly:
npm install @modelcontextprotocol/server-memory@2.2.2
npm install @modelcontextprotocol/server-filesystem@2.4.1
The notes name the PyPI targets, mcp-server-git 2026.11.27 and mcp-server-fetch 2026.11.27, but do not include a one-line install command for them. Filesystem 2.4.1 is called out for Windows. macOS and Linux filesystem behavior is unchanged.
Git
mcp-server-git 2026.11.27 is the largest set of host-side fixes.
Git LFS no longer runs programs that a repository's configuration names (GHSA-6663-fm5v-gqm5). With Git LFS installed — the official Docker image installs it system-wide — the server kept the LFS filter from the user's own configuration. git_status, git_diff_unstaged, git_diff, git_add, git_checkout, and git_merge could then run those programs with the server's privileges. Those keys are now emptied at repository scope, and LFS downloads are turned off.
A --repository root can no longer be pointed at another repository (GHSA-3whj-m8jj-x97q). A root whose .git file names any other Git directory is refused. Previously that root was accepted as its own, so tools could serve another repository's content. Allowed Git directories are those recorded at startup: inside the root, or those of a linked worktree or submodule checkout that its main repository confirms.
git_remote no longer returns a credential through a crafted remote name or URL (GHSA-wvv2-676g-r57j). Remote names are matched against git remote's own list, and a value that holds a URL anywhere but at its start is withheld as <redacted>.
repo_path is taken literally (GHSA-f33v-89w7-f9vc). Neither repo_path nor --repository is expanded, so a missing-path error no longer returns an expanded path that discloses an environment variable of the server process.
Under --repository, objects are read only from that repository's own store (GHSA-5pwg-5xfw-x322). Each call runs Git on a private object directory that links only the repository's own objects, so a rewritten alternates file cannot make git_show return an object from another repository. Without --repository, alternates keep working.
git_merge refuses a merge commit that would overwrite ignored local files, such as .env, and changes nothing (GHSA-qf89-h82f-h5r5). The notes say Git honors --no-overwrite-ignore only on a fast-forward, so a merge of diverged branches could replace an ignored file and report success. The server now checks incoming paths first.
The --repository check is repeated after a tool writes the working tree. That completes GHSA-9vjp-x34c-xg6v, left open in v2.5.0. A checkout or merge can write configuration that moves the working tree outside --repository. git_checkout, git_merge, and the abort after a conflict now check again after writing, and if the check fails they stop without running another Git command.
Memory and fetch
@modelcontextprotocol/server-memory 2.2.2 stops a saveGraph temporary-file race from applying the graph file's mode to a file outside the memory path (GHSA-48j5-hj63-c82c). The temporary file is created exclusively and written and set through its own handle. A save whose temporary name was replaced is refused.
mcp-server-fetch 2026.11.27 completes an earlier robots.txt fix (GHSA-g7v6-hfx3-8rv6, completing GHSA-3rxj-6jhw-qfv7). Rules are now also matched against backslash and path-parameter spellings — origins that read a backslash as a separator, and origins that drop semicolon path parameters — in addition to the path as spelled and as nginx- or Apache-style origins resolve it.
The Windows directory race is only narrowed
On Windows, @modelcontextprotocol/server-filesystem 2.4.1 checks a listed directory before and after the read. This narrows the gap left by GHSA-rq2p-q7c4-6g27 in v2.4.0. list_directory, list_directory_with_sizes, directory_tree, and search_files refuse a path with a junction or symlink on it, or one that names a different directory after the read, and return "Access denied - a directory on the path changed during the operation".
The notes are explicit that this is not a full close. A swap made and undone while the directory is being read is still not detected on Windows.
The same release also published @modelcontextprotocol/server-everything 2.4.0 and mcp-server-time 2026.11.27. Sequential thinking stayed at 2.2.0. Time's listed change keeps the host tzdata path out of invalid-timezone errors; it is not part of the eight vulnerabilities. The v2.6.0 merge into main is credited to cliffhall, who also authored the security fixes in the notes.
If you run these reference servers for local git, files, memory, or fetch, install the fixed versions in the table. On a 2025.x or 2026.x npm date version, use the explicit install commands — a routine upgrade will not offer 2.2.2 or 2.4.1. On Windows, treat the filesystem directory check as a narrower guard, not a closed race, and read the v2.6.0 notes for the package table and the remaining gap.
Sources
- modelcontextprotocol/servers v2.6.0 github.com