better-auth
1.7.25 · 14 Nov 2026MIT21M / weekRepositoryHomepagenpmAtom feed
1.7.27 is the newest release of 1.x.
In short
4 fixed
Security
4 advisories affect 1.6.15; 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
Release note
The section about better-auth of a note shared by several packages.
better-auth
Bug Fixes
Fixed the
listSessionsendpoint to properly enforce fresh-age session checksFixed
unbanUser,setRole, andadminUpdateUserto returnUSER_NOT_FOUNDinstead of a generic 500 when the target user does not existFixed Kysely migration constant import path to restore Kysely 0.28 and 0.29 compatibility
Improved cookie regex character ranges for more accurate cookie parsing
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.