Better Auth OAuth 2.1 Provider: Unprivileged users can register OAuth clients
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 1.6.5
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- 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
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: no · Technical impact: partial
- 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