
Cloud Vulnerability DB
A community-led vulnerabilities database
You are affected if you use better-auth with any of these:
secondaryStorage, from 0.8.1-beta.5.session.cookieCache with passkey registration, device authorization, or passwordless two-factor enrollment, from 1.6.25.Bulk revocation. With secondary storage, two session changes at the same time could drop a session from the user's session list. Revoking all sessions or banning the user then missed it.
Cached sessions. With the cookie cache, a revoked session keeps working until the cache maxAge ends, which is documented. Some features accepted that cached session to create a passkey or a new stored session that outlived the cache.
Both problems need an attacker who already holds a valid session for the account. They let that attacker keep access after the session is revoked. Neither problem gives access to an account without credentials.
Upgrade better-auth and @better-auth/passkey to 1.7.16, or to 1.8.0-beta.5 on the beta line.
Passkey registration, device authorization, two-factor enrollment and verification, social account linking, and phone number changes now check the session store, even with the cookie cache on. On 1.7.16, sessions created from API keys are refused on these routes, except two-factor enrollment and phone number changes. On 1.8.0-beta.5, they are refused on all of them.
Turn off session.cookieCache if revocation must take effect immediately. For bulk revocation, stop using secondaryStorage until you upgrade.
The secondary storage session list is updated by reading and writing it in two steps, so concurrent writers could drop a token. Bulk revocation now also records a cutoff time, and sessions created before it count as revoked even when the list missed them. The affected routes now read the session from the store instead of the cookie cache before creating a lasting credential or session.
Source: NVD
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."