CVE-2026-134321
Deferred Deferred - Pending Action

Session Fixation in Better-Auth Library

Vulnerability report for CVE-2026-134321, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-11-21

Last updated on: 2026-11-21

Assigner: VulnCheck

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-11-21
Last Modified
2026-11-21
Generated
2026-11-21
AI Q&A
2026-11-21
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 7 associated CPEs
Vendor Product Version / Range
better-auth better-auth to 1.7.16 (exc)
better-auth better-auth From 1.8.0-beta.0 (inc) to 1.8.0-beta.5 (exc)
better-auth better-auth From 0.8.1-beta.5 (inc)
better-auth better-auth From 1.6.25 (inc) to 1.7.16 (exc)
better-auth better-auth *
better-auth better-auth to 1.8.0-beta.5 (exc)
better-auth passkey to 1.8.0-beta.5 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-362 The product contains a concurrent code sequence that requires temporary, exclusive access to a shared resource, but a timing window exists in which the shared resource can be modified by another code sequence operating concurrently.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability is a session revocation bypass in better-auth and @better-auth/passkey libraries. It occurs because session lists in secondary storage are updated non-atomically, and some routes trust cookie-cached sessions. This allows attackers with valid sessions to bypass revocation or bans, or reuse revoked cached sessions to register passkeys or maintain access.

Detection Guidance

Check if your better-auth or @better-auth/passkey versions fall within the vulnerable ranges (better-auth >= 0.8.1-beta.5, < 1.7.16; better-auth >= 1.8.0-beta.0, < 1.8.0-beta.5; @better-auth/passkey >= 1.6.25, < 1.7.16). Review session management logs for non-atomic updates or cookie cache reliance.

Impact Analysis

If you use affected versions of better-auth or @better-auth/passkey, an attacker with a valid session could evade account bans or revocations. They might maintain unauthorized access even after revocation by exploiting non-atomic session updates or cached cookies. This could lead to continued account compromise or unauthorized actions.

Compliance Impact

This vulnerability could lead to unauthorized session persistence, potentially violating data protection requirements under GDPR and HIPAA. GDPR mandates timely session revocation for user data access control, while HIPAA requires session termination to prevent unauthorized access to protected health information. The flaw allows revoked sessions to remain active, risking non-compliance with access control and audit logging requirements.

Mitigation Strategies

Upgrade to patched versions (better-auth >= 1.7.16 or >= 1.8.0-beta.5, @better-auth/passkey >= 1.7.16). Disable session.cookieCache temporarily or avoid secondaryStorage until upgrading. Monitor sessions for revoked access attempts.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-134321. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...