Skip to content
Wednesday, October 14, 2026AboutContactRSS
Vulnerabilities

Better Auth flaw allows unauthenticated login via OAuth state reuse

A critical authentication bypass in Better Auth versions prior to 1.7.7 lets attackers hijack sessions by misusing OAuth state values as magic link tokens.

Updated with new details.
Illustration: A sleek smartphone rests on a clean white desk, its screen displaying a simple login interface with two blank fields.
AI-generated illustration: Threat Times

Key points

  • CVE-2026-110862 carries a CVSS score of 9.3, classified as critical by the NVD.
  • The flaw affects Better Auth versions from 1.4.0-beta.18 through 1.7.6.
  • Attackers can create falsely verified accounts or steal existing user sessions.

The National Vulnerability Database has published details for CVE-2026-110862, a critical authentication bypass flaw in the open-source library Better Auth. The vulnerability allows unauthenticated attackers to impersonate legitimate users by abusing the way the library handles OAuth state values and magic link verification processes.

At a glance

CVE
CVE-2026-110862
Product
better-auth
CVSS
9.3 Critical
Weakness
improper authentication
Exploited
No known exploitation

According to the NVD record, the issue is associated with CWE-287. Attackers can initiate an OAuth sign-in flow using a victim's email address, capture the resulting state parameter, and submit that value to the magic link verification endpoint. This action grants the attacker a valid session or allows them to generate accounts that appear to be email-verified without actually owning the address.

Technical Scope and Severity

The vulnerability is rated at 9.3 on the Common Vulnerability Scoring System, placing it in the highest severity tier. This score reflects the ease with which an attacker can exploit the flaw without any prior authentication or credentials. The affected software components span from version 1.4.0-beta.18 up to, but not including, version 1.7.7. Any deployment using these earlier releases is exposed to this specific attack vector.

The mechanics of the exploit rely on the library treating OAuth state tokens as valid magic link tokens. This confusion of distinct security tokens allows an attacker to bridge the gap between initiating a login flow and completing verification. The result is full account takeover or the creation of spoofed identities that bypass standard email confirmation checks.

Impact on Developers and Users

Developers integrating Better Auth into their applications for user authentication are directly impacted by this finding. The library is often used to manage sign-in flows, meaning that any application relying on its default OAuth or magic link configurations is vulnerable. Users of applications built with these affected versions face the risk of account compromise, where an attacker gains access without knowing the user's password.

This incident highlights the risks of complex authentication chains where multiple token types interact. While similar flaws in other infrastructure components, such as the AhsayCBS hotfixes released in October 2026, address remote code execution, this issue is specific to identity verification. Unlike the Juniper Junos OS J-Web flaw reported earlier in 2026, which allowed code execution via crafted HTTP requests, this vulnerability is strictly an authentication bypass.

What should you do?

Organizations using Better Auth should immediately audit their deployment versions to determine if they fall within the vulnerable range. If the software is running a version prior to 1.7.7, teams should prepare to upgrade as soon as a secure update is available. Monitoring authentication logs for unusual patterns, such as repeated magic link verifications following OAuth initiations, can help detect active exploitation.

What to do and how to stay safe: Better Auth

  • Inventory all applications using Better Auth and check their current version numbers against the affected range of 1.4.0-beta.18 to 1.7.6.
  • Review server logs for signs of unauthorized session creations or magic link verifications that do not match expected user behavior.
  • Isolate affected authentication endpoints if possible until a patched version of the library can be deployed and tested.
  • Educate development teams on the risks of reusing cryptographic tokens across different authentication protocols like OAuth and magic links.

Step-by-step guide: Risk-Based Vulnerability Management: Prioritize Fixes by Actual Danger

General security guidance from the Threat Times newsroom. It is not confirmed advice from the organisations named in this story.

Frequently asked questions

Which versions of Better Auth are affected by CVE-2026-110862?

Versions from 1.4.0-beta.18 up to but not including 1.7.7 are affected by this authentication bypass vulnerability.

How can an attacker exploit this vulnerability?

Attackers can start an OAuth sign-in with a victim's email, reuse the returned state value as a magic link token, and gain unauthorized access or create falsely verified accounts.

What is the severity rating of this CVE?

The National Vulnerability Database assigns a CVSS score of 9.3, classifying the vulnerability as critical.

Sources

  1. CVE Program
  2. NVD
Related articles