Mcpm: FastMCP Auth Integration Allows for Confused Deputy Account Takeover
FastMCP's authentication integration with Entra ID allows the FastMCP server to act both as an OAuth client and authorization server. Due to Entra ID's lack of Dynamic Client Registration support, FastMCP uses a static app registration for authorization. After a user consents to this static client, Entra ID sets a persistent authorization cookie. An attacker controlling their own MCP client can exploit this by initiating authorization flows that reuse the victim's consented static client, potentially leading to a confused deputy scenario and account takeover.
AI Analysis
Technical Summary
FastMCP integrates with Entra ID for authentication, where the FastMCP server acts as both an OAuth client to Entra ID and an authorization server to MCP clients. Because Entra ID does not support Dynamic Client Registration, FastMCP uses a static app registration for authorization. Once a user consents to this static client, Entra ID sets a persistent browser cookie to remember authorization. An attacker with their own MCP client can initiate authorization requests that leverage the victim's consented static client, bypassing re-consent prompts and enabling a confused deputy attack that may result in account takeover.
Potential Impact
An attacker controlling their own MCP client can exploit the persistent consent cookie set by Entra ID for the FastMCP static client. This allows the attacker to reuse the victim's authorization state to gain unauthorized access, effectively resulting in an account takeover via a confused deputy attack. The impact includes unauthorized access to user accounts and potentially sensitive data accessible through the compromised authorization.
Mitigation Recommendations
A patch is available for this vulnerability. Users should apply the official fix provided by the FastMCP vendor to address the confused deputy issue. Until patched, review and restrict the use of static app registrations and consider additional validation of authorization requests to prevent reuse of consented authorization states across different MCP clients.
Mcpm: FastMCP Auth Integration Allows for Confused Deputy Account Takeover
Description
FastMCP's authentication integration with Entra ID allows the FastMCP server to act both as an OAuth client and authorization server. Due to Entra ID's lack of Dynamic Client Registration support, FastMCP uses a static app registration for authorization. After a user consents to this static client, Entra ID sets a persistent authorization cookie. An attacker controlling their own MCP client can exploit this by initiating authorization flows that reuse the victim's consented static client, potentially leading to a confused deputy scenario and account takeover.
CVSS v4.0
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
FastMCP integrates with Entra ID for authentication, where the FastMCP server acts as both an OAuth client to Entra ID and an authorization server to MCP clients. Because Entra ID does not support Dynamic Client Registration, FastMCP uses a static app registration for authorization. Once a user consents to this static client, Entra ID sets a persistent browser cookie to remember authorization. An attacker with their own MCP client can initiate authorization requests that leverage the victim's consented static client, bypassing re-consent prompts and enabling a confused deputy attack that may result in account takeover.
Potential Impact
An attacker controlling their own MCP client can exploit the persistent consent cookie set by Entra ID for the FastMCP static client. This allows the attacker to reuse the victim's authorization state to gain unauthorized access, effectively resulting in an account takeover via a confused deputy attack. The impact includes unauthorized access to user accounts and potentially sensitive data accessible through the compromised authorization.
Mitigation Recommendations
A patch is available for this vulnerability. Users should apply the official fix provided by the FastMCP vendor to address the confused deputy issue. Until patched, review and restrict the use of static app registrations and consider additional validation of authorization requests to prevent reuse of consented authorization states across different MCP clients.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- BREW-mcpm-GHSA-c2jp-c369-7pvx
- Osv Schema Version
- 1.7.3
- Ecosystems
- ["Homebrew"]
- Cvss Version
- 4.0
Threat ID: 6aac8e4855bf5e2cf5491402
Added to database: 09/18/2026, 01:05:12 UTC
Last enriched: 09/18/2026, 01:55:52 UTC
Last updated: 09/18/2026, 03:01:24 UTC
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.