Intel

AIKIDO-2026-11092

better-auth is vulnerable to Authentication Bypass Using an Alternate Path or Channel

Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Jun 5, 2026
June 5, 2026

71

CVE Score

High

Authentication Bypass Using an Alternate Path or Channel

Are you affected? Scan for Free

TL;DR

When two-factor authentication is required on credential sign-in, the library can emit duplicate Set-Cookie headers that still contain valid session_token and session_data values alongside expiring overrides. Anything that reads the raw HTTP response can capture and replay those signed cookies to obtain an authenticated session without completing 2FA when session.cookieCache is enabled, including sensitive two-factor disable flows. The patch scrubs prior matching Set-Cookie entries before expiring cookies and requires a database-backed session for two-factor disable.

How do I fix this?

Upgrade the better-auth library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Versions

0.0.1 - 1.6.11

Fixed in 1.6.12

Background info

better-auth is vulnerable to Authentication Bypass Using an Alternate Path or Channel in versions 0.0.1 - 1.6.11.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea