Packages
MCP Reference Servers v2.5.0 & SDK v2: Security Patches, Date-Version Trap, and Migration
Across v2.4.0 (Nov 11, 2026) and v2.5.0 (Nov 18, 2026), the official Model Context Protocol reference servers patched 14 vulnerabilities across mcp-server-git, @modelcontextprotocol/server-filesystem, mcp-server-fetch, and @modelcontextprotocol/server-everything. Alongside MCP Python SDK v2.3.0 and TypeScript SDK v2.4.0, teams face an npm semver trap where 2026.8.31 outranks 2.4.0, plus major stateless 2026-07-28 protocol migration rules.
8 min read
MCP Reference Servers v2.5.0 & SDK v2: Security Patches, Date-Version Trap, and Migration
Executive Summary
- Featured packages & verified versions (as of November 23, 2026): Across the Model Context Protocol (MCP) ecosystem on npm and PyPI, the official reference servers reached v2.5.0 (November 18, 2026), shipping
@modelcontextprotocol/server-filesystem@2.4.0,@modelcontextprotocol/server-everything@2.3.1,mcp-server-git==2026.11.18, andmcp-server-fetch==2026.11.18, built atop MCP Python SDK v2.3.0 (October 2, 2026) and MCP TypeScript SDK v2.4.0 (October 23, 2026). - 14 security vulnerabilities patched in November 2026: Reference servers
v2.4.0(November 11, 2026) fixed 6 advisories andv2.5.0(November 18, 2026) fixed 8 more—eliminating arbitrary command execution via untrusted.git/configor submodules, symlink directory-swap races, and NAT64/IPv6 SSRF bypasses (GitHub Releases, MCP Security Update). - Critical npm date-version upgrade trap: Because TypeScript reference servers switched from calendar-date versions (
2025.1.14–2026.8.31) to semantic versions (1.0.0+),npmranks2026.8.31above2.4.0, so genericnpm updatecommands silently leave vulnerable2026.xbuilds installed unless you pin@2.4.0explicitly (GitHub Releases). - Stateless
2026-07-28SDK split: TypeScript SDK v2 replaces@modelcontextprotocol/sdkwith@modelcontextprotocol/serverand@modelcontextprotocol/client(so Dependabot/Renovate will not flag v1->v2 automatically), while Pythonmcpv2 renamesFastMCPtoMCPServerand introduces a unifiedClient(TypeScript Migration Guide, Python Migration Guide).
Adoption Telemetry & Version Changelog
Release Timeline and Runtime Floors
The Model Context Protocol ecosystem underwent a coordinated architectural shift in the second half of 2026 to support the stateless 2026-07-28 protocol specification alongside 2025-11-25 backward compatibility:
- July 28, 2026 —
mcp v2.0.0(Python) &2026-07-28Spec: Introduced stateless request/response execution (eliminating mandatoryinitializeandMcp-Session-Idheaders on modern connections),server/discover,subscriptions/listen, and OpenTelemetry tracing by default (MCP Python SDK Releases). - September 7 & October 2, 2026 —
mcp v2.2.0&v2.3.0(PyPI): Added origin-restricted HTTP redirects, 30-minute idle session expiry (with a 10,000-session cap) for legacy stateful HTTP servers,httpx2>=2.10.0requirement,max_sse_event_size(1 MiBdefault), andHeaderMismatch(-32020) auto-retry (MCP Python SDK Releases). - October 23, 2026 —
@modelcontextprotocol/server@2.4.0&client@2.4.0(npm): Added Skills over MCP (SEP-2640viaext/skills), opt-inscopeForRefreshfor Microsoft Entra ID (AADSTS90009), andfast-uri 3.1.8strict JSON Schema URI validation (MCP TypeScript SDK Releases). - November 11 & November 18, 2026 — Reference Servers
v2.4.0&v2.5.0: Hardened local and HTTP reference servers across 14 GHSA advisories, raisedmcp-server-fetch's Python floor to 3.11.5 (to dropsoupsieve 2.10), and required Git 2.33+ for repositories with checked-out submodules (MCP Servers Releases).
For Node.js deployments, the maintainers explicitly warn that TypeScript MCP servers rely on the host Node.js CA bundle: operators must run Node.js 24.22.1+ or 26.12.1+ (following the October 2026 eMudhra intermediate CA compromise and TLS/DNS CVE fixes), while Python mcp-server-fetch requires certifi >= 2026.10.23 (MCP Servers Releases).
Security Patches, Breaking Changes & Internals
All 14 Vulnerabilities Fixed Across v2.4.0 and v2.5.0
Security patches in v2.4.0 (November 11, 2026) and v2.5.0 (November 18, 2026) target real-world agentic attack surfaces—particularly untrusted repositories, symlink races, and SSRF via non-standard IPv6 encodings (MCP Servers Releases, MCP Security Update):
| Package | Advisory ID | Release | Fixed In | Root Cause & Remediation |
|---|---|---|---|---|
mcp-server-git |
GHSA-6hqx-gqrx-c5r2 |
v2.4.0 |
2026.11.11 |
.git/config (core.fsmonitor, diff.external, hooks) ran commands during read-only calls; now overridden (requires Git >=2.31) |
mcp-server-git |
GHSA-q74p-4wrc-q7w6 |
v2.4.0 |
2026.11.11 |
--repository confinement bypassed via objects/info/alternates, linked worktrees, and Git symlinks |
mcp-server-git |
GHSA-h2g3-rwxm-xfm3 |
v2.5.0 |
2026.11.18 |
git_merge triggered git maintenance run --auto / gc.recentObjectsHook; maintenance.auto=false and gc.auto=0 enforced |
mcp-server-git |
GHSA-87qg-cmw8-jc5m |
v2.5.0 |
2026.11.18 |
Promisor remote lazy-fetching invoked remote.<name>.uploadpack / core.sshCommand; GIT_NO_LAZY_FETCH=1 enforced |
mcp-server-git |
GHSA-9vjp-x34c-xg6v |
v2.5.0 |
2026.11.18 |
Filter/merge drivers written during git_checkout/git_merge could execute on git merge --abort; drivers re-read after writes |
mcp-server-git |
GHSA-pm7p-vphh-2cg7 |
v2.5.0 |
2026.11.18 |
Empty-named [filter ""] drivers in .gitattributes escaped clearing; now cleared |
mcp-server-git |
GHSA-r2q8-f657-4r56 |
v2.5.0 |
2026.11.18 |
Crafted .git/index entries (../outside/secret) leaked file contents in git_diff / git_status; index validated upfront |
mcp-server-git |
GHSA-8wv7-r664-7594 |
v2.5.0 |
2026.11.18 |
diff.submodule=diff ran submodule-local drivers; forced diff.submodule=short (requires Git >=2.33 for submodules) |
@modelcontextprotocol/server-filesystem |
GHSA-p9cv-8g75-4xcg |
v2.4.0 |
2.3.0 |
Symlink race between path check and read on Linux/macOS; reads now anchor to checked directory and block FIFOs/devices |
@modelcontextprotocol/server-filesystem |
GHSA-7m4x-rv66-mxhh |
v2.4.0 |
2.3.0 |
move_file source directory symlink swap; source now moved out of checked directory first |
@modelcontextprotocol/server-filesystem |
GHSA-rq2p-q7c4-6g27 |
v2.5.0 |
2.4.0 |
Symlink race in list_directory, directory_tree, and search_files; directory listings anchored in place (Linux/macOS) |
mcp-server-fetch |
GHSA-3rxj-6jhw-qfv7 |
v2.4.0 |
2026.11.11 |
IPv6 site-local fec0::/10 and non-global-unicast addresses treated as public; now blocked |
mcp-server-fetch |
GHSA-f9hh-cmx9-2f23 |
v2.4.0 |
2026.11.11 |
//private or /x/../private bypassed robots.txt Disallow: /private; path normalization aligned |
@modelcontextprotocol/server-everything |
GHSA-38j4-j742-j7r3 |
v2.5.0 |
2.3.1 |
gzip-file-as-resource treated NAT64 64:ff9b::/96 addresses as public instead of checking embedded IPv4 |
Residual Platform Caveats: Per the MCP Security Update and v2.5.0 release notes, directory-listing anchoring (GHSA-rq2p-q7c4-6g27) and directory-junction checks in mcp-server-git (#5520) remain incomplete on Windows. Teams running untrusted repositories on Windows should isolate servers inside containers or non-privileged accounts.
Breaking Changes in Python SDK v2.3.0 and TypeScript SDK v2.4.0
Beyond server patches, upgrading application code to MCP SDK v2 introduces breaking API and schema rules:
flowchart LR
A["v1 Client / Server (@modelcontextprotocol/sdk or mcp<2)"] --> B["Run Codemod / Update Imports"]
B --> C{"Protocol Era"}
C -->|2025-11-25 Legacy| D["Stateful HTTP (30m idle expiry, 10k cap)"]
C -->|2026-07-28 Modern| E["Stateless Per-Request (server/discover, no initialize)"]
E --> F["Enforce Origin Redirects, Issuer Validation & Schema Checks"]- Python
mcp v2.3.0(#3620,#3628,#3630): Tools with invalidx-mcp-headerannotations (such asstr | Noneorfloatinstead of plainstr,int, orbool) now raiseInvalidSignatureat registration rather than failing silently. Outbound2025-11-25requests omit empty_meta: {}andparams, so middleware seesctx.paramsasNone. - TypeScript
v2.4.0(#2762,#3081,#3083): BundledAjvupgrades tofast-uri 3.1.8, rejecting$idor$refstrings containing invalid URI schemes (e.g.,my_tool:output). Meanwhile,x-mcp-headeronnumber-typed parameters is rejected with JSON-RPC-32020(usez.int()instead).
// TypeScript SDK v2: Stateless 2026-07-28 + 2025-era compatibility via factory
import { McpServer, createMcpHandler } from "@modelcontextprotocol/server";
import { z } from "zod";
function buildServer() {
const server = new McpServer({ name: "audit-tools", version: "2.4.0" });
server.registerTool(
"check_status",
{
description: "Verify service health with integer header parameter",
inputSchema: {
regionCode: z.int().describe("Numeric region identifier"),
},
},
async ({ regionCode }) => ({
content: [{ type: "text", text: `Region ${regionCode}: healthy` }],
})
);
return server;
}
// Serves 2026-07-28 per-request and 2025-era stateless clients by default
export const handler = createMcpHandler(buildServer);
Ecosystem Comparison & Upgrade Checklist
MCP v1.x vs. v2.x SDK Architecture
| Dimension | Legacy v1.x (@modelcontextprotocol/sdk / mcp<2) |
Modern v2.x (@modelcontextprotocol/server@2.4.0 / mcp==2.3.0) |
|---|---|---|
| Supported Spec | Up to 2025-11-25 only |
2026-07-28 (stateless) + 2025-11-25 fallback |
| Package Layout (TS) | Monolithic @modelcontextprotocol/sdk |
Split: server, client, core, node, codemod |
| Schema Validation (TS) | Zod-only | Standard Schema (Zod 4.2+, Valibot, ArkType) |
| HTTP Session Model | Stateful (initialize + Mcp-Session-Id) |
Stateless per-request (server/discover), no session affinity |
| Maintenance Status | Maintenance mode (security/critical fixes only) | Active development (Skills SEP-2640, OTel, Resolve) |
Safe Pinning & Upgrade Commands (Defeating the Date-Version Trap)
Because npm sorts 2026.8.31 higher than 2.4.0, never rely on npm update or ^ ranges when upgrading @modelcontextprotocol/server-filesystem or server-everything (MCP Servers Releases, MCP Security Update):
- Pin TypeScript reference servers explicitly:
Fornpm install @modelcontextprotocol/server-filesystem@2.4.0 @modelcontextprotocol/server-everything@2.3.1 npm ls @modelcontextprotocol/server-filesystemnpxhost configs, update"args"to["-y", "@modelcontextprotocol/server-filesystem@2.4.0", "/path/to/allowed-dir"]. - Upgrade Python reference servers in the exact launcher environment:
python -m pip install --upgrade "mcp-server-git==2026.11.18" "mcp-server-fetch==2026.11.18" # Or for uvx / uv tool: uv tool install --force "mcp-server-git==2026.11.18" uv tool install --force "mcp-server-fetch==2026.11.18" - Migrate TS SDK v1 projects on a clean branch:
Run
npx @modelcontextprotocol/codemod@2.4.0 v1-to-v2from the repository root, search for// @mcp-codemod-errormarkers, and verifynode -vreports>=24.22.1or>=26.12.1.
Frequently Asked Questions
1. Why didn't npm update upgrade my @modelcontextprotocol/server-filesystem package from 2026.8.31?
The TypeScript reference servers switched from calendar-date versioning (2025.x, 2026.x) to semantic versioning (1.0.0+) in October 2026. Because npm ranks 2026.8.31 numerically above 2.4.0, you must install @modelcontextprotocol/server-filesystem@2.4.0 explicitly (MCP Servers Releases).
2. Will Dependabot or Renovate notify me about MCP TypeScript SDK v2?
Not automatically. Because v2 ships under new package names (@modelcontextprotocol/server and @modelcontextprotocol/client) rather than a 2.0.0 bump on @modelcontextprotocol/sdk, dependency scanners watching the old package name will report v1 as up to date (MCP TypeScript Migration Guide).
3. Was disabling write tools in mcp-server-git enough to block GHSA-6hqx-gqrx-c5r2?
No. Even read-only operations such as git_status on an untrusted repository could execute commands defined in .git/config (core.fsmonitor, diff.external, or hooks) before 2026.11.11 (MCP Security Update). Upgrade to 2026.11.18 and ensure Git 2.33+ is installed.
4. Does installing Python mcp v2.3.0 break existing 2025-11-25 MCP clients?
No. Both Python mcp v2.3.0 and TypeScript @modelcontextprotocol/server@2.4.0 serve 2026-07-28 and 2025-11-25 clients from the same server entrypoint, though v2.2.0+ enforces a 30-minute idle timeout and 10,000-session cap on legacy stateful HTTP connections (MCP Python SDK Releases).
5. What Python and Node.js runtime versions are required for the November 2026 updates?
mcp-server-fetch 2026.11.18 raises its Python floor to 3.11.5+ and requires certifi >= 2026.10.23, while TypeScript servers should run on Node.js 24.22.1+ or 26.12.1+ to include October 2026 CA and TLS security patches (MCP Servers Releases).
Sources
- Model Context Protocol — Reference Servers Releases (
v2.4.0Nov 11, 2026 &v2.5.0Nov 18, 2026): https://github.com/modelcontextprotocol/servers/releases - Model Context Protocol — Python SDK Releases (
v2.0.0–v2.3.0, Oct 2, 2026): https://github.com/modelcontextprotocol/python-sdk/releases - Model Context Protocol — TypeScript SDK Releases (
v2.4.0, Oct 23, 2026): https://github.com/modelcontextprotocol/typescript-sdk/releases - ModelContextProtocol.info — MCP Reference Server Security Update: Versions and Upgrade Steps (November 17, 2026): https://modelcontextprotocol.info/blog/reference-servers-security-update-2026-11/
- Model Context Protocol Docs — TypeScript SDK v1.x to v2 Migration Guide: https://ts.sdk.modelcontextprotocol.io/v2/migration/upgrade-to-v2
- Model Context Protocol Docs — Python SDK v1 to v2 Migration Guide: https://py.sdk.modelcontextprotocol.io/migration/