Vulnerability DatabaseGHSA-xg6x-h9c9-2m83

GHSA-xg6x-h9c9-2m83
Better Auth vulnerability analysis and mitigation

Summary

Under certain configurations, sessions may be considered valid before two-factor authentication (2FA) is fully completed. This can allow access to authenticated routes without verifying the second factor.

Description

When two-factor authentication is enabled, the authentication flow correctly identifies users who require additional verification and defers full authentication until the second factor is completed. However, when session.cookieCache is enabled, the session generated during the initial sign-in step may be cached as valid prior to 2FA verification. Subsequent session lookups may then return this cached session without re-evaluating the 2FA requirement. This results in a situation where session validity can be established before all authentication constraints are satisfied.

Impact

Mitigation

  • Upgrade to a version of better-auth that includes the fix for this issue.
  • Ensure that session caching does not treat sessions as fully authenticated until all required authentication steps, including 2FA, are completed.
  • As a temporary workaround, disable session.cookieCache when using two-factor authentication.

SourceNVD

Related Better Auth vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-61928CRITICAL9.3
  • Better AuthBetter Auth
  • better-auth
NoYesOct 09, 2025
GHSA-xg6x-h9c9-2m83CRITICAL9.1
  • Better AuthBetter Auth
  • better-auth
NoYesApr 03, 2026
GHSA-x732-6j76-qmhmHIGH8.6
  • Better AuthBetter Auth
  • better-auth
NoYesDec 16, 2025
GHSA-569q-mpph-wgwwLOW2.9
  • Better AuthBetter Auth
  • better-auth
NoYesDec 01, 2025
GHSA-wmjr-v86c-m9jjLOW2
  • Better AuthBetter Auth
  • better-auth
NoYesNov 26, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management