Skip to main content

better-auth CVE-2026-134321

| EUVDEUVD-2026-132258 LOW
Race Condition (CWE-362)
2026-11-21 VulnCheck GHSA-hrqw-cfx5-6fr3
2.3
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Hold valid account session
  2. Delivery
    Admin issues bulk revocation or ban
  3. Exploit
    Exploit non-atomic session-list write or cookie-cached session
  4. Execution
    Register passkey or create stored session
  5. Impact
    Retain durable access post-revocation

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V15 - Secure Coding and Architecture Concurrency control, locking
MITRE ATT&CK

1 technique across 1 tactic: Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

The attacker must already hold a valid authenticated session for the target account (per the GHSA advisory, neither path grants access without existing credentials). Two distinct, configuration-gated paths: (1) the application must use secondaryStorage (affected from 0.8.1-beta.5) - two concurrent session-list read-modify-write operations drop a token so bulk 'revoke all sessions' or ban misses it; this requires a timing race around the revocation event. (2) the application must have session.cookieCache enabled AND use passkey registration, device authorization, or passwordless two-factor enrollment (affected from 1.6.25) - a revoked-but-cached session is accepted on those routes to create a passkey or a new stored session that outlives the cache maxAge. LIMITING FACTORS: no account takeover without an existing valid session; exploitation applies only to these non-default feature combinations; the secondary-storage path depends on a concurrency/timing window; impact is persistence of already-held access, not credential theft.

Impact

Multiple signals converge on LOW real-world priority, consistent with the vuln.today 'monitor' decision label and the CVSS 4.0 base score of 2.3. The vector (AV:N/AC:H/AT:P/PR:N/UI:P, VC:L/VI:L/VA:N) describes a network-reachable but high-complexity, precondition-dependent issue with only limited confidentiality and integrity impact and no availability impact. There is no CISA KEV listing and no EPSS score in the provided data, so there is no evidence of active or probable near-term exploitation; the only references are vendor/coordinator advisories (GHSA and VulnCheck), not working exploit code, so this is 'no public exploit identified at time of analysis.' A key conflict must be flagged: the CVSS vector encodes PR:N (no privileges), but the GHSA advisory explicitly states BOTH problems 'need an attacker who already holds a valid session for the account' and that neither grants access without credentials - so the practical privilege requirement is higher than PR:N implies; treat this as a post-authentication session-lifecycle weakness, not an unauthenticated flaw. Net: this is a genuine but narrow session-revocation-bypass affecting only specific configurations, not a high-urgency item; apply the fix on a normal patch cadence, prioritizing deployments that rely on bulk revocation/bans for security (e.g. incident response, account bans).

Exploit ScenarioDerived

An attacker who already controls a valid session for an account (for example a banned user or a compromised-then-revoked session) retains access after an administrator issues a bulk revocation or ban, because concurrent secondary-storage session-list writes dropped the token, or because a cookie-cached session is still accepted. Using that still-valid session, the attacker registers a new passkey or completes device-authorization/passwordless-2FA enrollment to mint a durable credential that outlives the cache and survives the revocation. No public working exploit code is identified; only vendor advisories exist.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.1% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Nov 21, 2026

Revoked sessions in the better-auth authentication library (and its @better-auth/passkey companion) can remain usable, letting an attacker who already holds a valid session survive a bulk 'revoke all sessions' action or a user ban, and letting a revoked-but-cached session be replayed on selected routes to register a passkey or mint a new stored session that outlives the cookie cache. Two configuration-gated paths are involved: deployments using secondaryStorage from 0.8.1-beta.5 where a concurrent read-modify-write of the session list drops a token, and deployments with session.cookieCache enabled plus passkey registration, device authorization, or passwordless two-factor enrollment from 1.6.25. The vulnerability neither grants access without existing credentials nor enables account takeover, and no public exploit code has been identified at time of analysis; the assessed severity is LOW (CVSS 4.0 base 2.3; assessed CVSS 3.1 AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N), consistent with the vuln.today 'monitor' decision label.

RemediationAI

