GHSA-rcfx-77hg-w2wv: FastMCP updated to MCP 1.23+ due to CVE-2025-66416
FastMCP before 2.14.0 allowed MCP Python SDK versions below 1.23, which are open to DNS rebinding (CVE-2025-66416). A website you visit can then call tools on an unauthenticated local FastMCP HTTP server. FastMCP itself has no flawed code here. Upgrade to FastMCP 2.14.0, which raises the SDK requirement.
Published Dec 26, 2025 · Analysis Nov 1, 2026
What an attacker can do
This advisory is a dependency bump. FastMCP does not use the affected SDK components directly, but until 2.14.0 it allowed mcp versions below 1.23.0. Those versions do not turn on DNS rebinding protection for HTTP-based servers.
In a rebinding attack, a malicious web page makes the victim's browser resolve the attacker's domain to 127.0.0.1 after the first request. The browser then treats requests to the local MCP server as same-origin and the page can send them freely. The attacker needs no account, but the user must visit the page while the server runs.
The SDK advisory says the affected setups are servers on streamable HTTP or SSE transport, bound to localhost, with no authentication and no TransportSecuritySettings. Servers on stdio are not affected. An attacker who gets through can call the server's tools and read its resources as the user. For a developer machine running an MCP server with file, database or shell tools, that means data theft or changes without the user clicking anything beyond opening the page. The SDK advisory rates confidentiality and integrity impact high.
Who is affected
pip package fastmcp below 2.14.0, where the resolved mcp SDK is below 1.23.0. Real exposure needs an HTTP or SSE server on localhost with no authentication. Stdio servers are not affected.
Check both packages:
pip show fastmcp mcpAn mcp version of 1.23.0 or higher removes the SDK-side exposure even if fastmcp is older, though upgrading fastmcp is the clean fix.
fastmcp
- Ecosystem
- PyPI
- Affected
- < 2.14.0
- Fixed in
- 2.14.0
- Check
pip show fastmcp
How to fix it
Upgrade to FastMCP 2.14.0 or later:
pip install --upgrade "fastmcp>=2.14.0"The SDK fix is in mcp 1.23.0: servers created with FastMCP() enable DNS rebinding protection by default when host is 127.0.0.1 or localhost. If you use StreamableHTTPSessionManager or SseServerTransport directly, set TransportSecuritySettings explicitly for any unauthenticated localhost server. The SDK advisory also recommends adding authentication to HTTP servers or using stdio.
How to tell if you were hit
Look in the server's access log for requests to the local port with a Host header that is not localhost or 127.0.0.1, or an Origin header from a site you do not recognise. Review tool-call history for calls you did not make while a browser was open. Beam records the MCP tool calls an agent makes on your machine, which helps separate agent calls from stray ones, but it does not see browser-originated requests.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
There was a recent CVE report on MCP: https://nvd.nist.gov/vuln/detail/CVE-2025-66416.
FastMCP does not use any of the affected components of the MCP SDK directly. However, FastMCP versions prior to 2.14.0 did allow MCP SDK versions <1.23 that were vulnerable to CVE-2025-66416. Users should upgrade to FastMCP 2.14.0 or later.
Credited to phvalguima.
Questions
- Is FastMCP code itself vulnerable?
No. The advisory says FastMCP does not use the affected SDK components directly. It only allowed vulnerable
mcpversions before 2.14.0.- Does stdio transport avoid the problem?
Yes. The SDK advisory says servers on stdio transport are not affected. The risk is for HTTP and SSE servers on localhost without authentication.
- What is the underlying CVE?
CVE-2025-66416, in the MCP Python SDK before 1.23.0: DNS rebinding protection was not enabled by default.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology
More FastMCP vulnerabilities
All FastMCP entriesGHSA-7xgj-8392-5q4r
FastMCP: Post-transform component authorization is skipped on direct calls
medium6.8Oct 23, 2026GHSA-vqqp-x5qm-5qp4
FastMCP MCP client wrappers construct M2M OAuth providers without issuer binding — client secret redirectable to attacker-advertised authorization server
medium5.9Oct 23, 2026CVE-2025-64340
FastMCP has a Command Injection vulnerability - Gemini CLI
medium6.7Mar 31, 2026CVE-2026-27124
FastMCP: Missing Consent Verification in OAuth Proxy Callback Facilitates Confused Deputy Vulnerabilities
high8.2Mar 31, 2026CVE-2026-32871
FastMCP OpenAPI Provider has an SSRF & Path Traversal Vulnerability
critical10.0Mar 31, 2026CVE-2025-69196
FastMCP OAuth Proxy token reuse across MCP servers
high7.4Mar 16, 2026
