Advisory

GHSA-wmjr-v86c-m9jj

Also known as: CVE-2025-71402

Summary

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

Details

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.

Severity

Low Basis: The source's own band: LOW

Dates

Published
2025-11-26 22:11 UTC
Modified
2026-08-02 03:56 UTC

Affected packages and fixes

better-auth

npm · All systems

Affected

  • introduced 1.3.34, fixed 1.4.0 (semver)

Fixed versions

1.4.0

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences