External risk intelligence

Better Auth Authentication Bypass via Reused OAuth State

CVE advisorySeverity: CRITICAL (CVSS 9.3)

CVE-2026-110862

The vulnerability affects an authentication library used to manage user sessions, OAuth, and magic link logins. Because these authentication endpoints are designed to be public-facing by default to allow users to sign into web applications, this surface is inherently exposed to the internet in any standard deployment.

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

This advisory concerns a critical authentication bypass vulnerability within the Better Auth library, impacting how users sign in and are verified. The issue allows unauthenticated attackers to potentially impersonate other users by exploiting how OAuth and Magic Link tokens are handled, which could lead to unauthorized access or the creation of fraudulent accounts. The main concern at this time is confirming relevance and exposure.

  • Attackers can bypass login security.
  • Affects user authentication and account integrity.
  • Confirm if this authentication method is in use.

Attack Path

How an attacker could exploit the issue

An attacker can exploit this vulnerability by initiating an OAuth sign-in process using a victim's email address. The attacker then reuses a specific value, known as the "state" value, returned during this process. This reused state value is treated as a Magic Link token, allowing the attacker to bypass authentication and gain access to the victim's account or create a new account falsely associated with the victim's email.

  • Unauthenticated network access.
  • Reusing OAuth state as a Magic Link token.
  • Unauthorized account access and creation.

Live Threat

Current exploitation, exposure, and threat context

This vulnerability could allow unauthenticated attackers to bypass authentication mechanisms, potentially leading to unauthorized access to user accounts. This occurs by reusing specific values from the OAuth sign-in process as authentication tokens. The advisory indicates that when supported, attackers could sign in as other users or create falsely verified accounts by exploiting this flaw.

  • User account access.
  • Reusing OAuth state values as tokens.
  • Unauthorized account access or creation.

Operational Fix

Recommended remediation, mitigation, and detection steps

The application owner and platform team are likely responsible for addressing this authentication bypass vulnerability. The initial step is to identify all instances of the affected authentication library, determine their reachability and criticality, and then coordinate remediation efforts based on risk.

  • Application and platform teams own remediation.
  • Verify affected technology reachability and criticality.
  • Plan remediation based on confirmed ownership and risk.

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 the Better Auth library?

Better Auth is an authentication framework designed for web applications. It provides developers with pre-built components for managing user identities, including secure session handling, OAuth integrations for social logins, and passwordless authentication methods like Magic Links.

What is the weakness in CVE-2026-110862?

This vulnerability is classified as CWE-287, or Improper Authentication. The library incorrectly permits the reuse of an OAuth 'state' parameter—a value intended for session integrity during logins—as a valid Magic Link token, effectively allowing an attacker to spoof successful authentication.

How does an attacker trigger this vulnerability?

An attacker triggers this by initiating an OAuth login flow for a target email address. Instead of completing the standard OAuth process, they take the 'state' value provided by the application and submit it directly to the Magic Link verification endpoint. It is not triggered by normal, legitimate user interactions.

Do I need to worry about internet exposure?

Yes. According to Halo Surface Signal, this library manages authentication endpoints that are designed to be public-facing by default. Because these endpoints must be accessible to users logging in over the internet, any application using the affected versions is inherently exposed to this risk.

What are the first steps to address this?

You should first audit your codebase to identify if you are using a version of Better Auth between 1.4.0-beta.18 and 1.7.6. If found, prioritize updating the library to version 1.7.7 or later, which resolves the flaw in how these authentication tokens are validated.

References