better-auth
1.7.25 · 14 Nov 2026MIT21M / weekRepositoryHomepagenpmAtom feed
1.7.27 is the newest release of 1.x.
In short
10 fixed
Security
5 advisories affect 1.6.21; 1.7.7 fixes them
- Criticalbetter-auth: OAuth state can be used as a Magic Link to sign in as another userGHSA-965c-763c-88jm · 27 Oct 2026Fixed in 1.7.7
- Highbetter-auth: OAuth Proxy lets an attacker sign in as another userGHSA-r4xp-prcw-77qf · 27 Oct 2026Fixed in 1.7.7
- Highbetter-auth: Device login approval does not show the requesting client or permissionsGHSA-q84f-53jg-9ppm · 27 Oct 2026Fixed in 1.7.0
- HighBetter Auth: Account takeover via pre-account hijacking on magic-link and email-OTP sign-inGHSA-qq9h-g4jm-xgf3 · 24 Jul 2026Fixed in 1.6.22
- Low@better-auth/drizzle-adapter: Concurrent requests can exceed rate limits on PostgreSQLGHSA-44jh-23m7-hpcf · 27 Oct 2026Fixed in 1.7.7
Release note
The section about better-auth of a note shared by several packages.
better-auth
Bug Fixes
Fixed rate limits to be enforced before plugin request handlers run
Fixed admin permission changes and bans to take effect immediately, even when session cookie cache is enabled
Fixed
deviceAuthorization()throwing aZodErrorwhen called without aschemaoption under Zod v4Fixed Google hosted-domain validation to apply consistently across all sign-in flows, including Google One Tap
Fixed OAuth proxy to reject profile callbacks that do not match an issued OAuth state, preventing session creation with stale state
Fixed OAuth sign-up and account linking to ignore provider profile values for fields marked
input: falseFixed PayPal sign-in to validate user info against the verified ID token subject
Fixed SIWE sign-in to reject emails that already belong to another account, preventing one email from being attached to two accounts
Fixed two-factor verification to lock out after five wrong codes for TOTP and backup codes, returning
TOO_MANY_ATTEMPTS_REQUEST_NEW_CODEFixed the username plugin to only store
displayUsernamefallbacks that pass username validation during email sign-up
For detailed changes, see CHANGELOG
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.