External risk intelligence

Better Auth Magic Link OAuth Session Hijacking Vulnerability.

CVE advisorySeverity: CRITICAL (CVSS 9.1)

CVE-2026-114607

The vulnerability exists within an authentication and authorization library used to manage identity and user access. Because this library is designed to handle login flows, OAuth sign-ins, and Magic Link verification, it is inherently deployed as part of public-facing web applications and authentication portals accessible via the internet.

Authentication Bypass

Halo Surface Signal: 5 out of 5 — more likely to be public-facing.

External exposure likelihood

Horizon Alert

Summary of the vulnerability and why it matters

A vulnerability has been identified in the Better Auth library, which is used for authentication and authorization. If specific configurations are enabled, an attacker could potentially impersonate users or create accounts with false email verification. The main concern is to confirm if your specific implementation and configurations are affected by this issue.

  • Attackers can bypass authentication with specific settings.
  • Protects against unauthorized user access and account creation.
  • Confirm configuration and exposure to this authentication flaw.

Attack Path

How an attacker could exploit the issue

An unauthenticated attacker could exploit this vulnerability by initiating an OAuth sign-in for a known email address. If the Better Auth library is configured with specific settings for Magic Link and OAuth, the attacker can then use the returned OAuth state value as a Magic Link token. This bypasses the need to control the email account or complete the provider's callback, allowing the attacker to gain a legitimate session as an existing user or create a seemingly verified account.

  • Unauthenticated access to a vulnerable service.
  • Triggers vulnerability via crafted OAuth state.
  • Session takeover or unverified account creation.

Live Threat

Current exploitation, exposure, and threat context

When specific configuration settings are enabled, an unauthenticated attacker could impersonate users during OAuth sign-in. This could lead to unauthorized session establishment or falsely verified accounts.

  • User sessions and account verification status.
  • Exploiting specific library configurations.
  • Gaining unauthorized user access.

Operational Fix

Recommended remediation, mitigation, and detection steps

Teams responsible for application code, identity and access management, and potentially the platform hosting the application should investigate this vulnerability. The first practical step is to identify all instances of the affected library, confirm their exposure and criticality, and then engage the appropriate application owner to plan remediation.

  • Application owners should take primary responsibility.
  • Verify affected applications and their exposure.
  • Plan remediation with vendor coordination.

Supplementary metadata

Validate whether this threat affects your internet-facing exposure.

Halo Threat Intelligence helps prioritize remediation with Halo Surface Signal and H/A/L/O context. Start exposure validation with a free external attack surface trial.

Frequently asked questions

What is Better Auth?

Better Auth is a TypeScript library designed to handle authentication and authorization processes in web applications. Developers integrate it into their code to manage essential identity tasks, such as handling user logins, maintaining sessions, processing OAuth sign-ins, and verifying users via Magic Links.

How does CVE-2026-114607 affect authentication?

This vulnerability involves Improper Authentication (CWE-287). When certain settings overlap, the library fails to distinguish between an OAuth sign-in state and a Magic Link token. This allows an attacker to substitute an OAuth state value for a Magic Link, effectively bypassing the requirement to prove ownership of the targeted email account.

Do I need specific settings for this to happen?

Yes. The issue only occurs when you use specific configurations: Magic Link must be enabled with specific token storage settings, a social or Generic OAuth provider must be active, and your account state strategy must be set to database. If these settings are not all enabled simultaneously, the flaw is not triggered.

Is my application at risk?

According to Halo Surface Signal, this library is typically deployed in public-facing authentication portals. If your application uses the affected library versions (1.4.0-beta.18 through 1.7.6) and meets the configuration requirements, it is considered internet-facing and highly relevant for review.

When should I update my Better Auth library?

You should prioritize upgrading to version 1.7.7 or newer immediately. Your first step is to audit your application’s configuration files to determine if your current settings match the affected criteria. Once identified, coordinate with your development team to apply the update and verify that your authentication flows are secure.

References