{"id":"CVE-2026-67337","aliases":["CVE-2026-67337","GHSA-xg6x-h9c9-2m83"],"related":[],"kind":"vulnerability","state":"published","title":"better-auth before 1.4.9 Two-Factor Authentication Bypass via session.cookieCache","summary":"better-auth versions before 1.4.9 contain a two-factor authentication bypass vulnerability when session.cookieCache is enabled. Attackers with valid primary credentials can access authenticated routes without completing second-factor verification by exploiting premature session caching.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"better-auth versions before 1.4.9 contain a two-factor authentication bypass vulnerability when session.cookieCache is enabled. Attackers with valid primary credentials can access authenticated routes without completing second-factor verification by exploiting premature session caching.","source":"cvelist"},{"lang":"en","text":"### Summary\n\nUnder 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.\n\n---\n\n### Description\n\nWhen 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.\n\nHowever, 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.\n\nThis results in a situation where session validity can be established before all authentication constraints are satisfied.\n\n---\n\n### Impact\n\nAn attacker (or user) with valid primary credentials may gain access to protected application routes without completing the required second authentication factor.\n\nAny application using `better-auth` with both two-factor authentication and session cookie caching enabled may be affected.\n\n---\n\n### Mitigation\n\n* Upgrade to a version of `better-auth` that includes the fix for this issue.\n* Ensure that session caching does not treat sessions as fully authenticated until all required authentication steps, including 2FA, are completed.\n* As a temporary workaround, disable `session.cookieCache` when using two-factor authentication.","format":"markdown","source":"ghsa"}],"published":"2026-04-03T03:29:59.000Z","modified":"2026-09-08T20:34:34.997Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N","score":7.1,"rating":"HIGH"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N","score":7.1,"rating":"HIGH"},{"scorer":"VulnCheck","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":6.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N","rating":"CRITICAL"}],"cwes":["CWE-288"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"1.4.9","status":"affected"},{"type":"semver","version":"1.4.9","status":"unaffected"}],"vendor":"better-auth","product":"better-auth","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.4.9"}],"ecosystem":"npm","package":"better-auth","purl":"pkg:npm/better-auth","source":"ghsa"}],"references":[{"url":"https://github.com/better-auth/better-auth/security/advisories/GHSA-xg6x-h9c9-2m83","tags":["vendor-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.vulncheck.com/advisories/better-auth-before-two-factor-authentication-bypass-via-session-cookiecache","tags":["third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://github.com/better-auth/better-auth","tags":["package"],"sources":["ghsa"]}],"credits":["TriDecent"],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-08-03T18:31:02.886Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-67337","url":"https://www.cve.org/CVERecord?id=CVE-2026-67337","licence":"CVE Terms of Use","modified":"2026-08-03T18:31:13.051Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-xg6x-h9c9-2m83","url":"https://github.com/advisories/GHSA-xg6x-h9c9-2m83","licence":"CC-BY-4.0","modified":"2026-08-02T03:56:49.020Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-67337","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-67337","licence":"Public domain","modified":"2026-09-08T20:34:34.997Z"}],"updatedAt":"2026-11-25T22:59:30.795Z","epss":{"score":0.00269,"percentile":0.20344,"date":"2026-12-02T12:00:21.000Z"}}