Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessHold valid account session
-
DeliveryAdmin issues bulk revocation or ban
-
ExploitExploit non-atomic session-list write or cookie-cached session
-
ExecutionRegister passkey or create stored session
-
ImpactRetain 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
1DescriptionCVE.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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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).
More in Better Auth
View allBetter Auth is an authentication library for TypeScript. Rated high severity (CVSS 7.9), this vulnerability is remotely
Authorization bypass in the @better-auth/oauth-provider plugin for Better Auth (versions >= 1.4.8-beta.7 and < 1.6.5, pl
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
Authentication bypass in Better Auth before 1.6.11 stems from insecure cryptographic defaults in the legacy oidcProvider
Denial of service in Better Auth (npm) before 1.4.2 lets an unauthenticated remote attacker poison the router's base pat
Unauthenticated OAuth state values can be redeemed as Magic Link tokens in Better Auth 1.4.0-beta.18 through 1.7.6, lett
Authentication bypass in Better Auth's OAuth Proxy plugin (versions 1.5.0-beta.12 through 1.7.6) lets unauthenticated re
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
Path normalization bypass in Better Auth before v1.4.5 allows unauthenticated remote attackers to circumvent `disabledPa
Authorization bypass in @better-auth/scim versions 1.5.0 through 1.7.0-beta.3 allows any authenticated user to fully tak
Pre-account hijacking in better-auth (npm) allows a remote attacker to gain persistent, password-based access to any vic
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
EUVD-2026-132258
GHSA-hrqw-cfx5-6fr3
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB