Description
better-auth versions greater than 1.3.34 and before 1.4.0 contain a vulnerability in the multi-session plugin's /sign-out after-hook, which trusts raw multi-session cookies and forwards extracted values to internalAdapter.deleteSessions without verifying the cookie signature (e.g., via getSignedCookie). An attacker can supply a forged _multi-* cookie to trigger deletion of arbitrary session tokens.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| better-auth | better-auth | < 1.4.0 | 1.4.0 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | better-auth | >= 1.3.34, < 1.4.0 | 1.4.0 | GHSA-wmjr-v86c-m9jj |
References
- GitHub Security Advisory (GHSA-wmjr-v86c-m9jj) vendor-advisory
- VulnCheck Advisory: better-auth before 1.4.0 Session Revocation via Forged Cookie third-party-advisory