better-auth
npm22 known CVEs affecting this package
Aggregated from OSV, GitHub Security Advisories, NVD, and vendor advisories. Each CVE links to its full detail page with vendor advisories, patches, fixed versions, and remediation guidance.
CVEs affecting better-authpage 1 of 1
- CVE-2024-56734MEDIUMCVSS 6.1EG 6.1fixed in 1.1.62024-12-30
Better Auth is an authentication library for TypeScript. An open redirect vulnerability has been identified in the verify email endpoint of all versions of Better Auth prior to v1.1.6, potentially allowing attackers to redirect users to ma…
- CVE-2025-27143MEDIUMCVSS 6.1EG 6.1fixed in 1.1.202025-02-24
Better Auth is an authentication and authorization library for TypeScript. Prior to version 1.1.21, the application is vulnerable to an open redirect due to improper validation of the callbackURL parameter in the email verification endpoin…
- CVE-2025-53535LOWCVSS 2.1EG 2.1fixed in 1.2.102025-07-07
Better Auth is an authentication and authorization library for TypeScript. An open redirect has been found in the originCheck middleware function, which affects the following routes: /verify-email, /reset-password/:token, /delete-user/call…
- CVE-2025-61928CRITICALCVSS 9.3EG 9.3fixed in 1.3.262025-10-09
Better Auth is an authentication and authorization library for TypeScript. In versions prior to 1.3.26, unauthenticated attackers can create or modify API keys for any user by passing that user's id in the request body to the `api/auth/api…
- CVE-2025-71399HIGHCVSS 8.6EG 8.6fixed in 1.4.52026-08-02
Better Auth relies on better-call, which uses the rou3 router library. In affected versions of rou3, paths are normalized by removing empty segments, so /path, //path, and ///path resolve to the same route. In Better Auth versions prior to…
- CVE-2025-71401MEDIUMCVSS 5.9EG 5.9fixed in 1.4.22026-08-02
better-auth (npm) before 1.4.2 allows an external request to configure baseURL when it is not otherwise defined (e.g., BETTER_AUTH_URL is unset). An attacker able to make the very first request to the server after startup can poison the ro…
- CVE-2025-71402LOWCVSS 2.0EG 2.0fixed in 1.4.02026-08-01
better-auth versions greater than 1.3.34 and before 1.4.0 contain a vulnerability in the multi-session plugin's /sign-out after-hook, which trusts raw multi-session cookies and forwards extracted values to internalAdapter.deleteSessions wi…
- CVE-2025-71403HIGHCVSS 7.1EG 7.1fixed in 1.1.212026-08-01
better-auth versions before 1.1.20 contain a bypass vulnerability in trustedOrigins validation logic affecting absolute URLs and wildcard domains. Attackers can construct malicious callbackURL parameters that pass origin checks and trigger…
- CVE-2025-71404MEDIUMCVSS 5.1EG 5.1fixed in 1.1.162026-08-01
better-auth versions after v0.0.2 and before 1.1.16 contain a reflected cross-site scripting (XSS) vulnerability on the /api/auth/error page, where the value of the 'error' URL parameter is reflected as HTML without proper neutralization. …
- CVE-2026-45337HIGHCVSS 7.6EG 7.6fixed in 1.6.112026-06-04
Better Auth is an authentication and authorization library for TypeScript. From 1.6.0 until 1.6.11, the deviceAuthorization plugin treats any authenticated session as the owner of any pending device code because GET /device does not claim …
- CVE-2026-45364HIGHCVSS 7.3EG 7.3fixed in 1.4.17 or 1.5.0-beta.9, by version range2026-05-15
Better Auth is an authentication and authorization library for TypeScript. Prior to 1.4.17 and 1.5.0-beta.9, Better Auth's HTTP rate limiter keyed each request by the exact textual IP address it received in x-forwarded-for (or the configur…
- CVE-2026-53512CRITICALCVSS 9.1EG 9.1fixed in 1.6.112026-07-07
Better Auth is an authentication and authorization library for TypeScript. Prior to 1.6.11, the legacy oidcProvider and mcp plugins expose OAuth token endpoints whose refresh_token grant authenticates only possession of the bound refreshTo…
- CVE-2026-53514HIGHCVSS 7.7EG 7.7fixed in 1.6.112026-07-07
Better Auth is an authentication and authorization library for TypeScript. Prior to 1.6.11, and in 1.6.14 and later when invitation IDs can be obtained outside the invited mailbox and requireEmailVerificationOnInvitation: true is not enabl…
- CVE-2026-53516HIGHCVSS 8.3EG 8.3fixed in 1.6.112026-07-07
Better Auth is an authentication and authorization library for TypeScript. Prior to 1.6.11, Better Auth's OAuth callback auto-link gate in handleOAuthUserInfo accepts implicit account linking when the OAuth provider asserts email_verified:…
- CVE-2026-53517HIGHCVSS 8.1EG 8.1fixed in 1.6.02026-07-07
Better Auth is an authentication and authorization library for TypeScript. From 1.4.8-beta.7 until 1.6.11, the @better-auth/oauth-provider POST /oauth2/token endpoint on the refresh_token grant performs a non-atomic read, validate, revoke,…
- CVE-2026-53518HIGHCVSS 8.1EG 8.1fixed in 1.6.112026-07-07
Better Auth is an authentication and authorization library for TypeScript. From 1.6.0 until 1.6.11, the @better-auth/oauth-provider POST /oauth2/token endpoint for the authorization_code grant redeems a single-use authorization code throug…
- CVE-2026-67327HIGHCVSS 8.3EG 8.3fixed in 1.6.22 or 1.7.0-beta.10, by version range2026-08-01
better-auth versions >= 1.1.3 and < 1.6.22 (and pre-release versions >= 1.7.0-beta.0 and < 1.7.0-beta.10) are vulnerable to account takeover via pre-account hijacking on magic-link and email-OTP sign-in when open email/password registratio…
- CVE-2026-67333HIGHCVSS 7.2EG 7.2fixed in 1.6.13 or 1.7.0-beta.4, by version range2026-08-01
better-auth before 1.6.13 (and pre-release builds 1.7.0-beta.0 through 1.7.0-beta.3) fail to validate the scheme of redirect_uris registered via the deprecated oidc-provider plugin and the mcp plugin (which wraps the same provider). An att…
- CVE-2026-67334LOWCVSS 3.8EG 3.8fixed in 1.6.112026-08-01
better-auth versions before 1.6.11 fail to delete cached sessions when removing users via admin, anonymous, or SCIM endpoints when secondaryStorage is configured and storeSessionInDatabase is false. Attackers can reuse deleted user session…
- CVE-2026-67335MEDIUMCVSS 5.3EG 5.3fixed in 1.6.22026-08-01
better-auth versions before 1.6.2 fail to validate the OAuth state parameter against the stored nonce when using cookie-backed state storage without PKCE. Attackers can forge the state parameter and supply an attacker-controlled authorizat…
- CVE-2026-67336HIGHCVSS 8.7EG 8.7fixed in 1.6.112026-08-01
better-auth versions before 1.6.11 contain insecure cryptographic defaults in the oidcProvider and mcp plugins that advertise the none algorithm and accept plain PKCE by default. Attackers can exploit algorithm negotiation to accept unsign…
- CVE-2026-67337MEDIUMCVSS 6.5EG 6.5fixed in 1.4.92026-08-01
better-auth versions before 1.4.9 contain a two-factor authentication bypass vulnerability when session.cookieCache is enabled. Attackers with valid primary credentials can access authenticated routes without completing second-factor verif…
Check whether better-auth is used in your infrastructure
EchelonGraph scans your cloud and SBOMs to map every package to your actual deployments. See blast radius for better-auth CVEs against the assets you own.
Book a Demo →