Better Auth: OAuth refresh-token replay via missing client authentication on oidc-provider and mcp plugins
CVE-2026-53512Published 15 Jul 2026, 17:18 UTC
Real-world risk
3.1/ 10Low
Routine
If the vulnerable configuration applies to you: 6.8
PreliminaryFrom the CVSS vector only · confidence low
CVSS
9.1
scored by the vendor (CNA), CVSS 4.0
In plain words
No plain-language summary yet. The original description is below.
Original description (from GitHub_M)
Better Auth is an authentication and authorization library for TypeScript. Prior to 1.6.11, the legacy oidcProvider and mcp plugins expose OAuth token endpoints whose refresh_token grant authenticates only possession of the bound refreshToken row and matching client_id, without verifying the confidential client's client_secret, allowing an attacker with a valid refresh_token to mint access tokens and rotated refresh tokens through /api/auth/oauth2/token or /api/auth/mcp/token. The @better-auth/oauth-provider package is not affected. This issue is fixed in version 1.6.11.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| better-authCommon | < 1.6.11 | 1.6.11 |
What to do
Update to a fixed version: 1.6.11.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | Major data exposureReads secrets, credentials, databases, arbitrary files | From the CVSS vector | 0.80 |
| Attacker position | InternetAnyone on the Internet can reach a typical deployment | From the CVSS vector | 1.00 |
| Privileges needed | NoneNo account | From the CVSS vector | 1.00 |
| Victim interaction | NoneNothing | From the CVSS vector | 1.00 |
| Configuration | UncommonNeeds a non-default feature that a minority enables | From the CVSS vector | 0.45 |
| Reliability | ReliableDeterministic: injection, logic bug, path traversal | From the CVSS vector | 1.00 |
Threat level T1: Nothing known (× 0.85)
The default for a new disclosure
EPSS 0.2% chance of exploitation in 30 days (percentile 12), as of 2026-12-03.
The arithmetic
- Prerequisites multiplied together0.450
- Threat T1: Nothing known0.850
- 10 × impact 0.8 × prerequisites 0.45 × threat 0.853.060
- Rounded to one decimal between 0.1 and 103.1
Exploitation and evidence timeline
- 15 Jul 2026 Published
- 3 Dec 2026 Risk 3.1 (cvss fallback)
Weakness
CWE-287, CWE-306, CWE-345, CWE-863
References
- https://github.com/better-auth/better-auth/security/advisories/GHSA-pw9m-5jxm-xr6hvendor-advisory
- https://github.com/better-auth/better-auth/pull/9576misc
- https://github.com/better-auth/better-auth/commit/1f2ff4215c4affff0b140b0c0a712c0dde35659cmisc
- https://github.com/better-auth/better-auth/releases/tag/v1.6.11misc
- CVE-2026-53512 on CVE.org