Better-auth
Better Auth: Account takeover via OAuth auto-link to unverified pre-registered email
Better Auth is an authentication and authorization library for TypeScript. Prior to 1.6.11, Better Auth's OAuth callback auto-link gate in handleOAuthUserInfo accepts implicit account linking when the OAuth provider asserts email_verified: true without requiring the local user row's emailVerified field to also be true, allowing an attacker who pre-registers a victim email through /sign-up/email to bind the victim's OAuth identity to the attacker's account. The same primitive affects one-tap, and emailAndPassword.requireEmailVerification: true does not mitigate the link-time verification change. This issue is fixed in version 1.6.11.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 1.6.11
Fixed in 1.6.11
Mitigation
Upgrade better-auth to 1.6.11 or later.
References
- Vendor advisory github.com/better-auth/better-auth/security/ad…
- Patch github.com/better-auth/better-auth/pull/9578
- Patch github.com/better-auth/better-auth/commit/da7e…
1 more
- Release notes github.com/better-auth/better-auth/releases/ta…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.