Skip to main content
← All vulnerabilities
CVE-2026-53518GHSA-7W99-5WM4-3G79

Better Auth OAuth Provider: Race Condition in Authorization Code Exchange Enables Multi-Use Code Redemption

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.6.11
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: total

Summary

Better Auth is an authentication and authorization library for TypeScript. From 1.6.0 until 1.6.11, the @better-auth/oauth-provider POST /oauth2/token endpoint for the authorization_code grant redeems a single-use authorization code through a non-atomic find-then-delete sequence, allowing two concurrent requests to pass the read step and mint independent access tokens, refresh tokens, and ID tokens; legacy /oauth2/token and /mcp/token paths in oidc-provider and mcp plugins share the same primitive. This issue is fixed in version 1.6.11.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: total

  3. Record last updated

Affected versions

  • better-auth better-auth

    From 1.6.0 · fixed in 1.6.11

  • @better-auth/oauth-providernpm

    From 1.6.0 · fixed in 1.6.11

  • better-authnpm

    fixed in 1.6.11

References 3

GitHub · better-auth/better-auth