GHSA-wmjr-v86c-m9jj

Better Auth's multi-session sign-out hook allows forged cookies to revoke arbitrary sessions

At a glance

Published
Updated
CVE
CVE-2025-71402
CVSS_V4
CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:P/VC:L/VI:L/VA:L/SC:L/SI:L/SA:N

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.

Affected packages

PackageVersions
npm · better-authintroduced 1.3.34, fixed 1.4.0

References

Sources

SourceLicence
OSV.devCC-BY 4.0 — GitHub Advisory Database