better-auth
1.7.25 · 14 Nov 2026MIT21M / weekRepositoryHomepagenpmAtom feed
1.7.27 is the newest release of 1.x.
In short
30 new43 fixed
Security
15 advisories affect 1.2.6; 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
MapProfileToUser in vk social-provider
One-time token plugin
createAdapteranduseNumberIdSupport user data mapping in id token social sign-in
Update hover style for light mode in community page
Zoom social provider
(captcha plugin) adding support for Google ReCAPTCHA v3 and hCaptcha
Openapi spec update
Have-i-been-pwned plugin
Support custom issuer totp
Delete token expiry configuration
Add option to disable session refresh on use
admin: Add support for passing multiple roles as array
email-otp: Support attempt numbers for email-otp
facebook: Add support for business login using config ids
generic-oauth: Added field discoveryHeaders to GenericOAuthConfig
jwt: Add sub claim and
getSubjectoauth2: Override user info on provider sign-in
organization: Add invitation limit
organization: Support multiple permissions check
phone-number: Add attempts check
phone-number: Add number of attempts configuration
phone-number: Add phone number verification requirement before sign-in
provider: Twitter email support
react-start: Add react-start integration for cookie handling
socialLink: Add support for custom scopes in social account linking
stripe: Restore subscription
two-factor: Refactor two-factor authentication with better error handling, configurable otp limits and verification
username: Export the correct error codes for the plugin
Bug Fixes
Import orders and alias to avoid conflict in ac code examples
Fallback to checking main db on session retrieval when storeSessionInDatabase is enabled
Export oAuth types
Og image compat
Og image compatibility on multiple link previews
Tooltip arrow
Tooltip arrow pointer
Forget password flow failing because of id conversion
Dep issue
Deployment compat issue
Verify github email when profile has an email
Docs syntax spacing
GenericOAuth default redirectURI for account linking
Missing disableRefresh type in server side getSession
Redirect to defaultErrorURL if errorURL doens't exist
Plugin middleware docs
Improve header value retrieval for IP address extraction
Prisma client docs
Community page interaction
Community page interaction
Hover style for light mode in community page
IpAddress and userAgent missing on server authentication
Missing export one time token plugin
Delete from session table when stopImpersonate called
Filter out fields with
returned: falsefrom session cookie cacheRethrow error from db hooks if it is APIError instances
admin: Pass where clause to adapter.count to fix total value on listUser
admin: DefaultRoles, adminRoles + others not applying user config
admin: 'dontRememberMe' cookie handling during impersonation
api-key: Return value of permissions should be object, not string
api-key: Update rateLimitEnabled default to consider options
apple: Update responseType to include code and id_token
custom-session: Custom session failing to set cookies
generic-oauth: Should check for email after mapProfileToUser
oauth: Encode clientId and clientSecret in authorization header
oauth-proxy: Extend callback and sign-in path matchers to include /oauth2/callback and /sign-in/oauth2
oidc-provider: Add cookie options for path and sameSite in authorize
open-api: Hide disabled paths
organization: Update default invitation expiration time to use seconds
organization: Fix conditional teamId inference
organization: UpdateMemberRole failing if issuer has multiple roles
stripe: Allow customizing subscription schema
stripe: Throw err if passed
referenceIdwhen nosubscriptionauthorizeReference` is definedstripe: Update referenceId in checkout session to use client_reference_id instead of metadata
two-factor: 2fa error codes failing to infer
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.