Skip to main content

FastMCP EUVDEUVD-2025-208759

| CVE-2025-69196 HIGH
Incorrect Authorization (CWE-863)
2026-03-16 https://github.com/PrefectHQ/fastmcp GHSA-5h2m-4q8j-pqpj
7.4
CVSS 4.0 · Vendor: https://github.com/PrefectHQ/fastmcp
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Stand up malicious MCP server and AS shim
  2. Delivery
    Advertise benign FastMCP proxy as its AS
  3. Exploit
    Lure victim to complete OAuth flow
  4. Install
    Victim consents, AS mints base_url-audience token
  5. C2
    Extract token at malicious server
  6. Execute
    Replay token to benign MCP server
  7. Impact
    Access 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv5 – 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)
v4 Jun 30, 2026 - 04:52 cvss changed CVSS 7.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).

v3 Jun 30, 2026 - 04:51 cvss changed CVSS 7.4

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%.

v2 Jun 30, 2026 - 04:51 cvss changed CVSS 7.4

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%).

v1 Mar 16, 2026 - 16:00 CVSS 6.5

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

fastmcp < 2.14.2

Affected Packages

pypi fastmcp fix: 2.14.2

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

Vendor (https://github.com/PrefectHQ/fastmcp) PRIMARY 7.4 HIGH
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
vuln.today AI 8.0 HIGH

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.

3.1 AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N
4.0 AV:N/AC:H/AT:N/PR:N/UI:A/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
Red Hat 7.4 HIGH

Primary rating from Vendor (https://github.com/PrefectHQ/fastmcp).

CVSS VectorVendor: https://github.com/PrefectHQ/fastmcp

Attack Vector
Network
Attack Complexity
High
Attack Requirements
None
Privileges Required
None
User Interaction
Active
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

8
Analysis Updated
Jun 30, 2026 - 04:53 vuln.today
v5 - CVSS changed
Analysis Updated
Jun 30, 2026 - 04:52 vuln.today
v4 - CVSS changed
Analysis Updated
Jun 30, 2026 - 04:51 vuln.today
v3 - CVSS changed
Analysis Updated
Jun 30, 2026 - 04:51 vuln.today
v2 - CVSS changed
Severity Changed
Jun 30, 2026 - 03:24 NVD
MEDIUM HIGH
CVSS changed
Jun 30, 2026 - 03:24 NVD
6.5 (MEDIUM) 7.4 (HIGH)
Patch released
Mar 31, 2026 - 21:13 nvd
Patch available
CVE Published
Mar 16, 2026 - 15:14 nvd
MEDIUM 6.5

DescriptionCVE.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:

python
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:

  1. Extract the provided PoC environment.
  2. Enter the *client_id* and *client_secret* of a GitHub App you control into the mcp-server-proxy.py script.
  3. Start the benign MCP server using an OAuth Proxy (in this case the *GitHubProvider*): python3 mcp-server-proxy.py.
  4. Start the malicious AS: python3 mal_auth_server.py.
  5. Start the malicious MCP server: python3 attacker_server.py.
  6. Connect the client to the malicious MCP server: python3 client.py.
  7. Complete the OAuth flow.
  8. 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.

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 21 pypi packages depend on fastmcp (20 direct, 1 indirect)

Ecosystem-wide dependent count for version 2.14.2.

Executive ViewAI

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch: Upgrade fastmcp to version 2.14.2 or later.

Threat Intelligence Overview

EPSS Score
0.0%
Top 98% exploitable
Prevalence
Medium
popular Python MCP framework, but OAuthProxy feature and MCP ecosystem still emerging
Data Quality
7 sources
Confidence: High

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

37
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +37
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

More in Python

View all
CVE-2025-24016 CRITICAL POC
9.9 Feb 10

Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t

CVE-2025-27520 CRITICAL POC
9.8 Apr 04

BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser

CVE-2025-2945 CRITICAL POC
9.9 Apr 03

pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi

CVE-2013-5093 MEDIUM POC
6.8 Sep 27

The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python

CVE-2025-32375 CRITICAL POC
9.8 Apr 09

BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica

CVE-2014-0224 HIGH POC
7.4 Jun 05

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

CVE-2024-21644 HIGH POC
7.5 Jan 08

pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.

CVE-2026-33017 CRITICAL POC
9.3 Mar 17

Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301

CVE-2017-9462 HIGH POC
8.8 Jun 06

In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse

CVE-2026-49869 CRITICAL POC
10.0 Jun 26

Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2024-21645 MEDIUM POC
5.3 Jan 08

pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy