better-auth
1.7.25 · 14 Nov 2026MIT21M / weekRepositoryHomepagenpmAtom feed
1.7.27 is the newest release of 1.x.
In short
1 new9 fixed
Security
5 advisories affect 1.6.19; 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
Features
Added support for pre-binding device codes to a specific user in the device authorization plugin
Bug Fixes
Fixed headerless session checks
Fixed cookie cache fallback lookup
Fixed
sendVerificationEmailerrors not being surfaced to the clientFixed auth client return types not being emitted correctly in TypeScript declaration builds
Fixed session and account cache cookies being silently dropped when near the browser's per-cookie size limit by splitting them into chunks
Fixed single-use verification flows (such as magic-link) hanging on connection-limited database adapters by reusing active transactions
Fixed the domain not being included when clearing cross-subdomain cookies in the
last-login-methodpluginFixed the
oauth-popupplugin leaking internal OAuth state keys intoadditionalDataReverted the headerless session check fix
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.