better-auth
1.7.25 · 14 Nov 2026MIT21M / weekRepositoryHomepagenpmAtom feed
1.7.27 is the newest release of 1.x.
In short
7 new1 faster27 fixed1 internal
Security
12 advisories affect 1.4.18; 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
- CriticalBetter Auth: OAuth refresh-token replay via missing client authentication on oidc-provider and mcp pluginsGHSA-pw9m-5jxm-xr6h · 7 Jul 2026Fixed in 1.6.11
- 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
- High@better-auth/oauth-provider's OAuth authorization-code grant allows concurrent redemption when two token requests race the find-then-delete primitiveGHSA-7w99-5wm4-3g79 · 7 Jul 2026Fixed in 1.6.11
7 more
- HighBetter Auth: OAuth refresh-token rotation forks the token family on concurrent redemptionGHSA-392p-2q2v-4372 · 7 Jul 2026Fixed in 1.6.0
- HighBetter Auth has insecure cryptographic defaults in oidcProvider: alg=none advertised and plain PKCE accepted by defaultGHSA-9h47-pqcx-hjr4 · 7 Jul 2026Fixed in 1.6.11
- 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
- HighBetter Auth has an account takeover issue via OAuth auto-link to unverified pre-registered emailGHSA-g38m-r43w-p2q7 · 7 Jul 2026Fixed in 1.6.11
- HighBetter Auth vulnerable to unauthorized invitation acceptance via unverified email match in organization pluginGHSA-fmh4-wcc4-5jm3 · 7 Jul 2026Fixed in 1.6.11
- ModerateBetter Auth: OAuth callback accepts mismatched `state` when cookie-backed state storage is used without PKCEGHSA-wxw3-q3m9-c3jr · 15 May 2026Fixed in 1.6.2
- LowBetter Auth: Stale sessions persist after user deletion across admin, anonymous, and SCIM flowsGHSA-2vg6-77g8-24mp · 7 Jul 2026Fixed in 1.6.11
Release note
Features
Add
disableImplicitLinkingto accountLinkingMark
/forget-password/email-otpas deprecationdevice-authorization: Add user id checks
one-tap: Add button mode for Google sign-in
sso: Support multi-domain providers
sso: Add provider list and detail endpoints
Bug Fixes
Correctly handle OAuth callback and Apple email field
Centralize cookie parsing and handle Expires dates correctly
Refresh
account_datacookie when session is refreshedRemove duplicate secondary storage writes from setSessionCookie
Set default logger level to "warn"
Respect the explicitly set
sendOnSignUpoptionHandle serial and false cases in generateId
Log error when misconfigured
Update google oauth endpoints
Consistent api version for facebook provider
Check jsconfig.json in getPathAliases
2fa: Server-side trust device expiration and configurable maxAge
anonymous: Export types
cli: Use inkeep remote mcp url
cli: Update MCP URL from Chonkie to Inkeep
core: Consolidate rateLimit table schema definition
email-otp: Add stricter default rate limits for password reset endpoints
expo: Prevent null cookie key when redirect URL has no cookie param
expo: Prevent duplicate listener notifications in FocusManager and OnlineManager
mcp: Remove local mpc
multi-session: Prevent duplicate cookies when same user signs in multiple times
oauth-provider: Properly handle metadata field in client registration
okta: Userinfo route mismatch
organization: Filter
returned: falsefields from API responsessaml: IdP-Initiated Callback Routing
session: Skip invalid sessions in list
stripe: Allow billing interval change for same plan
stripe: Find active subscription correctly when upgrading
Performance
Fix infinite typecheck
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.