Skip to content

CVE-2026-53517 Better Auth OAuth Provider: Refresh Token Rotation Race Condition Allows Concurrent Replay and Token Family Forking

HighCVSS 8.1 EPSS 0.42%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: total

Description

Better Auth is an authentication and authorization library for TypeScript. From 1.4.8-beta.7 until 1.6.11, the @better-auth/oauth-provider POST /oauth2/token endpoint on the refresh_token grant performs a non-atomic read, validate, revoke, and mint sequence on the oauthRefreshToken row, allowing concurrent requests with the same parent refresh token to pass the revoked check and create forked refresh-token families; the vulnerable range also includes embedded better-auth plugin versions before 1.6.0. This issue is fixed in version 1.6.11.

Upgrade path

6 packages: 4 fixed.

PackageAffectedFixed inStatus
better-auth better auth = 1.4.8; = 1.4.8-beta7; >= 1.4.9, < 1.6.11 1.6.11 Fixed
better-auth oauth-provider(npm) >= 1.6.0, < 1.6.11 1.6.11 Fixed
better-authoauth-provider >= 1.6.0, < 1.6.11 1.6.11 Fixed
npm better-auth(npm) >= 1.4.8-beta.7, < 1.6.0 1.6.0 Fixed
better-auth = >= 1.4.8-beta.7, < 1.6.0 No fix listed Versions listed
better-auth oauth-provider = >= 1.6.0, < 1.6.11 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
better-auth = >= 1.4.8-beta.7, < 1.6.0 No fix listed
better-auth oauth-provider = >= 1.6.0, < 1.6.11 No fix listed
better-auth oauth-provider(npm) >= 1.6.0, < 1.6.11 1.6.11
npm better-auth(npm) >= 1.4.8-beta.7, < 1.6.0 1.6.0
better-authoauth-provider >= 1.6.0, < 1.6.11 1.6.11
better-auth better auth >= 1.4.9, < 1.6.11 1.6.11
better-auth better auth = 1.4.8 No fix listed
better-auth better auth = 1.4.8-beta7 No fix listed

References