NewApp Monitoring is liveSign up free
AgentbeamBeta
AI agent vulnerability · FastMCP

GHSA-rcfx-77hg-w2wv: FastMCP updated to MCP 1.23+ due to CVE-2025-66416

high

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 mcp

An 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 mcp versions 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 entries