GHSA-vqqp-x5qm-5qp4: FastMCP MCP client wrappers construct M2M OAuth providers without issuer binding — client secret redirectable to attacker-advertised authorization server
- Identifier
- GHSA-vqqp-x5qm-5qp4
- Published
- Record updated
- Affected
- fastmcp-slim >= 4.0.0a1, < 4.1.2
- fastmcp >= 4.0.0a1, < 4.1.2
- Fixed in
- 4.1.2
- fastmcp-slim 4.1.2 released October 20, 2026, 3 days before disclosure
- fastmcp 4.1.2 released October 20, 2026, 3 days before disclosure
Summary
FastMCP's ClientCredentialsOAuthProvider and PrivateKeyJWTOAuthProvider (fastmcp and fastmcp-slim 4.0.0–4.1.1) lack issuer binding, so an untrusted or compromised MCP server can advertise a different authorization server and receive the client secret or a signed assertion. The flaw was introduced in 4.0.0a1; 3.x is not affected.
Mitigation
Fixed in FastMCP 4.1.2, which adds an issuer parameter to both providers and requires MCP SDK 2.2.0. Configure issuer with the identifier of the authorization server that issued the credentials, since omitting it remains supported but emits MCPDeprecationWarning. Rotate client secrets or other reusable credentials that may already have been sent to an untrusted endpoint.
Affected packages in the Exposure Registry
Matched by package name and ecosystem. Each entry shows whether the package delegates to a language model and how many tracked packages depend on it.
- fastmcpPyPILLM dependency since 2024-11-30 · 16 tracked dependents
- fastmcp-slimPyPILLM dependency since 2026-05-11 · 4 tracked dependents
Topics
Related items
- MediumTrained to betray: How post-training supply chain attacks hijack coding agentsSimilar attack · Microsoft Security Blog
- MediumHackers stole AI credentials to get $740,000 in free compute; Railway picked up the billSimilar attack · CSO Online
- HighCVE-2026-65820: aeon GitHub Actions workflow exposes tokens to fork pull requestsSimilar attack · NVD/CVE Database
- MediumRewriting less than 10 neurons in an LLM can turn it into a sleeper backdoorSimilar attack · CSO Online
- InfoHijacking a Trusted LLM in Real-World Quantized Deployments Only Requires a Disguised AdapterSimilar attack · Arxiv (cs.CR + cs.CL + cs.LG)