Skip to main content

Better Auth EUVDEUVD-2026-101745

| CVE-2026-110862 CRITICAL
Improper Authentication (CWE-287)
2026-10-14 disclosure@vulncheck.com GHSA-p7w7-v3vp-w8x8
9.3
CVSS 4.0 · Vendor: vulncheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify app using Better Auth with OAuth + Magic Link
  2. Delivery
    Start OAuth sign-in with victim's email
  3. Exploit
    Capture returned OAuth state value
  4. Execution
    Submit state to Magic Link verification
  5. Impact
    Receive 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.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

better-auth 1.4.0-beta.18 <1.7.7

Affected Packages

npm better-auth fix: 1.7.7

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

Vendor (vulncheck) PRIMARY 9.3 CRITICAL
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
vuln.today AI 9.1 CRITICAL

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.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (vulncheck).

CVSS VectorVendor: vulncheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Oct 15, 2026 - 02:16 EUVD
CVE Published
Oct 14, 2026 - 23:17 cve.org
CRITICAL 9.3

DescriptionCVE.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
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 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

Why It Matters

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.

Business Impact: Severe
Compensating Controls

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

EPSS Score
0.3%
Top 76% exploitable
Prevalence
Medium
popular open-source TypeScript auth framework, but newer and not ubiquitous
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
Very High
Technical Impact
Total

Priority Score

46
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +46
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy