Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. better-auth
  4. ›
  5. GHSA-xg6x-h9c9-2m83

GHSA-xg6x-h9c9-2m83: Better Auth Has Two-Factor Authentication Bypass via Premature Session Caching (session.cookieCache)

April 3, 2026

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.


References

  • github.com/advisories/GHSA-xg6x-h9c9-2m83
  • github.com/better-auth/better-auth
  • github.com/better-auth/better-auth/security/advisories/GHSA-xg6x-h9c9-2m83

Code Behaviors & Features

Detect and mitigate GHSA-xg6x-h9c9-2m83 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.4.9

Fixed versions

  • 1.4.9

Solution

Upgrade to version 1.4.9 or above.

Impact 7.4 HIGH

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-288: Authentication Bypass Using an Alternate Path or Channel

Source file

npm/better-auth/GHSA-xg6x-h9c9-2m83.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 09 May 2026 12:19:03 +0000.