FastMCP OAuthProxy used a read-then-delete sequence when exchanging an authorization code. Concurrent token redemption requests could pass the check before either removed the code, so a nominally one-time grant was exchanged more than once. Both disk and Redis backends needed atomic consumption. The advisory reports 18 to 20 duplicate grants in 20 local…
Inspect the ClaimsCase · DiggingBeagle record
FastMCP OAuth proxy could exchange one authorization code more than once
The advisory reports 18 to 20 duplicate grants in 20 local concurrent attempts under tested configurations.
Published by DiggingBeagle:
FastMCP OAuth proxy versions 2.13.0 through 4.2.3 with a redeemable code and concurrent redemption attempts.
Assessment profile
Assessment method- Setting
- research demonstration
- Exploitation
- demonstrated
- Evidence
- Grade B
- Remediation
- patch available
- AI role
- AGAINST AI
Basis and provenance
The cited primary source supports the stated mechanism and scoped outcome. Impact band remains unrated because no calibrated victim exposure or severity distribution is established by the cited evidence.
Assessed Nov 22, 2026 using diggingbeagle.assessment/1.
Evidence basis: CLM-2026-NOV22-FAST-MCP-OAUTH-RACE-MECHANISM · CLM-2026-NOV22-FAST-MCP-OAUTH-RACE-SCOPE · FastMCP OAuthProxy concurrent authorization-code redemption advisory
At a glance
The weak point is the atomicity of consuming the code, not a missing login or a model jailbreak. PKCE does not stop two redemption calls possessing the same valid code and verifier; a shared atomic consume operation is required for multi-process and multi-replica implementations.
Read the implicationsThe measured concurrency test is not evidence of stolen codes or observed third-party account takeover.
Limits and uncertaintyFull account
FastMCP OAuthProxy used a read-then-delete sequence when exchanging an authorization code. Concurrent token redemption requests could pass the check before either removed the code, so a nominally one-time grant was exchanged more than once. Both disk and Redis backends needed atomic consumption.
The advisory reports 18 to 20 duplicate grants in 20 local concurrent attempts under tested configurations. Release 4.2.4 changes code consumption; the attack still requires possession of an authorization code, and normal PKCE/client identity protections remain relevant. The critical boundary is a single authorization code becoming multiple independently usable token grants when redemption was not atomic.
The documented repair is consume codes atomically and preserve PKCE plus callback and client binding across the exchange. The measured concurrency test is not evidence of stolen codes or observed third-party account takeover.
Mechanism and trust boundary
- 01
Obtain an authorization code
A legitimate OAuth flow provides a redeemable code for FastMCP OAuthProxy; the risk requires concurrent requests presenting the same code.
Boundary: Single-use OAuth authorization grant
- 02
Redeem concurrently across an asynchronous store
The proxy reads the code and later deletes it without an atomic consume; multiple requests can read it before removal, on default file and Redis-backed stores.
Boundary: One-time authorization proof split by non-atomic state mutation
- 03
Mint independent valid sessions
In reported tests, duplicate redemptions returned multiple tokens from one code, so revoking one generated token does not necessarily invalidate its sibling.
Boundary: OAuth session multiplicity despite a one-use code promise
Claims & evidence
CLM-2026-NOV22-FAST-MCP-OAUTH-RACE-SCOPEThe advisory reports 18 to 20 duplicate grants in 20 local concurrent attempts under tested configurations. Release 4.2.4 changes code consumption; the attack still requires possession of an authorization code, and normal PKCE/client identity protections remain relevant.supported
Basis: reported finding
- supportsFastMCP OAuthProxy concurrent authorization-code redemption advisoryprimary disclosure
Primary advisory or study: reproduction, results and limitations
CLM-2026-NOV22-FAST-MCP-OAUTH-RACE-MECHANISMFastMCP OAuthProxy used a read-then-delete sequence when exchanging an authorization code. Concurrent token redemption requests could pass the check before either removed the code, so a nominally one-time grant was exchanged more than once. Both disk and Redis backends needed atomic consumption.supported
Basis: reported finding
- supportsFastMCP OAuthProxy concurrent authorization-code redemption advisoryprimary disclosure
Primary advisory or study: technical mechanism and affected component
- supportsFastMCP OAuthProxy concurrent authorization-code redemption advisoryprimary disclosure
GHSA-78c8-3jhx-5mg7: exchange_authorization_code get then delete, PoC 18/20 and 20/20
Implications
The weak point is the atomicity of consuming the code, not a missing login or a model jailbreak. PKCE does not stop two redemption calls possessing the same valid code and verifier; a shared atomic consume operation is required for multi-process and multi-replica implementations.
Controls and mitigations
- consume codes atomically and preserve PKCE plus callback and client binding across the exchange
Unknowns and contradictions
- The measured concurrency test is not evidence of stolen codes or observed third-party account takeover.
Sources and citation
Material revision history
- Nov 22, 2026 · Published version · first publication · revision 275