FastMCP client has a remote code execution vulnerability when parsing the tool output schema provided by the server
Remote code execution in FastMCP client when parsing a server-supplied tool output schema
When the FastMCP client parses the tool outputSchema provided by an MCP server, it evaluates the title in self-referencing branches of the schema as Python code, thereby executing attacker code with the client process's privileges. Affected versions are 2.10.0 through before 3.4.8, and 4.0.0a1 through before 4.0.11, fixed in 3.4.8 and 4.0.11 respectively; there is no fixed version for 2.x, so users must upgrade to 3.4.8 or higher. An attacker only needs to provide a server the client is allowed to use, with no need to touch the client host or trusted server configuration; agent hosts and gateways that connect to user-provided MCP servers are at highest risk. The PoC reproduces on fastmcp 3.3.1, 3.4.7, and 4.0.10, and tool calls still appear successful with no signal of execution.
The advisory lists affected and fixed versions and notes that agent hosts connecting to user-provided MCP servers are at highest risk, helping deployers determine upgrade priority.