Summary
CVE-2026-114607 is an improper authentication vulnerability (CWE-287) in better-auth. Under specific configurations, an unauthenticated attacker can sign in as another user by redeeming an OAuth state value as a Magic Link token. The vulnerability is rated Critical (CVSS 9.1).
Technical details
- Root cause: Magic Link verification records and OAuth state resolve to the same stored identifier, so an OAuth state value can be accepted as a Magic Link token.
- Trigger conditions: The Magic Link plugin uses plain token storage, or hashed storage with hashed verification settings. OAuth providers are enabled, and the database state strategy is used.
- Attack vector: Network. The attacker starts an OAuth sign-in for a known victim email address, then redeems the resulting state as a Magic Link. This needs no mailbox access and no completed provider callback.
- Impact: Account takeover, with sign-in as an arbitrary user. This gives high confidentiality and integrity impact.
Affected software
- better-auth >= 1.4.0-beta.18 and < 1.7.7
Severity
- CVSS v3.1 base score: 9.1 (Critical)
- Vector:
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Mitigation and recommended actions
- Immediate: Upgrade better-auth to 1.7.7 or later, and test the upgrade in a non-production environment first.
- No workaround was identified in the sources reviewed. Deployments that don’t use the affected combination (Magic Link with the stated storage settings, OAuth providers, and database state strategy) are not described as affected.

