# better-auth (npm)

The most comprehensive authentication framework for TypeScript.

- Latest: 1.7.29 (2026-11-28)
- Licence: MIT
- Downloads: 86251797 last month
- Advisories on the latest version: 0

- CVE-2026-110861 LOW: @better-auth/drizzle-adapter: Concurrent requests can exceed rate limits on PostgreSQL Fixed in 1.7.7.
- CVE-2026-110862 CRITICAL: better-auth: OAuth state can be used as a Magic Link to sign in as another user Fixed in 1.7.7.
- CVE-2026-109346 HIGH: better-auth: Device login approval does not show the requesting client or permissions Fixed in 1.7.0-rc.3.
- CVE-2026-110864 HIGH: better-auth: OAuth Proxy lets an attacker sign in as another user Fixed in 1.7.7.
- CVE-2026-67327 HIGH: Better Auth: Account takeover via pre-account hijacking on magic-link and email-OTP sign-in Fixed in 1.6.22, 1.7.0-beta.10.
- CVE-2026-67334 LOW: Better Auth: Stale sessions persist after user deletion across admin, anonymous, and SCIM flows Fixed in 1.6.11.
- CVE-2026-53517 HIGH: Better Auth: OAuth refresh-token rotation forks the token family on concurrent redemption Fixed in 1.6.0.
- CVE-2026-53518 HIGH: @better-auth/oauth-provider's OAuth authorization-code grant allows concurrent redemption when two token requests race the find-then-delete primitive Fixed in 1.6.11.
- CVE-2026-67333 HIGH: Better Auth has stored XSS in the auth-server origin via javascript: redirect_uri in oidc-provider and mcp Fixed in 1.6.13, 1.7.0-beta.4.
- CVE-2026-67336 HIGH: Better Auth has insecure cryptographic defaults in oidcProvider: alg=none advertised and plain PKCE accepted by default Fixed in 1.6.11.
- CVE-2026-53514 HIGH: Better Auth vulnerable to unauthorized invitation acceptance via unverified email match in organization plugin Fixed in 1.6.11.
- CVE-2026-53516 HIGH: Better Auth has an account takeover issue via OAuth auto-link to unverified pre-registered email Fixed in 1.6.11.
- CVE-2026-53512 CRITICAL: Better Auth: OAuth refresh-token replay via missing client authentication on oidc-provider and mcp plugins Fixed in 1.6.11.
- CVE-2026-45337 HIGH: Better Auth: Device authorization approve and deny accept any authenticated session while the user code is pending Fixed in 1.6.11.
- CVE-2026-45364 HIGH: Better Auth: Rate limiter keys IPv6 addresses individually and is bypassable via prefix rotation Fixed in 1.4.17, 1.5.0-beta.9.
- CVE-2026-67335 MODERATE: Better Auth: OAuth callback accepts mismatched `state` when cookie-backed state storage is used without PKCE Fixed in 1.6.2.
- CVE-2026-67337 CRITICAL: Better Auth Has Two-Factor Authentication Bypass via Premature Session Caching (session.cookieCache) Fixed in 1.4.9.
- CVE-2025-71399 HIGH: Better Auth's rou3 Dependency has Double-Slash Path Normalization which can Bypass disabledPaths Config and Rate Limits Fixed in 1.4.5.
- CVE-2025-71401 HIGH: Better Auth affected by external request basePath modification DoS Fixed in 1.4.2.
- CVE-2025-71402 LOW: Better Auth's multi-session sign-out hook allows forged cookies to revoke arbitrary sessions Fixed in 1.4.0.
- CVE-2025-61928 HIGH: Better Auth: Unauthenticated API key creation through api-key plugin Fixed in 1.3.26.
- CVE-2025-53535 LOW: Better Auth Open Redirect Vulnerability in originCheck Middleware Affects Multiple Routes Fixed in 1.2.10.
- CVE-2025-27143 MODERATE: Beter Auth has an Open Redirect via Scheme-Less Callback Parameter Fixed in 1.1.20.
- CVE-2025-71403 HIGH: Better Auth allows bypassing the trustedOrigins Protection which leads to ATO Fixed in 1.1.21.
- CVE-2025-71404 MODERATE: Better Auth URL parameter HTML Injection (Reflected Cross-Site scripting) Fixed in 1.1.16.
- CVE-2024-56734 HIGH: Better Auth has an Open Redirect Vulnerability in Verify Email Endpoint Fixed in 1.1.6.

Sources: npm, deps.dev (CC BY 4.0), OSV. Last checked 4 Dec 2026.
