better-auth
1.7.25 · 14 Nov 2026MIT21M / weekRepositoryHomepagenpmAtom feed
1.7.27 is the newest release of 1.x.
In short
1 new6 fixed
Security
Fixes 1 advisory that affected 1.6.12
- HighBetter Auth has stored XSS in the auth-server origin via javascript: redirect_uri in oidc-provider and mcpGHSA-86j7-9j95-vpqj · 7 Jul 2026Fixed in 1.6.13
4 advisories affect 1.6.13; 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
Features
Added support for server-side
accountInfocalls with an optionaluserIdparameter, allowing trusted callers to read provider profiles without constructing session headers
Bug Fixes
Clarified that
viewBackupCodesis a server-only function not accessible via HTTP in its API documentationFixed Google One Tap authenticating the wrong user when the presented Google account is already linked to a different local user, by resolving identity through the shared OAuth path
Fixed
storeStateStrategydefaulting to"cookie"instead of"database"when onlysecondaryStorageis configured, preventing oversized-cookie errors on platforms like AWS LambdaFixed
updateUserInfoOnLinknot being applied when linking accounts through the standard OAuth redirect flowFixed
oidc-providerandmcpplugins accepting invalidredirect_urischemes such asjavascript:anddata:Fixed organization
logonot acceptingnull, preventing users from clearing an existing logo on create and update
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.