Skip to main content

better-auth CVE-2026-67337

| EUVDEUVD-2026-51837 HIGH
Authentication Bypass Using an Alternate Path or Channel (CWE-288)
2026-08-01 VulnCheck GHSA-8pwm-pjg9-4h92
7.1
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain valid primary credentials
  2. Delivery
    Initiate sign-in (primary auth succeeds)
  3. Exploit
    Session cached prematurely before 2FA gate
  4. Execution
    Submit subsequent request using cached session cookie
  5. Impact
    Access protected routes without 2FA verification

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Alternate path authentication
Exploitation Conditions

Exploitation requires three concrete conditions to be simultaneously true: (1) the target application must have better-auth's two-factor authentication plugin enabled; (2) the session.cookieCache option must be enabled in the better-auth configuration - this is a non-default feature that must be explicitly opted into; and (3) the attacker must possess valid primary credentials (username and password) for a target account subject to 2FA, placing this in the CVSS PR:L (low-privilege) category. What limits exploitation: applications using better-auth without session.cookieCache, or without 2FA, are not affected; this is not a default-configuration attack. The bypass is also limited to confidentiality (access to protected routes and data) - there is no integrity or availability impact described or implied by the CVSS vector.

Impact

The CVSS 4.0 base score of 7.1 (AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N) reflects that exploitation requires valid primary credentials (PR:L) but is otherwise straightforward over the network with no user interaction. The confidentiality impact is high on the vulnerable system, since 2FA is typically deployed to protect high-value accounts and sensitive routes. Critically, exploitation is conditional: both two-factor authentication and session.cookieCache must be simultaneously enabled, which is a non-default combination. The CVSS 4.0 vector assigns AT:N (no attack requirements beyond the attacker's control), but this understates the deployment prerequisite - only applications with both features active are affected. No public exploit code and no KEV listing exist at time of analysis, reducing immediate mass-exploitation risk. However, because the bypass is conceptually trivial once prerequisites are met (no memory corruption, no timing race - just a cache lookup ordering flaw), the barrier to exploitation is effectively the availability of valid credentials, not technical sophistication.

Exploit ScenarioDerived

An attacker who has obtained valid username and password credentials for a target account - through phishing, credential stuffing, or prior breach - initiates a sign-in request against an application using better-auth with both 2FA and session.cookieCache enabled. After primary authentication succeeds, the resulting session is written to the cookie cache as valid before the 2FA challenge is presented. The attacker then makes a subsequent authenticated request; the cache returns the pre-2FA session as fully authenticated, and the application grants access to protected routes without the attacker ever supplying or intercepting a one-time code. No public exploit code is known to exist at time of analysis.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Aug 01, 2026

Two-factor authentication bypass in better-auth (npm) before version 1.4.9 allows network-accessible attackers holding valid primary credentials to access protected application routes without completing second-factor verification. The flaw stems from premature session caching: when session.cookieCache is enabled alongside 2FA, the session generated after primary sign-in is stored as fully valid before the second factor is checked, and subsequent lookups return the cached authenticated session without re-evaluating the 2FA requirement. No public exploit code or CISA KEV listing has been identified at time of analysis, but the attack is conceptually straightforward for any user or attacker who already possesses a valid username and password.

RemediationAI

The primary fix is to upgrade better-auth to version 1.4.9, which corrects the session caching logic to ensure sessions are not treated as fully authenticated until all required authentication steps, including 2FA, are completed. This is confirmed by both the GitHub GHSA-xg6x-h9c9-2m83 advisory and the npm package vulnerability data. As a temporary workaround for deployments that cannot upgrade immediately, disable the session.cookieCache option when two-factor authentication is active - this eliminates the premature caching path at the cost of increased database load on session lookups. Disabling cookieCache does not affect correctness, only performance. No other workarounds are described in available advisories. Advisory: https://github.com/better-auth/better-auth/security/advisories/GHSA-xg6x-h9c9-2m83.

Affected VersionsENISA

better-auth 0 <1.4.9

Affected Packages

npm better-auth fix: 1.4.9

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in npm

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

better-auth is an open-source authentication framework for Node.js/TypeScript applications distributed via npm (CPE: cpe:2.3:a:better-auth:better-auth:*:*:*:*:*:*:*:*). The session.cookieCache feature is a performance optimization that stores resolved session data in a short-lived cookie-side cache to avoid repeated database lookups on every request. The root cause maps to CWE-288 (Authentication Bypass Using an Alternate Path or Channel): the caching layer represents an alternate path to session validation that bypasses the 2FA gate applied during the primary authentication flow. When the cache is consulted on a subsequent request, it returns the pre-2FA session object as fully authenticated, effectively short-circuiting the intended multi-step authentication logic.

Know when Better Auth gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 7.1 HIGH
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
vuln.today AI 5.3 MEDIUM

AC:H reflects the non-default dual-configuration prerequisite (2FA and cookieCache both active); PR:L for required primary credentials; no integrity or availability impact.

3.1 AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
4.0 AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Aug 01, 2026 - 13:01 EUVD
CVE Published
Aug 01, 2026 - 12:22 cve.org
HIGH 7.1

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

better-auth (npm) before version 1.4.9 contains a two-factor authentication bypass flaw affecting users with valid primary credentials. While no public exploit has been identified at time of analysis, organizations using this library with session caching enabled face a critical vulnerability that directly undermines second-factor authentication-a primary defense against account compromise and credential theft.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.3%
Top 81% exploitable
Prevalence
Medium
growing npm auth library, not yet ubiquitous enterprise standard
Social Media
1
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment CIRCL GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

36
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

CVE-2024-56734 HIGH POC
7.9 Dec 30

Better Auth is an authentication library for TypeScript. Rated high severity (CVSS 7.9), this vulnerability is remotely

CVE-2026-41427 HIGH POC
7.1 Apr 24

Authorization bypass in the @better-auth/oauth-provider plugin for Better Auth (versions >= 1.4.8-beta.7 and < 1.6.5, pl

CVE-2026-67330 CRITICAL
9.4 Aug 01

Privilege-escalating account takeover in the @better-auth/scim plugin (versions 1.4.0-beta.27 through 1.6.21 and 1.7.0-b

CVE-2026-67336 CRITICAL
9.4 Aug 01

Authentication bypass in Better Auth before 1.6.11 stems from insecure cryptographic defaults in the legacy oidcProvider

CVE-2025-71401 CRITICAL
9.3 Aug 02

Denial of service in Better Auth (npm) before 1.4.2 lets an unauthenticated remote attacker poison the router's base pat

CVE-2026-110864 CRITICAL
9.1 Oct 14

Authentication bypass in Better Auth's OAuth Proxy plugin (versions 1.5.0-beta.12 through 1.7.6) lets unauthenticated re

CVE-2025-71399 HIGH
8.8 Aug 02

Path normalization bypass in Better Auth before v1.4.5 allows unauthenticated remote attackers to circumvent `disabledPa

CVE-2026-67331 HIGH
8.7 Aug 01

Authorization bypass in @better-auth/scim versions 1.5.0 through 1.7.0-beta.3 allows any authenticated user to fully tak

CVE-2026-67327 HIGH
8.7 Aug 01

Pre-account hijacking in better-auth (npm) allows a remote attacker to gain persistent, password-based access to any vic

CVE-2026-67328 HIGH
8.6 Aug 01

Multiple authentication bypass vulnerabilities in @better-auth/sso before version 1.6.21 enable low-privileged attackers

CVE-2026-80192 HIGH
8.6 Aug 25

Two domain-ownership authentication bypass flaws in @better-auth/sso allow authenticated organization owners to compromi

CVE-2026-109346 HIGH
8.5 Oct 12

Better Auth versions 1.3.8-beta.3 to before 1.7.0-rc.3 with the deviceAuthorization plugin enabled are vulnerable to a U

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy