better-auth
1.7.25 · 14 Nov 2026MIT21M / weekRepositoryHomepagenpmAtom feed
1.7.27 is the newest release of 1.x.
In short
10 new33 fixed
Security
15 advisories affect 1.2.4; 1.6.22 fixes them
- 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
- CriticalBetter Auth Has Two-Factor Authentication Bypass via Premature Session Caching (session.cookieCache)GHSA-xg6x-h9c9-2m83 · 3 Apr 2026Fixed in 1.4.9
- 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
- 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
10 more
- 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
- HighBetter Auth: Rate limiter keys IPv6 addresses individually and is bypassable via prefix rotationGHSA-p6v2-xcpg-h6xw · 15 May 2026Fixed in 1.4.17
- HighBetter Auth's rou3 Dependency has Double-Slash Path Normalization which can Bypass disabledPaths Config and Rate LimitsGHSA-x732-6j76-qmhm · 16 Dec 2025Fixed in 1.4.5
- HighBetter Auth affected by external request basePath modification DoSGHSA-569q-mpph-wgww · 1 Dec 2025Fixed in 1.4.2
- HighBetter Auth: Unauthenticated API key creation through api-key pluginGHSA-99h5-pjcv-gr6v · 9 Oct 2025Fixed in 1.3.26
- 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
- LowBetter Auth Open Redirect Vulnerability in originCheck Middleware Affects Multiple RoutesGHSA-36rg-gfq2-3h56 · 7 Jul 2025Fixed in 1.2.10
Release note
Features
Support promise return trusted origins
Support reverse proxied base URLs
Add Kick social provider
account: Multiple account with the same provider
admin: Custom banned user error message
generic-oauth: Allow basic auth
oidc-provider: Implement OIDC rfc7591 compliant /register endpoint
organization: Allow passing teamId in addMember
Bug Fixes
Update session cookie after in place email change
Lowercase email in change email process, find as it is
Should consitently use defaultErrorURL for fallback error redirections
Use account ID instead of compound key for account unlinking
Accept secure cookie flag on getSessionCookie helper
Remove otp code from the response of send phone number otp
Use subscription Id to fetch the current active subscription from stripe
On change email request for unverified emails should use the newEmail on verification token payload
admin: Fetch session on has permission checks
admin: Only evaluate permissions for access control
api-key: Creating API keys metadata always returns null
api-key: Results of
verifyendpoint's metadata isn't parseddrizzle-adapter: Add lt and lte query operators
jwt: Use context.secret instead of relying on user passed secret to not fail on build
jwt: Improve private key decryption error handling
multi-session: Return only unique user sessions
multi-session: Use small cased cookie name inside revoke endpoint
oauth: Remove state value on expiry
organization: Remove unused schema type and make team creator optional
organization: Custom permissions access control type inference breaking on the client
organization: Use membership limit to fetch members user data
organization: Properly throw error on update organization
organization: Check permission types and support multiple permission on
hasPermissionschecksorganization: Multiple role array not referenced properly
phone-number: Prevent duplicate phone number update
rate-limiter: Use better path extraction for rate limiting
roblox: MapProfileToUser should run before returning user info
stripe: Convert subscription period timestamps to Date objects
stripe: Webhook constructor should use async version
stripe: Add origin check on success callback
stripe: Inconsistent referenceId usage
stripe: Call onCustomerCreate callback handle error logging
stripe: Rely on subscription Id instead of reference ID for subscriptions
two-factor: Custom user options should be passed to backup code generator
types: Passing body breaking fetchOptions
throw:trueinference
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.