FastMCP: Post-transform component authorization is skipped on direct calls
GHSA-7xgj-8392-5q4r · published 2026-10-23
- Severity
- Medium
- CVSS score
- 6.8
- Chance of exploitation (EPSS)
- No CVE
- Fixed in
- 4.1.2
A low-privilege caller can directly execute administrative tools hidden from listing, including their side effects and returned secrets. The same ordering flaw can expose protected resources, templates, or prompts.
Upgrade fastmcp to 4.1.2 or later, and fastmcp-slim to 4.1.2 or later. If you start it from an MCP config with npx or uvx, pin that version so an old cached copy is not used.
This report is accepted as a FastMCP authorization vulnerability. In supported configurations, a server transform can change the metadata used by a component's authorization policy. Direct lookups previously checked the original component but returned the transformed component without rechecking its policy. A client that knows the component identifier can invoke a tool or retrieve a resource or prompt that the configured policy denies. The fixes authorize the final transformed tools, resources, templates, and prompts. A denied concrete resource also shadows a matching resource template at its URI, preventing proxy templates from retrieving the same protected resource upstream.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| fastmcp | PyPI | >= 3.0.0, < 3.4.10 | 3.4.10 |
| fastmcp | PyPI | >= 4.0.0, < 4.1.2 | 4.1.2 |
| fastmcp-slim | PyPI | >= 3.0.0, < 3.4.10 | 3.4.10 |
| fastmcp-slim | PyPI | >= 4.0.0, < 4.1.2 | 4.1.2 |
30 registered MCP servers install an affected version today, by the dependency versions a fresh install resolves.
- ai.mcpcap/mcpcapfastmcp@3.2.4
- io.github.a2cr/a2cr-mcpfastmcp@3.4.2
- io.github.alex-feel/mcp-context-serverfastmcp@3.1.0
- io.github.ariffazil/arifos-mcpfastmcp@3.0.1
- io.github.ClickHouse/mcp-clickhousefastmcp@4.0.11
- io.github.docdyhr/macwhisper-mcp-serverfastmcp@4.1.0
- io.github.Dumdart/topicgatefastmcp@3.4.7
- io.github.forkflux/forkflux-mcpfastmcp@3.4.5
- io.github.jaimenbell/bus-mcpfastmcp@3.4.2
- io.github.jaimenbell/desktop-mcpfastmcp@3.4.2
- io.github.jaimenbell/discord-mcpfastmcp@3.4.2
- io.github.jaimenbell/github-mcpfastmcp@3.4.2
- CriticalMarimo: Pre-Auth Remote Code Execution via Terminal WebSocket Authentication BypassmarimoExploited
- CriticalLangflow CORS misconfiguration enables Account Takeover and RCElangflowExploited
- HighLiteLLM: MCP Authentication Bypass via OAuth2 Passthrough FallbacklitellmExploited
- HighLangflow: IDOR Vulnerability in `/api/v1/responses` Endpoint Allows Authenticated Attackers to Access Another User's FlowlangflowExploited
- CriticalTodoist MCP Server: Browser DNS rebinding lets websites write and delete Todoist data through local MCP server@doist/todoist-mcp
- CriticalLangflow: Unauthenticated Flow Execution via Webhook Authentication Bypasslangflow
- CriticalFastMCP OpenAPI Provider has an SSRF & Path Traversal Vulnerabilityfastmcp
- HighFastMCP: Missing Consent Verification in OAuth Proxy Callback Facilitates Confused Deputy Vulnerabilitiesfastmcp
- HighFastMCP OAuth Proxy token reuse across MCP serversfastmcp
- HighFastMCP updated to MCP 1.23+ due to CVE-2025-66416fastmcp
- HighFastMCP Auth Integration Allows for Confused Deputy Account Takeoverfastmcp
- MediumFastMCP MCP client wrappers construct M2M OAuth providers without issuer binding — client secret redirectable to attacker-advertised authorifastmcp, fastmcp-slim
The impact, patch and workaround text comes from the advisory, shortened (GitHub Advisory Database, CC BY 4.0). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.