better-auth
1.7.25 · 14 Nov 2026MIT20.8M / weekRepositoryHomepagenpmAtom feed
0.8.8 is the newest release of 0.5.x.
In short
19 new36 fixed
Security
18 advisories affect 0.5.0; 1.6.13 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
- 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
- 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
13 more
- 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
- HighBetter Auth allows bypassing the trustedOrigins Protection which leads to ATOGHSA-vp58-j275-797x · 24 Feb 2025Fixed in 1.1.21
- HighBetter Auth has an Open Redirect Vulnerability in Verify Email EndpointGHSA-8jhw-6pjj-8723 · 30 Dec 2024Fixed in 1.1.6
- 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
- ModerateBeter Auth has an Open Redirect via Scheme-Less Callback ParameterGHSA-hjpm-7mrm-26w8 · 24 Feb 2025Fixed in 1.1.20
- ModerateBetter Auth URL parameter HTML Injection (Reflected Cross-Site scripting)GHSA-9x4v-xfq5-m8x5 · 5 Feb 2025Fixed in 1.1.16
- 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
Multi session plugin
JWT & JWKS Plugin
Change email flow
admin plugin: Add filter support for listing users
Custom id generation
Add support plural flag for mongo db adapter
Support useSession ssr for nuxt
Kysley generate and orm migrations
Support magic link signup
Infer trusted origins from env
Move to noble hash scrypt impl
Kysley generate and orm migrations
Move two factor plugin to use a secondary table
Dynamic table name support for plugins
Use secondary storage as primary for sessions
Bearer token encrypted value support
Resolve sveltekit $env modules, add lib/server to possible config paths
Add onError and throw error options for APIError
Admin plugin options
Bug Fixes
BasePath should be inferred on for vue client
Only create a response if there are after plugins
Forget-password token should be infered on the server
Magic link should verify user email
Facebook provider
Verify email shouldn't require credential account
Csrf token verification
Add picture claim for twitch
Remove csrf token from cache
Send verification before creating session on signup
Email verified should not be infered from a trusted provider
False prod env detection
Infer redirect and respect redirect uri
OAuth flow errors
Verify email redirection
Missing header on APIError
Field names
Custom account-fields
Support creating credential account on forget password
Twofactor id constriant fail
Move admin plugin to use ctx json response
Env missing on migrate
Inforce callback origins
Move redirect url protection to a middleware
Missing export
Additional fields plugin breaking client api inference
Dont require a header on sign-in
Plugin api failing on empty context
Prisma update failing on multiple where clauses
Nextjs adapter type error on additional fields
Assert state is short enough to be stored in cookie
Dbhooks should apply to secondary storages
Session should be returned manually from secondary storage
Change the verification email option
Session max age being overriden by old values
Global db hooks should be added last
Missing export
Remove remember me from generic oauth
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.