Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconStand up malicious MCP server and AS shim
-
DeliveryAdvertise benign FastMCP proxy as its AS
-
ExploitLure victim to complete OAuth flow
-
InstallVictim consents, AS mints base_url-audience token
-
C2Extract token at malicious server
-
ExecuteReplay token to benign MCP server
-
ImpactAccess victim's tools and resources (HTTP 200)
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Authorization logic validation
MITRE ATT&CK
1 technique across 1 tactic: Privilege Escalation The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires (1) the target to run FastMCP OAuthProxy (e.g. GitHubProvider) in a configuration where its authorization server is reachable and reused, and (2) a victim to actively complete an OAuth authorization flow against an attacker-controlled MCP server that points at the benign proxy as its AS (CVSS UI:A confirms active user interaction is mandatory). Limiting factors: the attacker must host both a malicious MCP server and a malicious AS shim and convince the victim to authenticate through them; the OAuth consent screen displays the name of the genuinely intended MCP server, giving an attentive victim a chance to abort (CVSS AC:H reflects this added complexity). The attacker themselves needs no credentials or privileges on the target (PR:N). The flaw affects default OAuthProxy deployments - no special non-default feature toggle is needed beyond using the proxy - but multiple servers sharing one AS is what makes cross-server token replay valuable. |
| Impact | Signals conflict in instructive ways. The vendor CVSS 4.0 score is 7.4 (High) with VC:H/VI:H reflecting high confidentiality and integrity impact, but it also encodes AC:H and UI:A (Active) - exploitation is not trivial: the attacker must stand up a malicious AS/MCP server and socially engineer a victim into completing an OAuth flow with it, past a consent screen that displays the intended server's name (the reason the reporter downgraded severity to Medium). EPSS is essentially zero (0.01%, 2nd percentile) and there is no KEV listing, indicating no observed mass exploitation; this is a targeted, phishing-style attack rather than a wormable network bug. A functional PoC raises practical risk above the raw EPSS number. Net: a real authorization-design defect worth patching promptly for anyone running OAuthProxy-backed MCP servers, but not an emergency drop-everything network exploit. Note the AC:H/UI:A from CVSS aligns with the description's requirement that a victim actively complete an OAuth flow - the signals are internally consistent here. |
| Exploit ScenarioDerived | An attacker stands up a malicious MCP server and a malicious authorization-server shim that advertises a victim organization's benign FastMCP OAuth Proxy as its own AS. The attacker lures a victim into connecting and completing the OAuth flow; because the issued token's audience is the proxy base_url rather than the malicious resource, the attacker extracts the token and replays it against the legitimate MCP server, receiving HTTP 200 and accessing its tools and resources. A full PoC environment is published in the advisory. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv5 – Jun 30, 2026
Token audience confusion in the FastMCP OAuth Proxy (fastmcp < 2.14.2) lets a malicious MCP server harvest a victim's access/refresh tokens and replay them against benign MCP servers that share the same authorization server. The proxy ignores the client-supplied resource parameter and instead binds every token to the proxy's own base_url, so receiving servers cannot enforce audience validation. A working proof-of-concept environment is published, though EPSS is negligible (0.01%) and the issue is not in CISA KEV; publicly available exploit code exists.
Earlier versions of this analysis (4)
Token audience confusion in FastMCP's OAuth Proxy (fastmcp < 2.14.2) lets an attacker steal a victim's OAuth tokens and replay them against other benign MCP servers sharing the same authorization server. The server ignores the client-supplied resource parameter and instead binds every issued JWT to the proxy's configured base_url, so tokens carry no per-resource audience and cannot be validated by the receiving MCP server. A working PoC environment is published, but it is not in CISA KEV and EPSS risk is negligible (0.01%, 2nd percentile).
Token audience confusion in FastMCP's OAuth Proxy (fastmcp < 2.14.2) lets an attacker reuse a victim's OAuth tokens across MCP servers that share the same authorization server. Because the proxy ignores the client-supplied resource parameter and instead binds the JWT audience to the static base_url given at initialization, issued access and refresh tokens carry no per-server resource binding, so a malicious MCP server advertising the benign OAuth Proxy as its AS can harvest a token during a victim's OAuth flow and replay it against legitimate MCP servers. A working PoC is published in the advisory, no active exploitation is recorded (KEV=NO), and EPSS is very low at 0.01%.
Token audience confusion in FastMCP's OAuth Proxy (fastmcp < 2.14.2) lets an attacker steal a victim's access and refresh tokens and replay them against other MCP servers sharing the same authorization server. Because the proxy issues tokens for the configured base_url rather than the client-supplied resource parameter (CWE-863), a malicious MCP server advertising the benign OAuth Proxy as its authorization server can capture tokens that the legitimate server then accepts. There is no public exploit identified at time of analysis beyond the reporter's PoC, and EPSS exploitation probability is very low (0.01%).
While testing the OAuth Proxy implementation, it was noticed that the server does not properly respect the resource parameter submitted by the client in the authorization and token request. Instead
RemediationAI
Vendor-released patch: upgrade fastmcp to 2.14.2 or later, which is the fixed release per the GitHub advisory GHSA-5h2m-4q8j-pqpj and EUVD-2025-208759; the fix issues tokens bound to the resource value from the authorization URL so receiving servers can validate the audience. If you cannot upgrade immediately, the practical compensating control is to avoid sharing a single FastMCP OAuth Proxy authorization server across multiple independently-trusted MCP servers, so a token stolen at one server is not accepted by another (trade-off: loses SSO convenience across your MCP fleet). Operationally, instruct users to scrutinize the OAuth consent screen, which shows the name of the intended MCP server, and to abort flows initiated from untrusted servers - note this is a weak control, as the reporter explicitly states the consent screen does not constitute a proper mitigation. Advisory and details: https://github.com/PrefectHQ/fastmcp/security/advisories/GHSA-5h2m-4q8j-pqpj.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in pypi
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
FastMCP is a Python framework (pkg:pip/fastmcp) for building Model Context Protocol servers; its OAuthProxy component fronts an upstream OAuth authorization server (e.g. GitHubProvider) and issues JWTs to MCP clients. In src/fastmcp/server/auth/oauth_proxy.py the JWTIssuer is initialized with issuer=base_url and audience=base_url/mcp, hard-coding the audience to the proxy's configured base_url rather than the per-request resource value mandated by the MCP authorization spec (RFC 8707 Resource Indicators / token audience binding). This is a CWE-863 (Incorrect Authorization) flaw: because the token never records which resource it was minted for, any MCP server validating it cannot distinguish a token issued for itself from one issued for a different server using the same AS, defeating the Protected Resource Metadata protection.
Know when Python gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:A/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
Network attacker needs no privileges (PR:N) but must socially engineer a victim into completing an OAuth flow (UI:R, AC:H); stolen token grants access to a separate server, so S:C with high C/I impact and no availability effect.
Primary rating from Vendor (https://github.com/PrefectHQ/fastmcp).
CVSS VectorVendor: https://github.com/PrefectHQ/fastmcp
Lifecycle Timeline
8DescriptionCVE.org
While testing the OAuth Proxy implementation, it was noticed that the server does not properly respect the resource parameter submitted by the client in the authorization and token request. Instead of issuing the token explicitly for this MCP server, the token is issued for the base_url passed to the OAuthProxy during initialization.
Affected File: *https://github.com/jlowin/fastmcp/blob/main/src/fastmcp/server/auth/oauth_proxy.py#L828*
Affected Code:
self._jwt_issuer: JWTIssuer = JWTIssuer(
issuer=str(self.base_url),
audience=f"{str(self.base_url).rstrip('/')}/mcp",
signing_key=jwt_signing_key,
)Since the issued access and refresh tokens do not include information about the resource the token was issued for, it is impossible for the MCP server to properly verify whether the token was issued for it, hence violating the requirement of doing so demanded by the specification. Being able to verify whether the token was issued for the target MCP server enforces the protection offered by the, per MCP specification mandatory, Protected Resource Metadata OAuth extension.
Therefore, this misconfiguration exposes all MCP server setups using the FastMCP OAuth Proxy to an attack where an adversary creates a malicious MCP server that advertises the benign OAuth Proxy authorization server as its own authorization server. Once a victim completes an OAuth flow with this malicious MCP server, authenticating against the AS, the adversary can extract the token received at the malicious MCP server and use it to access other MCP servers (the benign ones) that also use the same AS, including the tools and resources they expose.
Steps to reproduce:
- Extract the provided PoC environment.
- Enter the *client_id* and *client_secret* of a GitHub App you control into the
mcp-server-proxy.pyscript. - Start the benign MCP server using an OAuth Proxy (in this case the *GitHubProvider*):
python3 mcp-server-proxy.py. - Start the malicious AS:
python3 mal_auth_server.py. - Start the malicious MCP server:
python3 attacker_server.py. - Connect the client to the malicious MCP server:
python3 client.py. - Complete the OAuth flow.
- Observe in the logs of the malicious MCP server that the request to the benign MCP server with the stolen token returned a 200 status code.
Impact
This vulnerability allows an adversary to steal a victim’s authentication material for a benign MCP server using the FastMCP OAuth Proxy. The severity of this issue was decreased to _Medium_ due to the consent screen showing the name of the MCP server the OAuth Proxy was intended for. However, a victim might not see it or get otherwise convinced by the attacker to ignore it, and overall this does not act as a proper mitigation for this issue.
Mitigation
To mitigate this vulnerability, it is recommended to issue tokens specifically for the MCP server submitted in the authorization URL’s resource GET parameter. In this way, the receiving MCP server will be able to properly verify that the token was indeed issued for it, allowing it to reject tokens stolen by an attack like the one demonstrated above.
Executive ViewAI
FastMCP OAuth Proxy versions before 2.14.2 fail to validate token audiences, allowing attackers to harvest and replay user credentials across multiple services sharing the same authorization server. Organizations running affected proxy versions face unauthorized access and data breach risks from compromised OAuth tokens.
Apply vendor patch: Upgrade fastmcp to version 2.14.2 or later.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t
BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser
pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi
The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python
BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica
OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph
pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.
Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301
In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse
Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to
Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/
pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne
EUVD-2025-208759
GHSA-5h2m-4q8j-pqpj
NVD
CVE.org
EPSS
VulDB
Exploit-DB