MCP Server v2.6.0 Released: Fixes Eight Security Vulnerabilities

MCP server suite v2.6.0 fixes eight security vulnerabilities across three servers and completes leftover fixes.
The official Model Context Protocol server suite has released v2.6.0, a security-focused update that fixes eight vulnerabilities in mcp-server-git, server-memory, and mcp-server-fetch, and completes two leftover fixes from v2.5.0. The Git server is the hardest hit, with six fixes mainly targeting out-of-bounds access, including Git LFS executing repository-configured programs, the --repository root being redirected, credential redaction being bypassed, and environment variables being expanded and read. memory fixes a temporary file race, fetch completes robots.txt matching for backslashes and path parameters, and filesystem hardens directory read checks only on Windows. The article also reminds users that semantic version sorting may cause package managers to skip upgrades, requiring explicit installation.
A Routine Upgrade with Security at Its Core
The official Model Context Protocol (MCP) server suite has released v2.6.0. Unlike feature iterations, the main theme of this release is security: it fixes eight vulnerabilities across three servers and completes two outstanding fixes left over from v2.5.0. The packages involved include mcp-server-git, @modelcontextprotocol/server-memory, and mcp-server-fetch, with @modelcontextprotocol/server-filesystem on Windows also included.
For teams using these servers to connect large models to local Git repositories, file systems, and memory graphs, this is a version that should be adopted as soon as possible.
What Was Fixed in Each Server
mcp-server-git: Six Vulnerabilities, Almost All Around Out-of-Bounds Access
The Git server is the hardest-hit area in this release. According to the release notes, the Git LFS filter previously read keys pointing to specified programs from the repository's own .git/config (lfs.extension, lfs.customtransfer, lfs.standalonetransferagent, etc.) and executed those programs under the server's privileges. After the fix, these keys are cleared in the repository scope, and LFS downloads are disabled via GIT_LFS_SKIP_SMUDGE=1.
The locking of the --repository root directory has also been hardened. Previously, a root directory whose .git file or commondir pointed elsewhere would be accepted as its own directory, causing tools like git_show to read content from other repositories; now the server records the root directory's Git directory at startup and only accepts linked worktrees and submodule directories that belong to itself or are confirmed by the main repository.
Credential leakage paths have also been closed: a remote name containing a tab character would misalign the URL column, and values not starting with a URL would skip redaction, which, combined with url.<base>.insteadOf in user configuration, could return a URL with credentials to the caller. Now remote names are compared against Git's own list from git remote, and any URL not at the start position is displayed as <redacted>.
There is another easily overlooked detail: repo_path was previously expanded by GitPython for $NAME / ${NAME} environment variables, and the error message when the path did not exist would echo the expanded value—effectively allowing a single tool call to read any environment variable of the server process. Now neither repo_path nor --repository performs variable expansion.
The Git LFS filter is an extension mechanism of Git Large File Storage that allows users to customize the transfer method for specific file types. Configuration keys such as lfs.extension and lfs.customtransfer are typically defined in the repository's .git/config to specify local programs to execute when checking out or pulling LFS objects. Because these keys reside in the repository scope rather than global configuration, once the MCP server executes Git commands in the repository context, a malicious repository could use them to trigger arbitrary program execution. This fix blocks this attack surface by clearing such keys in the repository scope and setting GIT_LFS_SKIP_SMUDGE=1 to disable the LFS download hook.
TOCTOU (Time-of-Check to Time-of-Use) is a classic class of race vulnerability: there is a time window between when a program checks the state of a resource (e.g., whether a file is empty) and when it actually uses that resource (e.g., reads the file content), during which an attacker can tamper with the resource to invalidate the check result. In the objects/info/alternates case, the file was empty when the server checked, but it was rewritten before Git looked up objects, causing git_show to return objects from another repository. The fix is to create a private object directory on each call and link only this repository's objects, so Git never reads the alternates file at all, thereby eliminating the time window.
Race and Timing Issues
The objects/info/alternates vulnerability is a classic TOCTOU (race between check and use): the file was empty when the server checked, but was rewritten before Git looked up objects, so git_show would return objects from another repository. The fix is to run Git on a private object directory on each call, linking only this repository's objects, so Git never reads the alternates file; without --repository, alternates still work as usual.
The git_merge issue is closer to everyday use: Git's --no-overwrite-ignore only takes effect on fast-forward merges; when merging diverged branches, ignored files like .env would be overwritten with the source branch's version and the merge would be reported as successful. The server now checks the paths to be written first, and if a conflict is found, refuses the merge without making any changes.
In addition, the --repository check was being re-executed after tools wrote to the worktree—this completes the fix for GHSA-9vjp-x34c-xg6v in v2.5.0, where checkout or merge could write configuration that moved the worktree outside --repository.
memory and fetch: Small Patches, Broad Surface
server-memory 2.2.2 fixes a race in saveGraph when writing temporary files: the temporary file was previously renamed by path and its mode set, so an account able to write to the graph directory could swap the temporary name for a symbolic link, causing the graph file's permissions to be applied to the link target. Now temporary files are created exclusively and written and permissioned through their own handle; saves whose temporary name has been replaced are rejected outright.
mcp-server-fetch completes the matching dimensions for robots.txt. Previously, forbidden paths were matched only by literal spelling and nginx/Apache-style origin parsing, missing servers that treat \ or %5C as separators (IIS, Windows backends) and Java Servlet containers that discard ; path parameters. Both interpretations are now checked.
robots.txt is a standard file used by websites to tell crawlers which paths are allowed or forbidden to fetch. As a fetching tool, mcp-server-fetch needs to comply with this protocol to avoid abuse. However, different servers parse paths differently: IIS and some Windows backends treat backslash \ or its encoded form %5C as a path separator, and Java Servlet containers may discard path parameters after a semicolon ;. If the fetching tool matches forbidden paths only by literal spelling, it could bypass robots.txt restrictions and access resources that should be forbidden. This fix completes checks for these parsing dimensions, making forbidden-path matching more comprehensive.
filesystem: A Narrow Gap on Windows
server-filesystem 2.4.1 only affects Windows: list_directory, list_directory_with_sizes, directory_tree, and search_files now check the directory path once before and once after reading; if a junction or symbolic link exists on the path, or the directory points elsewhere after reading, the operation is rejected outright with "Access denied - a directory on the path changed during the operation". The release notes also acknowledge the limitation—a directory that is swapped out and back during reading still cannot be detected on Windows; macOS and Linux behavior is unchanged.
Two Pitfalls When Upgrading
The first pitfall comes from the versioning scheme. TypeScript servers have migrated from date versions (2025.x, 2026.x) to semantic versioning, effective from 1.0.0. The problem is that package managers sort 2.2.2 and 2.4.1 below all 2025.x and 2026.x versions, so they will not proactively prompt an upgrade. Users still on date versions need to install explicitly:
npm install @modelcontextprotocol/server-memory@2.2.2
npm install @modelcontextprotocol/server-filesystem@2.4.1
The second pitfall is platform differences. The filesystem fix only covers Windows, and as the release notes state, detection blind spots remain; several fixes in the git server are also strongly tied to --repository mode, with different behavior when the parameter is not supplied. Before upgrading, it is worth checking against your own deployment method to confirm whether the fixes land on the paths you actually use.
Signals Worth Noting
This release also reveals the pace of evolution in the protocol ecosystem: server-everything 2.4.0 adds the ability to evict Streamable HTTP sessions based on idle state, and the expiry of request state after a 600-second TTL is now pinned by tests; the Events extension (poll and push) is offered on the 2026-07-28 version. At the same time, the release process itself is being completed—each server is registered with the MCP Registry at release time.
Interestingly, several of the eight vulnerabilities were reported by community members, and the release notes specifically list an acknowledgments roster. For a toolset that exposes high-privilege capabilities such as file systems, Git, and web fetching to models, the value of this external security feedback loop may be no less than that of any feature update.
Conclusion
v2.6.0 has no new-feature list, but every item fixed points to the same proposition: when MCP servers become the execution layer between models and real systems, boundary checks, credential redaction, and environment variable isolation must be designed from an attacker's perspective. It is recommended that all deployments using the above servers upgrade as soon as possible, and pay particular attention to cases where version sorting causes upgrades to be skipped.
Related articles

Michael Nielsen Takes Down His Classic Neural Network Textbook, Sparking Community Discussion
Michael Nielsen's classic free textbook Neural Networks and Deep Learning has been taken offline, sparking discussion on Hacker News about the reasons and impact.

Inside the AI Training Data Market: The Trade-off Between Exclusivity and Discounts
G2i founder Gabe Greenberg reveals the dual-track pricing of the AI training data market: labs pay a premium for exclusive data or accept discounts that allow others to buy it.

SessionGraph: Unifying All Coding Agent Sessions in One Interactive Graph
SessionGraph aggregates coding agent sessions into an interactive graph, helping developers review, debug, and manage AI coding workflows across sessions. This article examines its positioning, value, and open questions.