Case · 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:

Scope

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.

At a glance

Mechanism and trust boundary

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

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

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

Link to claim
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

Link to claim

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

  1. Nov 22, 2026 · Published version · first publication · revision 275