CVE-2025-69196: FastMCP OAuth Proxy token reuse across MCP servers
FastMCP's OAuth Proxy before 2.14.2 ignores the client's resource parameter and issues tokens whose audience is the proxy's base_url. A malicious MCP server that points to the same OAuth Proxy as its authorization server can capture a victim's token and replay it against benign servers behind that proxy. Upgrade fastmcp to 2.14.2.
Published Mar 16, 2026 · Analysis Oct 31, 2026
What an attacker can do
In src/fastmcp/server/auth/oauth_proxy.py, the JWTIssuer is built with issuer set to base_url and audience set to base_url plus /mcp. The tokens carry no record of which MCP server they were requested for, so a receiving server cannot check that a token was meant for it. That breaks the audience binding the MCP authorization specification requires (CWE-863).
The attack: an adversary runs a malicious MCP server and a fake authorization server, and advertises the benign OAuth Proxy as its authorization server. A victim connects a client to the malicious server and completes the OAuth flow. The attacker keeps the access token the client sends to their server and uses it on the benign MCP servers that use the same proxy. The advisory's proof of concept, with a GitHubProvider, got a 200 response from the benign server with the stolen token.
The attacker thus reaches every tool and resource the benign server exposes, as the victim. The victim must take part in the flow, which is why the vector has user interaction and high complexity. The consent screen shows the intended server's name. The advisory lowered the rating because of that but says it is not a real mitigation.
Who is affected
The pip package fastmcp before 2.14.2, for servers that use the OAuth Proxy (for example with GitHubProvider). Servers that do not use OAuth Proxy are not in the described scenario. Check the version:
pip show fastmcpSearch your code for OAuthProxy or provider classes built on it, such as GitHubProvider.
fastmcp
- Ecosystem
- PyPI
- Affected
- < 2.14.2
- Fixed in
- 2.14.2
- Check
pip show fastmcp
How to fix it
Upgrade to 2.14.2:
pip install --upgrade "fastmcp>=2.14.2"The advisory gives no description of the change and no workaround. Its recommended fix is to issue tokens for the server named in the resource parameter of the authorization URL, so receivers can reject tokens meant for others. Read the 2.14.2 release notes for specifics. After upgrading, consider revoking existing tokens issued by the proxy, as they may have been captured before the fix.
How to tell if you were hit
The advisory names no log indicators. Review the proxy's authorization requests for resource values that do not match your servers, and for sign-ins that originate from MCP servers or clients you do not run. Check benign MCP servers' access logs for token use from unfamiliar addresses or at times when the user was not working. Ask users whether they connected to any third-party MCP server using your sign-in.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
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 protections offered by the steps proposed by the specification and the Resource Indicators 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.
Credited to an7y.
Questions
- Which FastMCP version fixes CVE-2025-69196?
2.14.2. Versions before it are affected, but only servers that use the OAuth Proxy.
- What does the attacker need to do?
Run a malicious MCP server that names your OAuth Proxy as its authorization server, then get a victim to complete the OAuth flow with it. The captured token works on your benign servers.
- Does the consent screen stop the attack?
The advisory says it only partly helps. The screen shows the intended server's name, but a victim can miss it or be talked into ignoring it.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology
More FastMCP vulnerabilities
All FastMCP entriesGHSA-7xgj-8392-5q4r
FastMCP: Post-transform component authorization is skipped on direct calls
medium6.8Oct 23, 2026GHSA-vqqp-x5qm-5qp4
FastMCP MCP client wrappers construct M2M OAuth providers without issuer binding — client secret redirectable to attacker-advertised authorization server
medium5.9Oct 23, 2026CVE-2025-64340
FastMCP has a Command Injection vulnerability - Gemini CLI
medium6.7Mar 31, 2026CVE-2026-27124
FastMCP: Missing Consent Verification in OAuth Proxy Callback Facilitates Confused Deputy Vulnerabilities
high8.2Mar 31, 2026CVE-2026-32871
FastMCP OpenAPI Provider has an SSRF & Path Traversal Vulnerability
critical10.0Mar 31, 2026GHSA-rcfx-77hg-w2wv
FastMCP updated to MCP 1.23+ due to CVE-2025-66416
highDec 26, 2025
