CVE-2026-53517 Details
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.
A vulnerability exists in the Better Auth authentication and authorization library for TypeScript, specifically in the OAuth provider's refresh token grant handling. This issue is present in versions 1.4.8-beta.7 prior to 1.6.11, including embedded Better Auth plugin versions before 1.6.0. The vulnerability arises from a non-atomic sequence of read, validate, revoke, and mint operations on the OAuth refresh token, allowing concurrent requests with the same parent refresh token to bypass revocation checks and create forked refresh token families. The problem is exacerbated for clients requesting the 'offline_access' scope, as it enables the use of refresh tokens across multiple sessions or tabs, creating opportunities for abuse.
Users can upgrade to Better Auth versions 1.6.11 or later. If an immediate upgrade is not possible, consider configuring the database adapter to run the OAuth refresh handler under serializable isolation, or wrap the 'adapter.update' on 'oauthRefreshToken' with a row-level pessimistic lock. As a temporary measure, the 'offline_access' scope can be disabled to prevent refresh tokens from being minted.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jul 15, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-362 | Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition') | [email protected] |
| CWE-367 | Time-of-check Time-of-use (TOCTOU) Race Condition | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| better-auth better-auth/oauth-provider | >= 1.6.0, < 1.6.11 |
CPE
Remediation
| |
| better-auth better auth | >= 1.4.9, < 1.6.11 1.4.8 - 1.4.8 beta7 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 21, 2026 | Initial Analysis | [email protected] |
| Jul 15, 2026 | CVE Modified | CISA-ADP |
| Jul 15, 2026 | New CVE Received | [email protected] |