better-auth
1.7.25 · 14 Nov 2026MIT21M / weekRepositoryHomepagenpmAtom feed
Upgrading better-auth From 0.8.8 to 1.7.17
176 releases in betweennotes for 166
Counted from 166 of 176 release notes. Advisories are counted from the advisory database, in full.
Start here
Before you upgrade
Tick each one off as you go- Breaking1.7.0
- Breaking1.7.0
- Breaking1.7.0
- Breaking1.7.0
- Breaking1.7.0
- Breaking1.7.0
- Breaking1.7.0
- Breaking1.7.0
- Breaking1.7.0
- Breaking1.7.0
Security
Fixes 18 advisories affecting 0.8.8
- Better Auth: Stale sessions persist after user deletion across admin, anonymous, and SCIM flowslow · GHSA-2vg6-77g8-24mp
- Better Auth Open Redirect Vulnerability in originCheck Middleware Affects Multiple Routeslow · GHSA-36rg-gfq2-3h56
- Better Auth affected by external request basePath modification DoShigh · GHSA-569q-mpph-wgww
- @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
- Better Auth has an Open Redirect Vulnerability in Verify Email Endpointhigh · GHSA-8jhw-6pjj-8723
- Better Auth: Unauthenticated API key creation through api-key pluginhigh · GHSA-99h5-pjcv-gr6v
- Better Auth has insecure cryptographic defaults in oidcProvider: alg=none advertised and plain PKCE accepted by defaulthigh · GHSA-9h47-pqcx-hjr4
- Better Auth URL parameter HTML Injection (Reflected Cross-Site scripting)moderate · GHSA-9x4v-xfq5-m8x5
- Better Auth vulnerable to unauthorized invitation acceptance via unverified email match in organization pluginhigh · GHSA-fmh4-wcc4-5jm3
- Better Auth has an account takeover issue via OAuth auto-link to unverified pre-registered emailhigh · GHSA-g38m-r43w-p2q7
- Beter Auth has an Open Redirect via Scheme-Less Callback Parametermoderate · GHSA-hjpm-7mrm-26w8
- Better Auth: Rate limiter keys IPv6 addresses individually and is bypassable via prefix rotationhigh · GHSA-p6v2-xcpg-h6xw
- Better Auth: OAuth refresh-token replay via missing client authentication on oidc-provider and mcp pluginscritical · GHSA-pw9m-5jxm-xr6h
- Better Auth allows bypassing the trustedOrigins Protection which leads to ATOhigh · GHSA-vp58-j275-797x
- Better Auth: OAuth callback accepts mismatched `state` when cookie-backed state storage is used without PKCEmoderate · GHSA-wxw3-q3m9-c3jr
- Better Auth's rou3 Dependency has Double-Slash Path Normalization which can Bypass disabledPaths Config and Rate Limitshigh · GHSA-x732-6j76-qmhm
- Better Auth Has Two-Factor Authentication Bypass via Premature Session Caching (session.cookieCache)critical · GHSA-xg6x-h9c9-2m83
- 1.7.15
Fixed organization and API key metadata, and OAuth proxy sign-ins with a
constructorfield inadditionalData, failing with a prototype pollution error - 1.7.7
Fixed a critical Magic Link account-takeover vulnerability.
- 1.6.11
Fixed an invitation takeover vulnerability by enabling
requireEmailVerificationOnInvitationby default and extending the verification gate togetInvitationandlistUserInvitations - 1.6.2
Fixed OAuth state verification against cookie-stored nonce to prevent CSRF
- 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.
Release by release
- Fixed
Fixed sessions created by a
session.delete.afterhook being treated as revoked during "revoke all sessions" when usingsecondaryStoragewithstoreSessionInDatabase - Fixed
Fixed remembered sign-ins and sign-ups to refresh their session even if an earlier sign-in in the same browser used
rememberMe: false - Fixed
Fixed denying a device authorization request to reject a revoked session that is still in the cookie cache
- Fixed
Fixed IP wildcard trusted origins such as
exp://192.168.*.*:*matching custom-scheme hosts with out-of-range or zero-padded octets - Fixed
Fixed the phone number plugin storing an empty
phoneNumberon sign-up and replacing a verified number when linking an account with an empty phone number - Fixed
Fixed TOTP verification rejecting API key sessions so they can now finish two-factor enrollment
- Fixed
Fixed trusted devices being ignored when an app runs the two-factor sign-in step from its own hook on another sign-in path, such as email OTP
- Fixed
- Fixed
Fixed revoked sessions staying usable with secondary storage or the cookie cache. Bulk revocation now ends sessions missing from the cached list, and passkey registration, device authorization, two-factor, social account linking, and phone number changes check the session store
- Fixed
Fixed phone numbers being stored before they are verified. Sign-up and sign-in reject a
phoneNumberin the request, social profiles no longer set an unverified number, and verification codes use their own namespace - Fixed
Fixed
/admin/update-userchanging phone numbers without permission. It now requiresuser:set-phone, so addset-phoneto custom access control statements - Fixed
Fixed email OTP accepting more guesses than
allowedAttemptsunder concurrent requests, and bound email change codes to the requesting account
- Fixed
- Security
Fixed organization and API key metadata, and OAuth proxy sign-ins with a
constructorfield inadditionalData, failing with a prototype pollution error - Fixed
Improved
BETTER_AUTH_SECRETSerror messages to report the entry position instead of including the entry value - Fixed
Fixed the admin
update-userendpoint to rejectdata.idwith a 400 error instead of attempting to change the user's primary key - Fixed
Fixed the admin plugin to reject banned users when a session is created outside an endpoint, such as through
internalAdapter.createSession
- Security
- Fixed
Fixed two-factor TOTP to accept imported Base32 secrets stored as
base32:<secret>
- Fixed
- Fixed
Fixed type declarations so type-only exports are no longer listed as values, making a value import fail type checking instead of failing at runtime
- Fixed
- Fixed
Fixed the JWT plugin to verify JWTs and session cookie-cache JWTs with the stored key's algorithm instead of the token header's, and to warn when signing or verifying a JWT without an issuer or audience
- Fixed
Fixed OAuth callbacks completed through the OAuth proxy to run the same checks as the standard OAuth callback, including issuer and ID token nonce validation
- Fixed
Fixed
auth.api.getSession()to keep the original database error aserror.causewhen the session lookup fails
- Fixed
- Fixed
Fixed repeated PostgreSQL migration diffs for
int8columns. - Fixed
Fixed database-backed rate limiting returning an excessively large
X-Retry-Aftervalue.
- Fixed
- Fixed
Fixed Captcha and OpenAPI plugin subpath imports and type resolution for
better-auth/plugins/multi-sessionandbetter-auth/test. - Fixed
Fixed Google One Tap sign-ins not recording
googleas the last login method. - Fixed
Fixed imports from
better-auth/plugins/one-tapfailing with a not-exported error. - Fixed
Fixed Google One Tap ignoring plugin-level
autoSelectandcancelOnTapOutsidesettings. - Fixed
Fixed Google One Tap sign-ins ignoring configured Google profile mapping and user info updates.
- Fixed
Fixed Google One Tap calling a prompt method unsupported by FedCM and retrying skipped prompts.
- Fixed
26 internal lines (docs, tests, tooling) left out.
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.