@better-auth/passkey is vulnerable to Insufficient Session Expiration
42
CVE Score
Medium
Insufficient Session Expiration
The Better Auth passkey plugin accepts cached sessions when registering a passkey, even after the session has been revoked in the session store. An attacker who already holds a valid session can use it during the cache lifetime to register a passkey and keep access after the cached session expires.
Upgrade both @better-auth/passkey and better-auth to the patch version. Until you upgrade, disable session.cookieCache if revocation must take effect immediately.
You are affected if you use @better-auth/passkey within the vulnerable range and enable session.cookieCache in Better Auth. Exploitation requires an attacker who already holds a session for the account.
1.6.25 - 1.7.15
Fixed in 1.7.16@better-auth/passkey is vulnerable to Insufficient Session Expiration in versions 1.6.25 - 1.7.15.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.