CVE-2026-134321 Details
Description
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.
A vulnerability exists in better-auth versions 0.8.1-beta.5 prior to 1.7.16 and 1.8.0-beta.0 prior to 1.8.0-beta.5, as well as in @better-auth/passkey versions 1.6.25 prior to 1.7.16 and 1.8.0-beta.0 prior to 1.8.0-beta.5. This vulnerability allows revoked sessions to remain valid because the secondary storage session lists are updated non-atomically, and certain routes trust cookie-cached sessions. An attacker with a valid session can bypass bulk revocation or bans, or use a revoked cached session to register a passkey or create a lasting session.
Users can upgrade better-auth and @better-auth/passkey to version 1.7.16 or 1.8.0-beta.5. After upgrading, passkey registration, device authorization, and two-factor enrollment will check the session store instead of the cookie cache. If immediate revocation is necessary, turn off session.cookieCache. For bulk revocation, avoid using secondaryStorage until after upgrading.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Nov 21, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-362 | Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| better-auth | >= 0.8.1-beta.5, < 1.7.16 (semver) >= 1.8.0-beta.0, < 1.8.0-beta.5 (semver) |
CPE
Remediation
| |
| better-auth/passkey | >= 1.6.25, < 1.7.16 (semver) >= 1.8.0-beta.0, < 1.8.0-beta.5 (semver) |
CPE
Remediation
| |
Change History
1 change record found show changes
| Date | Action | Recorded By |
|---|---|---|
| Nov 21, 2026 | New CVE Received | [email protected] |
Volerion