Skip to main content
← All vulnerabilities
CVE-2026-41427GHSA-XR8F-H2GW-9XH6

Better Auth OAuth 2.1 Provider: Unprivileged users can register OAuth clients

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

Summary

Better Auth is an authentication and authorization library for TypeScript. Prior to 1.6.5, the clientPrivileges option documents a create action, but the OAuth client creation endpoints did not invoke the hook before persisting new clients. Deployments that configured clientPrivileges to restrict client registration were not actually restricted — any authenticated user could reach the create endpoints and register an OAuth client with attacker-chosen redirect URIs and metadata. This vulnerability is fixed in 1.6.5.

Timeline

  1. CVE published
  2. CISA SSVC assessment

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

  3. Record last updated

Affected versions

  • better-auth better-auth

    From 1.4.8-beta.7 · fixed in 1.6.5; From 1.7.0-beta.0 · through 1.7.0-beta.1

  • better-auth oauth-provider

    From 1.4.8-beta.7 · fixed in 1.6.5; From 1.7.0-beta.0 · through 1.7.0-beta.1

  • @better-auth/oauth-providernpm

    From 1.4.8-beta.7 · fixed in 1.6.5

  • @better-auth/oauth-providernpm

    From 1.7.0-beta.0 · through 1.7.0-beta.1

References 1

GitHub · better-auth/better-auth