{"slug": "mcp-reference-server-v2-5-0-security-updates-address-eight-vulnerabilities", "title": "MCP Reference-Server v2.5.0 Security Updates Address Eight Vulnerabilities", "summary": "The Model Context Protocol reference-server v2.5.0 release patches eight vulnerabilities across three server packages: mcp-server-git (affected through 2026.11.11, fixed in 2026.11.18), @modelcontextprotocol/server-filesystem (affected before 2.4.0 and in date versions 2025.1.14 through 2026.8.31, fixed in 2.4.0), and @modelcontextprotocol/server-everything (affected through 2.3.0, fixed in 2.3.1). Six Git advisories are addressed by setting maintenance.auto=false and gc.auto=0, enforcing GIT_NO_LAZY_FETCH=1, clearing empty-name filter and merge drivers, validating index paths, forcing diff.submodule=short, and refusing Git versions older than 2.33 for repositories with checked-out submodules. Because the filesystem package moved from date-based versioning to semantic versioning at 1.0.0, package managers rank 2.4.0 below every 2025.x and 2026.x version, so users must run `npm install @modelcontextprotocol/server-filesystem@2.4.0` to upgrade.", "body_md": "The [Model Context Protocol (MCP)](https://forkast.news/glossary/mcp-security/) [reference-server v2.5.0 release](https://github.com/modelcontextprotocol/servers/releases/tag/v2.5.0) introduces security updates across three distinct server packages. These updates strengthen security boundaries within the Git, filesystem, and everything servers. This guidance provides a technical overview of the necessary upgrades and the specific mechanics of the addressed vulnerabilities.\n\n## Package Upgrade Requirements\n\nOperators should verify their current versions against the following affected and fixed ranges:\n\n- **mcp-server-git** : Affected through 2026.11.11; fixed in 2026.11.18.\n- **@modelcontextprotocol/server-filesystem** : Affected in all versions before 2.4.0 and date versions 2025.1.14 through 2026.8.31; fixed in 2.4.0.\n- **@modelcontextprotocol/server-everything** : Affected through 2.3.0; fixed in 2.3.1.\n\nA specific upgrade challenge exists for the filesystem package. Because the project previously used date-based versioning (e.g., 2025.x, 2026.x) and transitioned to semantic versioning at 1.0.0, package managers rank the new 2.4.0 version below every 2025.x and 2026.x version. Consequently, these will not be offered as automatic upgrades for installations using date-based versioning. To update, users must run: `npm install @modelcontextprotocol/server-filesystem@2.4.0`.\n\n## Git Server Security Mechanics\n\nThe release addresses six Git-related advisories by tightening how the server interacts with repository configurations:\n\n- **Maintenance and Garbage Collection** : Previously, successful merges could trigger automatic maintenance and a repository’s`gc.recentObjectsHook` , potentially executing hooks with server privileges. The update sets`maintenance.auto=false` and`gc.auto=0` for all Git commands. ([Maintenance fix](https://github.com/modelcontextprotocol/servers/security/advisories/GHSA-h2g3-rwxm-xfm3) )\n- **Lazy Fetching** : Lazy fetching is the process of retrieving missing objects on demand. Previously, repository configuration could cause a read-only Git tool to start a program during this process. The server now sets`GIT_NO_LAZY_FETCH=1` and rejects promisor remotes if the Git version is too old to support this flag. ([Fetch fix](https://github.com/modelcontextprotocol/servers/security/advisories/GHSA-87qg-cmw8-jc5m) )\n- **Driver Hardening** : An included configuration file could be created by a merge or checkout and activate a filter or merge driver on a subsequent Git process. The server now rereads drivers before executing Git commands. Note that the`--repository` confinement check is not yet repeated after such a write. ([Driver fix](https://github.com/modelcontextprotocol/servers/security/advisories/GHSA-9vjp-x34c-xg6v) )\n- **Empty-Name Drivers** : Git accepts an empty driver name, which could be exploited. The server now explicitly clears empty-name filter and merge drivers. ([Empty-name fix](https://github.com/modelcontextprotocol/servers/security/advisories/GHSA-pm7p-vphh-2cg7) )\n- **Index Path Validation** : A crafted index entry outside the working tree could make read-only diff tools return file contents and`git_status` disclose path existence under`--repository` . The server now validates index paths and disables the untracked cache. ([Index fix](https://github.com/modelcontextprotocol/servers/security/advisories/GHSA-r2q8-f657-4r56) )\n- **Submodule Configuration** : Submodule configuration could run programs in nested operations. The update forces`diff.submodule=short` , overrides drivers, and refuses Git versions older than 2.33 for repositories with checked-out submodules. ([Submodule fix](https://github.com/modelcontextprotocol/servers/security/advisories/GHSA-8wv7-r664-7594) )\n\n## Filesystem and Everything Server Fixes\n\nThe [filesystem server](https://github.com/modelcontextprotocol/servers/security/advisories/GHSA-rq2p-q7c4-6g27) update addresses a vulnerability where directory listing functions—specifically `list_directory`, `list_directory_with_sizes`, `directory_tree`, and `search_files`—could follow a symlink swap. A symlink swap occurs when a directory is replaced by a symbolic link after validation, potentially returning entries outside the intended scope. The fix anchors these listings on Linux and macOS; however, the release notes specify that listings are not yet anchored on Windows.\n\nThe [everything server](https://github.com/modelcontextprotocol/servers/security/advisories/GHSA-38j4-j742-j7r3) fix addresses a NAT64-related issue. NAT64 is a mechanism that allows IPv6-only networks to communicate with IPv4-only servers. Previously, the `gzip-file-as-resource` feature treated certain IPv6 addresses in the `64:ff9b::/96` range as public, which could allow a URL to reach a private IPv4 address when using a NAT64 gateway. The update now correctly validates the embedded IPv4 address.", "url": "https://wpnews.pro/news/mcp-reference-server-v2-5-0-security-updates-address-eight-vulnerabilities", "canonical_source": "https://forkast.news/mcp-reference-server-v2-5-0-security-updates-address-eight-vulnerabilities/", "published_at": "2026-11-21 13:44:22+00:00", "updated_at": "2026-11-21 14:11:38.503600+00:00", "lang": "en", "topics": ["ai-agents", "agent-protocols", "ai-safety", "ai-tools"], "entities": ["Model Context Protocol", "mcp-server-git", "@modelcontextprotocol/server-filesystem", "@modelcontextprotocol/server-everything", "Git", "npm"], "also_reported_by": [], "takeaway": "MCP reference-server v2.5.0 fixes eight vulnerabilities, but filesystem users on date-based versions must install @modelcontextprotocol/server-filesystem@2.4.0 explicitly because semver ranks it below every 2025.x and 2026.x release.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/mcp-reference-server-v2-5-0-security-updates-address-eight-vulnerabilities", "markdown": "https://wpnews.pro/news/mcp-reference-server-v2-5-0-security-updates-address-eight-vulnerabilities.md", "text": "https://wpnews.pro/news/mcp-reference-server-v2-5-0-security-updates-address-eight-vulnerabilities.txt", "jsonld": "https://wpnews.pro/news/mcp-reference-server-v2-5-0-security-updates-address-eight-vulnerabilities.jsonld"}}