better-auth
1.7.25 · 14 Nov 2026MIT21M / weekRepositoryHomepagenpmAtom feed
1.7.27 is the newest release of 1.x.
In short
2 new14 fixed1 internal
Security
4 advisories affect 1.6.24; 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
- 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 request context (
ctx) as a third argument toverifyIdToken, enabling custom ID token verifiers to read request headersAdded
beforeStoreCookieoption to the last-login-method plugin for GDPR compliance
Bug Fixes
Fixed the
get-sessionendpoint to includeno-storecache control headers, preventing stale session data from being servedFixed SQLite migration diffs to recognize
BIGINTas a valid number type, preventing spurious pending changes on rate limiter columnsFixed auth requests failing when request cloning throws an error inside verification callbacks
Fixed
useSession({ throw: true })incorrectly excludingnullfrom itsdatatypeFixed auth query revalidation and signal listeners not being restored after a client component remounts
Fixed the
CookieAttributesindex signature type to be more preciseFixed silent misrouting of adapter queries when
user.modelNamewas set to a value that collides with another schema keyFixed Kysely migration generation producing duplicate indexes for fields marked both
uniqueandindexFixed magic-link and email-OTP send endpoints to validate the
Originheader on cookieless requests, preventing cross-origin abuseFixed remote MCP auth 401 challenge headers being hidden from browser clients due to missing CORS exposure
Fixed OpenAPI schema to include plugin user fields (such as
usernameanddisplayUsername) in/sign-up/emailand/update-userrequest bodiesFixed
organization.listMembersfailing with "User not found for member" for organizations with more than ~100 membersFixed organization invitations to use database-generated IDs when
advanced.database.generateIdis configured, matching the behavior of other modelsFixed
getDefaultModelNameto prefer exact schema key matches overmodelNamealiases, preventing adapter queries from being misrouted when a built-in table's name collides with another schema key
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.