better-auth
1.7.25 · 14 Nov 2026MIT21M / weekRepositoryHomepagenpmAtom feed
Upgrading better-auth From 1.4.22 to 1.5.0
1 release in betweenevery note read
- 3
- changes to make
- 0
- advisories fixed
- 64
- new
- 10
- fixes
Start here
Before you upgrade
Tick each one off as you go- Breaking1.5.0
- Breaking1.5.0
- Breaking1.5.0
Security
13 advisories still affect 1.5.0
- Better Auth: Stale sessions persist after user deletion across admin, anonymous, and SCIM flowslow · GHSA-2vg6-77g8-24mp
- Better Auth: OAuth refresh-token rotation forks the token family on concurrent redemptionhigh · GHSA-392p-2q2v-4372
- @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
Upgrading to 1.7.7 clears them.
- 1.5.0
customSyntheticUseroption: Support plugin fields in enumeration-protected responses (#8097). - 1.5.0
Prevent OTP reuse via race condition: Atomically invalidate OTPs on use.
- 1.5.0
Prevent user enumeration: In email-otp when sign-up is disabled, and on sign-up with required email verification.
- 1.5.0
Stricter default rate limits: For password reset and phone number verification endpoints.
- 1.5.0
Separate CSRF and origin checks: More granular request validation.
- 1.5.0
Prevent trial abuse: Check all user subscriptions before granting a free trial.
- 1.5.0
SAML ACS error redirect hardening: Prevent open redirect in error flows.
- 1.5.0
IPv6 address normalization and subnet support: For rate limiting and IP-based rules.
- 1.5.0
XML parser hardening: Configurable size limits for SAML responses and metadata.
Release by release
- Security
customSyntheticUseroption: Support plugin fields in enumeration-protected responses (#8097). - Security
Prevent OTP reuse via race condition: Atomically invalidate OTPs on use.
- Security
Prevent user enumeration: In email-otp when sign-up is disabled, and on sign-up with required email verification.
- Security
Stricter default rate limits: For password reset and phone number verification endpoints.
- 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.