PT-2026-67317 · Unknown · Better Auth
CVSS v4.0
7.1
High
| Vector | AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N |
Name of the Vulnerable Software and Affected Versions
better-auth versions prior to 1.4.9
Description
A two-factor authentication (2FA) bypass occurs when
session.cookieCache is enabled. The issue arises because the session generated during the initial sign-in step may be cached as valid before the second-factor verification is completed. Consequently, subsequent session lookups may return this cached session without re-evaluating the 2FA requirement, allowing an attacker with valid primary credentials to access authenticated routes without completing the second authentication factor.Recommendations
Update to version 1.4.9 or later.
As a temporary workaround, disable
session.cookieCache when using two-factor authentication.Exploit
Fix
Authentication Bypass Using an Alternate Path or Channel
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Better Auth