- 7 min read
- 3 sources cited
- For Developers, AI makers, Businesses, AI enthusiasts
Overview
The Model Context Protocol (MCP) reference servers expose tools that an AI client can call to work with repositories, files, web pages and compressed resources. Because those tools run as a host process, anything a tool reads can become an input to the host operating system, and the server's own configuration can also become a path to command execution or file access outside the intended boundary.
The v2.4.0 and v2.5.0 releases of the reference server collection address that boundary. v2.4.0 states that it fixes six vulnerabilities in three servers; v2.5.0 states that it fixes eight vulnerabilities in three servers. The 14 total is the sum of those two published counts rather than a combined figure stated by the project, and the fixes correspond to 13 named advisories because one v2.5.0 fix is referenced only by an open issue. The earlier v2.3.0 release published seven packages and its release ledger contains no security-fix entries.
Why it matters
The clearest example is the Git server's treatment of read-only calls as passive inspection. Before the v2.4.0 fix, a read-only call such as git_status on an untrusted repository could run a command named in that repository's own.git/config, including core.fsmonitor, diff.external, hooks, filter and merge drivers, and signing, with the server's privileges. Every Git command now overrides those settings, and a Git older than 2.31, which would ignore the overrides, is refused.
The v2.5.0 fixes continue that work. A merge no longer starts git maintenance run --auto, because its garbage collection ran the commands named by a repository's gc.recentObjectsHook with the server's privileges; maintenance.auto is now false and gc.auto is 0 for every Git command the server runs. Lazy fetching of missing Git objects is turned off via GIT_NO_LAZY_FETCH=1, and a Git too old to honour that setting refuses repositories that declare a promisor remote, which prevents settings such as remote.<name>.uploadpack or core.sshCommand from launching a program during a read-only tool call. A filter or merge driver with an empty name is now also emptied, so a [filter ""] entry selected by filter= in.gitattributes can no longer run its command. A submodule's own configuration no longer runs programs: diff.submodule is set to short, drivers defined by a checked-out submodule are overridden, and a Git older than 2.33, which would not pass the overrides into a submodule, is refused for repositories with a checked-out submodule.
Path handling was the second class of issue. A crafted.git/index naming a path such as../outside/secret could make git_diff_unstaged and git_diff return that file's content and git_status report whether it exists; the index is now checked from its top before any tool reads it, and the untracked cache is turned off. The filesystem server had separate races in which a directory could be swapped for a symlink between an access check and the subsequent read, move or listing. In 2.3.0, read tools and file resources open a file relative to the directory that was checked and refuse FIFOs, sockets and devices; move_file moves only the source it checked. In 2.4.0, list_directory, list_directory_with_sizes, directory_tree and search_files list in place after the check, so a swapped directory cannot return names of entries outside the allowed directories.
The network-facing servers had address and policy bypasses. The fetch server's private-address guard read IPv6 site-local addresses in fec0::/10 as public, and now refuses them along with any IPv6 address outside global unicast that does not carry an IPv4 address. Its robots.txt matching now applies to the path the site will resolve as well as the path as written, so forms such as //private or /x/../private can no longer get past a Disallow: /private rule. The everything server's gzip-file-as-resource tool now checks the IPv4 address embedded in a NAT64 address in 64:ff9b::/96, which previously let a URL reach a private IPv4 address through a NAT64 gateway.
Context
The affected packages split across two ecosystems. The Git and fetch servers use calendar versioning on PyPI, with releases such as 2026.11.11 and 2026.11.18, while the TypeScript filesystem and everything servers moved from date versions to semantic versions at 1.0.0.
That version change creates an upgrade trap. Package managers rank 2.4.0 below every 2025.x and 2026.x version, so an installation on a date-versioned filesystem server will not be offered the semantic release as an upgrade; the release notes instruct users to install 2.4.0 explicitly.
The affected and fixed versions are listed in the release notes: mcp-server-git through 2026.11.11 is fixed in 2026.11.18; @modelcontextprotocol/server-filesystem in all versions before 2.4.0, and date versions 2025.1.14 through 2026.8.31, is fixed in 2.4.0; @modelcontextprotocol/server-everything through 2.3.0 is fixed in 2.3.1. For the earlier release, filesystem before 2.3.0 is fixed in 2.3.0, and mcp-server-git and mcp-server-fetch through 2026.11.4 are fixed in 2026.11.11.
Known, claimed, inferred
Known. v2.5.0 states that it fixes eight vulnerabilities in three servers and directs users to upgrade mcp-server-git to 2026.11.18, @modelcontextprotocol/server-filesystem to 2.4.0 and @modelcontextprotocol/server-everything to 2.3.1. v2.4.0 states that it fixes six vulnerabilities in three servers and directs users to upgrade @modelcontextprotocol/server-filesystem to 2.3.0, and mcp-server-git and mcp-server-fetch to 2026.11.11.
Inferred. Because the same pattern of overriding, disabling or refusing host features appears across the Git, filesystem, fetch and everything servers, MCP reference servers are being hardened as privileged code that handles untrusted input. Adopting these servers into an agent workflow therefore carries the risk profile of running a service against untrusted repositories and files, rather than that of a convenience utility. The shift to semantic versioning for the TypeScript servers also creates a rolling upgrade burden for deployments that previously tracked date versions.
The characterisations above come from the release notes' own descriptions, which include advisory identifiers and, for one Git fix, an open issue reference rather than an advisory number.
Opportunities
The fixes point to a product pattern beyond a one-off patch: treating each MCP tool call as untrusted input that can trigger operating-system or protocol features, and constraining the server accordingly. Teams that host MCP servers for multiple clients could adopt the same confinement model as a product feature, exposing per-directory access controls, refusing repositories and paths that rely on host features the server cannot safely neutralise, and treating read-only calls as fully untrusted input rather than as passive inspection.
The release notes also show the maintainers building support into the servers for version gates and feature refusals, such as refusing Git older than 2.31 for repository configuration overrides, Git older than 2.33 for repositories with a checked-out submodule, and a Git too old to honour GIT_NO_LAZY_FETCH for repositories that declare a promisor remote. That suggests a possible service offering: an MCP server review that maps each exposed tool to the operating-system or protocol features it can trigger, and reports the refusals and overrides needed to run safely.
For tool builders, the patches define concrete requirements to build against: operate relative to an already-checked directory rather than re-resolving a path later, re-read driver configuration after writes to the working tree, and check the address a request will actually connect to rather than only the hostname.
Risks
Several fixes are explicitly incomplete. In the Git server, the --repository confinement check is not yet repeated after a tool writes the working tree, so the fix that re-reads filter and merge drivers leaves that gap open. Windows coverage is partial in three places: filesystem directory listings are not yet anchored on Windows in 2.4.0, Windows directory junctions are not yet covered by --repository confinement in Git 2026.11.11, and the earlier filesystem read and write races are described as narrowed but not closed on Windows.
Operation also depends on the host Git version, since the server refuses repositories in cases where an older Git would ignore the safety overrides. Upgrading is not a single command for every affected package, because semantic versions rank below date versions, so a fleet update can leave older filesystem server builds in place if the package manager is left to resolve versions.
The release notes do not state whether the vulnerabilities were exploited in the wild, and they provide no severity scores, CVSS values or disclosure dates, so this information alone cannot be used to rank incident response or justify emergency changes.
Limitations & uncertainties
The release notes state a total of eight and six vulnerabilities, but no item states a total of 14, so that number is the sum of two release counts rather than a figure published as a combined total. The 14 counted fixes correspond to 13 named advisories, because one v2.5.0 fix carries an open issue reference (#5599) without an advisory number. No evidence item uses the collective label "command and path flaws"; the described issues range from program execution through repository configuration to directory and symlink handling, index paths, submodule configuration, private-address guards and robots.txt path matching.
The affected-version tables and the fix descriptions come from the same project release notes, so the claims are single-source and not independently corroborated here. No published third-party test report for these fixes is present, so there is no independent assessment of how well the mitigations work.
Evidence & sources
- 1modelcontextprotocol/servers v2.5.0●github.comretrieved Nov 24, 2026
- 2modelcontextprotocol/servers v2.4.0●github.comretrieved Nov 24, 2026
- 3modelcontextprotocol/servers v2.3.0●github.comretrieved Nov 24, 2026
Updates & corrections
- Updated
- First published
Found an error? Report it.