UTC
Medium

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
What it is

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.

What to do

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.

Affected
PackageRegistryAffectedFixed in
fastmcpPyPI>= 3.0.0, < 3.4.103.4.10
fastmcpPyPI>= 4.0.0, < 4.1.24.1.2
fastmcp-slimPyPI>= 3.0.0, < 3.4.103.4.10
fastmcp-slimPyPI>= 4.0.0, < 4.1.24.1.2
Downstream in the Official MCP Registry

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
All 30 servers on the trace →

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.

Sources: GitHub Advisory Database, reviewed and malware advisories (CC BY 4.0, https://github.com/advisories); advisories published by Cursor (https://github.com/cursor/cursor/security/advisories); advisories published by OpenClaw (https://github.com/openclaw/openclaw/security/advisories); advisories published by vLLM (https://github.com/vllm-project/vllm/security/advisories); advisories published by Open WebUI (https://github.com/open-webui/open-webui/security/advisories); advisories published by n8n (https://github.com/n8n-io/n8n/security/advisories); advisories published by Flowise (https://github.com/FlowiseAI/Flowise/security/advisories); advisories published by Langflow (https://github.com/langflow-ai/langflow/security/advisories); advisories published by the MCP Python SDK project (https://github.com/modelcontextprotocol/python-sdk/security/advisories); advisories published by MLflow (https://github.com/mlflow/mlflow/security/advisories); CISA Known Exploited Vulnerabilities catalog (CC0). Data as of 2026-11-22. ShieldMap describes how each problem works and how to fix it; it does not publish exploit code. Report a correction to [email protected].