better-auth
1.7.25 · 14 Nov 2026MIT21M / weekRepositoryHomepagenpmAtom feed
Upgrading better-auth From 1.6.1 to 1.6.2
1 release in betweenevery note read
Before you upgrade
Tick each one off as you go- Breaking1.6.2
Security
12 advisories still affect 1.6.2
- Better Auth: Stale sessions persist after user deletion across admin, anonymous, and SCIM flowslow · GHSA-2vg6-77g8-24mp
- @better-auth/oauth-provider's OAuth authorization-code grant allows concurrent redemption when two token requests race the find-then-delete primitivehigh · GHSA-7w99-5wm4-3g79
- Better Auth has stored XSS in the auth-server origin via javascript: redirect_uri in oidc-provider and mcphigh · GHSA-86j7-9j95-vpqj
Upgrading to 1.7.7 clears them.
Fixes 1 advisory affecting 1.6.1
- Better Auth: OAuth callback accepts mismatched `state` when cookie-backed state storage is used without PKCEmoderate · GHSA-wxw3-q3m9-c3jr
- 1.6.2
Fixed OAuth state verification against cookie-stored nonce to prevent CSRF
Release by release
- Security
Fixed OAuth state verification against cookie-stored nonce to prevent CSRF
- Breaking
Prevented unverified TOTP enrollment from blocking sign-in
- New
Included enabled 2FA methods in sign-in redirect response
- Fixed
Fixed infinite router refresh loops in
nextCookies()by replacing cookie probe with header-based RSC detection - Fixed
Fixed cross-provider account collision in link-social callback
- Fixed
Included
RelayStatein signed SAML AuthnRequests
- Security
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.