better-auth is vulnerable to Authentication Bypass Using an Alternate Path or Channel
71
CVE Score
High
Authentication Bypass Using an Alternate Path or Channel
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.
Upgrade the better-auth library to the patch version.
You are affected if you are using a version that falls within the vulnerable range.
0.0.1 - 1.6.11
Fixed in 1.6.12better-auth is vulnerable to Authentication Bypass Using an Alternate Path or Channel in versions 0.0.1 - 1.6.11.
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.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.