better-auth
1.7.25 · 14 Nov 2026MIT21M / weekRepositoryHomepagenpmAtom feed
1.7.27 is the newest release of 1.x.
In short
35 new15 fixed
Security
15 advisories affect 1.2.0; 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
Cleanup expired verification data on fetch
Disable default scopes and allow scopes to be passed on request
Move to better call version 1
Captcha Plugin with multiple providers
Add VK ID social provider
Implement JWT token generation and retrieval with encryption support
Check organization slug
Support stroring dispaly username to store un-normalized username
Add Roblox social provider
Add total users table/collection count to admin plugin list-users endpoint
Add context to database hooks
Base64 conversion without Buffer
Add cloudflare worker basic tests
Add access control to admin plugin
API Key plugin
TikTok social provider
initBetter Auth CLI commandAdd disabling email and password signup config
Team support for organization
Passkey plugin with client-side
authenticatorAttachmentand globalauthenticatorSelectionconfigurationAdd
errorURLfor custom error pagesStripe plugin to handle subscriptions and customers
admin: Add adminUserIds option for custom admin access control
client: Add
basePathoption oncreateAuthClientmongodb-adapter: Support custom ID generation in MongoDB adapter
oidc: Allow header auth for token endpoint
one-tap: Improve Google One Tap integration with JWT verification and improved prompt handling
one-tap: Implement account linking
organization: Support multiple roles
organization: Add option to keep current active organization when creating a new one
phone-number: Add reset password functionality with phone number
social-providers: Add option to disable default scopes
username: Add default validation and options for validating username
Bug Fixes
Update @better-fetch/fetch to version 1.1.14-beta.2 and clean up client options
Oauth failing when using drizzle adapter
Add last semi-colon to the compiled migrations to support Cloudflare D1 migration
Correct option name in the reset password error message
anonymous: Link account user and session type should be less strict
auth: Use options.baseURL instead of ctx.baseURL on trusted origins
generic-oauth: Store additional token details during account linking
init-cmd: Dependencies do not install if ENVs are skipped
kysely-adapter: Handle field conversion on where clauses
oidc-plugin: User info endpoint casing to match OIDC spec
oidc-provider: Add support for plain PKCE code challenge method and default config param allowPlainCodeChallengeMethod
one-tap: Update import path for generateRandomString to fix unsupported crypto import for react native
open-api: Convert path parameters to OpenAPI format
organization: Respect membershipLimit
organization: Improve type inference and session handling
origin-check: Support callback URLs with query parameters
two-factor: Should respect
remember mevalue when a user logins in with 2fatwo-factor: Should respect
remember mevalue when a user logins in with 2fa
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.