Skip to main content
← All vulnerabilities
CVE-2026-53512GHSA-PW9M-5JXM-XR6H

Better Auth: OAuth refresh-token replay via missing client authentication on oidc-provider and mcp plugins

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: yes
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

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

  3. Record last updated

Affected versions

  • better-auth better-auth

    fixed in 1.6.11

  • better-authnpm

    fixed in 1.6.11

References 4

GitHub · better-auth/better-auth