Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify app using Better Auth with OAuth + Magic Link
-
DeliveryStart OAuth sign-in with victim's email
-
ExploitCapture returned OAuth state value
-
ExecutionSubmit state to Magic Link verification
-
ImpactReceive authenticated session as victim
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Authentication mechanism validation
MITRE ATT&CK
2 techniques across 2 tactics: Defense Evasion, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The target application must have Better Auth configured with BOTH an OAuth/social sign-in provider AND the Magic Link plugin/flow enabled, because the attack cross-uses an OAuth state value against Magic Link verification; applications using only one of these mechanisms are not exploitable. The attacker must also know (or supply) the victim's email address to initiate the OAuth flow. Affected versions are 1.4.0-beta.18 up to but not including 1.7.7. Limiting factors: no special conditions beyond the dual-feature requirement - exploitation is remote and unauthenticated (PR:N, UI:N) against any default configuration that enables both flows, so the primary constraint is deployment configuration rather than authentication or user interaction. |
| Impact | This is a genuine high-priority issue, not a CVSS-inflated paper risk. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H) describes a remote, network-reachable, low-complexity attack needing no privileges and no user interaction, and the described mechanism - reusing an OAuth state value as a Magic Link token to sign in as an arbitrary victim - is consistent with that vector and with the CWE-287 (Improper Authentication) classification. The high confidentiality and integrity impact (full account takeover plus creation of falsely email-verified accounts) is well-supported by the description. Tempering the raw 9.3: no EPSS score is provided, there is no CISA KEV listing, and no public POC is indicated, so there is no evidence of active or widespread exploitation yet. Exploitation is also gated on a specific deployment condition (the target app must enable both OAuth and Magic Link flows), which narrows the real-world exposed population below what AV:N/PR:N alone implies. Net: treat as urgent patch-now for any Better Auth deployment that uses both OAuth and Magic Link, but the absence of EPSS/KEV/POC signals means current exploitation is unproven rather than confirmed. |
| Exploit ScenarioDerived | An attacker initiates an OAuth sign-in flow supplying the victim's email address, captures the OAuth state value returned by Better Auth, and submits that value to the Magic Link verification endpoint. Because the state is accepted as a valid Magic Link token, the attacker is granted an authenticated session as the victim or creates a falsely email-verified account under the victim's identity. No public exploit code is identified at time of analysis, but the attack is low-complexity and requires no authentication or user interaction. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 14, 2026
An authentication bypass in Better Auth versions 1.4.0-beta.18 through 1.7.6 allows unauthenticated attackers to sign in as other users by reusing OAuth state values as Magic Link tokens. The attack requires the target application to have both an OAuth/social sign-in provider and the Magic Link plugin enabled; the attacker must also know the victim's email address. No public exploit identified at time of analysis, but the vulnerability is rated critical (CVSS 9.3 per CVSS 4.0, 9.8 per assessed CVSS 3.1).
RemediationAI
Upgrade to Better Auth version 1.7.7 or later. This is the vendor-released patch that fixes the vulnerability. The vendor advisory (GHSA-965c-763c-88jm) provides additional details. If immediate upgrade is not possible, disable either the OAuth/social sign-in provider or the Magic Link plugin, as the vulnerability requires both to be enabled; however, this may impact application functionality. Alternatively, ensure that OAuth state values and Magic Link tokens are stored in separate, non-interchangeable ways at the application level if custom integration is used, but the recommended fix is to apply the patch.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in npm
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Better Auth is an open-source authentication library that supports multiple authentication flows, including OAuth/social sign-in and passwordless Magic Link email verification. The OAuth flow uses a 'state' parameter to prevent cross-site request forgery, while Magic Link uses a token sent via email. CWE-287 (Improper Authentication) arises because the library fails to properly segregate these two types of values, allowing an OAuth state value to be accepted as a valid Magic Link token. An attacker can initiate an OAuth sign-in with the victim's email address, obtain the generated state value, and then submit it to the Magic Link verification endpoint. This grants the attacker a session as the victim or creates an account with falsely verified email. The vulnerability affects versions 1.4.0-beta.18 up to but not including 1.7.7, and exploitation requires that both OAuth and Magic Link features are enabled in the target deployment.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Remote, no privileges or interaction, and low complexity (PR:N/UI:N/AC:L) since a captured state is simply replayed; full account takeover gives C:H/I:H, with no availability impact.
Primary rating from Vendor (vulncheck).
CVSS VectorVendor: vulncheck
Lifecycle Timeline
2DescriptionCVE.org
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.
Blast Radius
ecosystem impact- 1 npm packages depend on better-auth (1 direct, 0 indirect)
Ecosystem-wide dependent count for version 1.4.0-beta.18.
Technical POC Analysis
Bug class: CWE-287 Improper Authentication.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
A critical authentication bypass in the Better Auth library (versions 1.4.0-beta.18 through 1.7.6) could allow an attacker to sign in as any user whose email address they know, in any application that enables both a social/OAuth sign-in provider and the Magic Link plugin. Because this library sits in the authentication path, successful abuse means full account takeover - exposure of customer data, fraudulent transactions, and downstream access to connected systems - and no vendor-released patch is currently identified. Leadership should care because remediation depends on configuration changes and monitoring rather than a simple update, and the exposure window persists until either a fix ships or the affected feature combination is disabled.
No vendor-released patch identified at time of analysis. Interim mitigations: disable the Magic Link plugin or the OAuth/social sign-in provider so both are not enabled simultaneously (the vulnerability requires both); rotate secrets and invalidate outstanding OAuth state values and active sessions; monitor and alert on magic-link authentication events lacking a preceding magic-link request; restrict or rate-limit magic-link issuance; review authentication logs for account takeover indicators.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
EUVD-2026-101745
GHSA-p7w7-v3vp-w8x8
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB