Track vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
2.3
CVE-2026-134321: better-auth allows revoked sessions to stay active
CVE-2026-134321 · published 12 days ago
Summary
Versions of the better-auth library prior to 1.7.16 (and certain early beta releases) may keep a session usable after it has been revoked because the list of revoked sessions is not updated correctly and some parts of the system rely on a cached cookie. This means an attacker who already has a valid login could avoid being logged out or banned, and could use the stale session to create new credentials. Upgrade to the latest version of better-auth as soon as possible to ensure revoked sessions are properly terminated.
What to do
The CVE record does not list a fixed version. Check the vendor's site or the advisory links below - a fix may already be released.
Affected software
| Vendor | Product | Affected versions |
|---|---|---|
| better-auth | better-auth |
< 1.7.16 < 1.8.0-beta.5 |
Original advisory text
better-auth before 1.7.16 Session Revocation Bypass via Secondary Storage and Cookie Cache
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.
References
- https://github.com/better-auth/better-auth/security/advisories/GHSA-fvxx-76fc-89... vendor-advisory
- https://www.vulncheck.com/advisories/better-auth-before-1.7.16-session-revocatio... third-party-advisory
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/134xxx/CVE-2026-1343... Vendor Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2026-134321 Vendor Advisory
Internet-facing
60 days
Internal
At next upgrade
- Not known to be exploited
- Needs hands-on effort to exploit
- Gives an attacker partial control
Severity
2.3
Low
Type
CWE-362Race Condition
Timeline
Published21 Nov 2026
Updated2 Dec 2026
First seen21 Nov 2026
Sources
CVE-2026-134321 · NVD
CVE-2026-134321 · MITRE
CVE-2026-134321 · OSV
GHSA-fvxx-76fc-893x · GHSA
Track software like this
Free during beta