Description
Better Auth from 1.4.0-beta.18 before 1.7.7 contains an authentication bypass vulnerability that allows unauthenticated attackers to sign in as other users by reusing OAuth state values as Magic Link tokens. Attackers can start an OAuth sign-in with a victim's email and submit the returned state to Magic Link verification, gaining sessions or creating falsely email-verified accounts.
Published: 2026-10-14
Score: 9.3 Critical
EPSS: < 1% Very Low
KEV: No
Impact: Authentication Bypass
Action: Immediate Patch
AI Analysis

Impact

Better Auth versions 1.4.0-beta.18 through 1.7.6 allow an attacker to bypass authentication by reusing OAuth state values as magic link tokens. The flaw lets an unauthenticated user submit a state value returned from an OAuth sign‑in attempt that uses a victim’s email. If the state token is accepted during magic link verification, the attacker gains a valid session or creates a false email‑verified account for the victim. This vulnerability results in full impersonation of the victim without any credential compromise. The weakness is a classic authentication bypass (CWE‑287).

Affected Systems

All deployments of Better Auth version 1.4.0-beta.18 up to and including 1.7.6 are affected. The product is referred to as Better Auth:better-auth by the CNA. Any instance that relies on the magic link feature and supports OAuth-based sign‑in during that version range is susceptible.

Risk and Exploitability

The CVSS score of 9.3 classifies this as critical. The EPSS score is not available, but the flaw admits remote exploitation through public OAuth interfaces, making it highly exploitable in a networked environment. Because the issue is not listed in CISA’s KEV catalog, there is no known widespread exploitation at the time of analysis. The likely attack vector is through an externally accessible OAuth endpoint combined with the magic link verification flow, allowing attackers to fabricate state values and hijack sessions.

Generated by OpenCVE AI on October 15, 2026 at 12:02 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Better Auth to 1.7.7 or later to obtain the vendor‑supplied fix.
  • If a patch is unavailable, disable magic link verification or remove the endpoint handling magic link requests from your deployment entirely to prevent token reuse.
  • Continuously monitor authentication logs for unexpected OAuth state usage or magic link accesses and enforce strict state token lifetimes to restrict reuse.

Generated by OpenCVE AI on October 15, 2026 at 12:02 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 15 Oct 2026 14:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Wed, 14 Oct 2026 23:00:00 +0000

Type Values Removed Values Added
Description Better Auth from 1.4.0-beta.18 before 1.7.7 contains an authentication bypass vulnerability that allows unauthenticated attackers to sign in as other users by reusing OAuth state values as Magic Link tokens. Attackers can start an OAuth sign-in with a victim's email and submit the returned state to Magic Link verification, gaining sessions or creating falsely email-verified accounts.
Title Better Auth 1.4.0-beta.18 before 1.7.7 Authentication Bypass via Magic Link
First Time appeared Better-auth
Better-auth better Auth
Weaknesses CWE-287
CPEs cpe:2.3:a:better-auth:better_auth:*:*:*:*:*:*:*:*
Vendors & Products Better-auth
Better-auth better Auth
References
Metrics cvssV3_1

{'score': 9.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N'}

cvssV4_0

{'score': 9.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N'}


Subscriptions

Better-auth Better Auth
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-10-15T13:34:05.213Z

Reserved: 2026-10-14T22:18:33.239Z

Link: CVE-2026-110862

cve-icon Vulnrichment

Updated: 2026-10-15T13:33:58.477Z

cve-icon NVD

Status : Deferred

Published: 2026-10-14T23:17:27.673

Modified: 2026-10-16T18:25:45.343

Link: CVE-2026-110862

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-17T12:45:08Z

Weaknesses