better-auth
1.7.25 · 14 Nov 2026MIT21M / weekRepositoryHomepagenpmAtom feed
1.7.27 is the newest release of 1.x.
In short
34 new41 fixed
Security
15 advisories affect 1.3.8; 1.7.0 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: 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
10 more
- 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
- 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
Release note
Features
Support to infer error types from endpoint
Support
node:sqliteRemote sign a jwt payload
Support device authorization
Support custom schema merging in SIWE plugin
Add figma provider
Enhance Microsoft Entra ID type definitions
Add
onUpdatefield on db schema generationAdd onInvitationAccepted callback for org invitations
Add query parameter to useSession().refetch() for cache control consistency
Add last login method plugin
Check endpoint conflits
Add json field type
Add
@defaultand@updatedAtfor prisma generatorUse
defaultNow()for drizzle timestamp fieldsadmin: Get user
admin:
/admin/update-userrole as arrayatlassian: Add atlassian social provider
cli: Add
infoscriptcognito: Add amazon cognito provider
demo: Improve sign-up component
jwt: Add disableSettingJwtHeader flag to prevent issuance of signed jwt
jwt: Jwks remote url
mcp: Add protected-resource metadata endpoint
microsoft: Add support for setting authority
openapi: Support Scalar Theme
org: Dynamic Access Control (Experimental)
organization: Organization life cycle hooks
paypal: Add paypal OAuth2 provider
salesforce: Add salesforce provider
social: Add Line provider
social: Add Kakao, Naver provider
stripe: Add locale to stripe billing portal options
Bug Fixes
Constant time compare
Secondary storage should allow returning both string and parsed json
Telemetry should be opt in not opt out
Show error stack in debug mode
Move stack check into inner function
Check
x-api-keyfor all auth endpointAvoid general oauth flow duplicate user
Small dx for device login
Invalid pages on docs throw a 500 server error instead of 404
Make zod as dependency
Device authorization interval
Schema
onUpdatenot workingMember not exist on org
Never type still requires setting clientId to never
Team id zod schema meta property for array type
Resolve field naming inconsistency in account listing endpoint
Changelogs incorrect mentions
Leave error from fetch API as-is
Update organization requiring all additional fields for update payload
Prevent build error for node:sqlite
Prevent undefined from passed to adapter in username plugin
Add missing defaultValue on core schema
Strict social provider type
apple: Ensures name is always present in profile for mapProfileToUser
apple: Allow audience to be
string - by **efcf5787** [( stri)](https://github.com/better-auth/better-auth/commit/ string(#4219))cli: Check for undefined defaultValue instead of truthy value when generating drizzle schema
cli:
generatethrows error with default exportcli: Incorrect drizzle schema gen
cli: Simplify and correct comma insertion logic in plugin array
client: Prevent proxy promise-like behavior
client: Prevent proxy promise-like behavior
client: Avoid atom to be proxy
custom-session: Also mutate multi-session response
db: Special case schema generation
IDexpo: Fix the inability to dynamically import a dependency
expo: Fix signout clobbering store session properties
oauth2: Correct basic auth header construction for refresh token
oidc: Allow custom schemas
oidc: Specify foreign key references in the schema
oidc-provider: Handle string timestamps in user profile claims
organization: Was possible to remove sole org owner
stripe: Fix unset values on session completed with trial
stripe: Allow sync function to get plans
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.