GHSA-wmjr-v86c-m9jj Better Auth's multi-session sign-out hook allows forged cookies to revoke arbitrary sessions
LowCVSS 2.0
- Published
- Updated
- Exploit status
- No public exploit known
Description
Summary
A vulnerability was identified in the multi-session plugin for Better Auth, specifically in the /sign-out after-hook. The hook trusts raw multi-session cookies and forwards the extracted values directly to internalAdapter.deleteSessions without verifying the cookie signature. Because cookie values are not validated with getSignedCookie (or any equivalent check), an attacker can supply a forged _multi-* cookie to trigger deletion of arbitrary session tokens.
Upgrade path
1 package: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| npm better-auth(npm) | >= 1.3.34, < 1.4.0 | 1.4.0 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm better-auth(npm) | >= 1.3.34, < 1.4.0 | 1.4.0 |
References
- github.com vendor-advisory
- github.com patch
- github.com
- github.com