Vendor-released patch: upgrade better-auth and @better-auth/passkey to 1.7.16, or to 1.8.0-beta.5 on the 1.8.0 beta line (all four vulnerable ranges are closed by these two releases). Until the upgrade is applied, the advisory's workarounds are to disable session.cookieCache if revocation must take effect immediately - accepting the loss of cached-session performance and the extra store lookups per request - and, for the bulk-revocation path, to stop using secondaryStorage until upgrading, which shifts session state back to the primary store. Note that after upgrading to 1.7.16, sessions created from API keys are refused on passkey registration, device authorization, social account linking and two-factor verification routes (but still permitted for two-factor enrollment and phone number changes); on 1.8.0-beta.5 they are refused on all of those routes, so integrations that rely on API-key-created sessions for these flows need to move to a full user session. Full details and the affected-feature checklist are in GHSA-fvxx-76fc-893x (https://github.com/better-auth/better-auth/security/advisories/GHSA-fvxx-76fc-893x) and the VulnCheck advisory (https://www.vulncheck.com/advisories/better-auth-before-1.7.16-session-revocation-bypass-via-secondary-storage-and-cookie-cache).

Affected VersionsENISA

better-auth 1.6.25 <1.7.16
better-auth 0.8.1-beta.5 <1.7.16
better-auth 1.8.0-beta.0 <1.8.0-beta.5

Affected Packages

euvd better_auth fix: 1.7.16, 1.8.0-beta.5

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

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

Technical ContextAI · show details

better-auth stores sessions either in its primary store, in an optional secondary storage backend (e.g. Redis/KV style), or in a signed cookie cache that the client carries and the server trusts until maxAge expires. With secondaryStorage the per-user session list is maintained by reading the current list and writing it back in two separate steps, so concurrent writers can overwrite each other and silently drop a session token - a classic non-atomic read-modify-write race (CWE-362) that causes the session list to diverge from reality. Because bulk revocation and bans operated on that list, a dropped token escaped revocation; the fix adds a revocation cutoff timestamp so sessions created before the cutoff count as revoked even if the list missed them. The second path is a session-expiry weakness (CWE-613): with session.cookieCache enabled, a revoked session is expected to keep working until the cache maxAge ends (documented behaviour), but passkey registration, device authorization, passwordless two-factor enrollment and verification, social account linking and phone number changes accepted that cached session as proof of liveness and used it to create a long-lived credential or stored session that survives the cache window. The patched routes now read the session from the store rather than the cookie cache before issuing a lasting credential, and on 1.7.16 sessions created from API keys are additionally refused on these routes except two-factor enrollment and phone number changes (refused on all of them from 1.8.0-beta.5).

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 2.3 LOW
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
vuln.today AI 4.2 MEDIUM

Attacker must already hold a valid session so PR:L not PR:N; AC:H reflects the concurrency/timing window and required non-default config; impact limited to retained access, so C:L/I:L/A:N.

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

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

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

Lifecycle Timeline

1
Patch available
Nov 21, 2026 - 18:02 EUVD

DescriptionCVE.org

better-auth from 0.8.1-beta.5 before 1.7.16 and 1.8.0-beta.0 before 1.8.0-beta.5, and @better-auth/passkey from 1.6.25 before 1.7.16 and 1.8.0-beta.0 before 1.8.0-beta.5, let revoked sessions stay valid because secondary storage session lists are updated non-atomically and some routes trust cookie-cached sessions. An attacker holding a valid session can evade bulk revocation or bans, or use a revoked cached session to register a passkey or create a lasting session.

Threat Intelligence Overview

EPSS Score
0.1%
Top 97% exploitable
Prevalence
Medium
popular open-source TypeScript/npm auth library, significant but not universal adoption
Data Quality
5 sources
Confidence: Medium

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 LOW
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.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· derived
Defer
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Low
Technical Impact
Partial

Priority Score

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

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Race conditions occur when multiple concurrent requests exploit the brief time gap between checking a condition and acting upon it (TOCTOU - Time of Check, Time of Use).

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-114607 CRITICAL
9.1 Oct 22

Unauthenticated OAuth state values can be redeemed as Magic Link tokens in Better Auth 1.4.0-beta.18 through 1.7.6, lett

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-2026-121802 CRITICAL
9.1 Nov 04

Account takeover in @better-auth/expo (1.4.0-beta.6 through 1.7.15, and 1.8.0-beta.0 through 1.8.0-beta.4) lets an unaut

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-134322 HIGH
8.6 Nov 21

Improper authentication in the better-auth phone number plugin (0.4.12-beta.7 through 1.7.15, and 1.8.0-beta.0 through 1

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