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. An attacker who coerces a user into visit...
Product
npm better-auth vulnerabilities
50 published CVES affecting npm better-auth, from public sources (CVE.org, NVD, CISA KEV, FIRST EPSS, OSV).
- Total
- 50
- Critical
- 8
- High
- 24
- Medium
- 11
- Low
- 7
- Unscored
- 0
- CISA KEV
- 0
Latest npm better-auth CVEs
Newest publication first · page 2 of 2
-
MediumCVSS 5.1 EPSS 0.55%
-
HighCVSS 8.7 EPSS 0.26%
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 registration is enabled. An attacker registers an ac...
-
MediumCVSS 6.0 EPSS 0.17%
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 authorization code to create authenticated sessions...
-
LowCVSS 2.0 EPSS 0.21%
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 without verifying the cookie signature (e.g...
-
HighCVSS 8.3
Am I affected You are affected if all of the following hold: You run a better-auth version below 1.6.22, or a 1.7.0-beta below 1.7.0-beta.10. You enable the magic-link plugin or the email-OTP plugin. You also enable email and password sign-up with open registration. An account ca...
-
HighCVSS 8.1 EPSS 0.24%
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, and mint sequence on the oauthRefreshTok...
-
HighCVSS 7.6 EPSS 0.14%
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 the row and POST /device/approve and POST...
-
HighCVSS 7.7 EPSS 0.14%
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 enabled, the organization plugin's acceptInvit...
-
CriticalCVSS 9.1 EPSS 0.21%
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 refreshToken row and matching client_id, without v...
-
HighCVSS 7.6 EPSS 0.23%
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 through a non-atomic find-then-delete sequence,...
-
CVE-2026-53516 Better Auth: Account takeover via OAuth auto-link to unverified pre-registered email
PublishedHighCVSS 8.3 EPSS 0.19%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: true without requiring the local user ro...
-
LowCVSS 3.8
Am I affected? Users are affected if all of the following are true: They configure secondaryStorage on betterAuth(...) (Redis, KV, or any external session cache). session.storeSessionInDatabase is left unset or set to false (the default). Their application's deployment uses one o...
-
HighCVSS 8.7
Am I affected? Users are affected if all of the following are true: Their application uses better-auth at a version below the patched release. Their application enables oidcProvider() from better-auth/plugins/oidc-provider or mcp() from better-auth/plugins/mcp (the mcp plugin del...
-
HighCVSS 7.7
Am I affected? Check each condition. Users are affected when all of the first three hold. Their application enables the oidc-provider plugin or the mcp plugin from better-auth/plugins. The mcp plugin wraps the same provider and carries the same defect. Both are on the migration p...
-
HighCVSS 7.3 EPSS 0.30%
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 configured IP-bearing header). IPv6 clients contr...
-
MediumCVSS 5.3
Am I affected? Users are affected if all of the following are true: The application uses better-auth at a version below 1.6.2 (or @better-auth/sso paired with such a version). betterAuth({ account: { storeStateStrategy } }) is set to "cookie". The default "database" is not affect...
-
CriticalCVSS 9.1
Summary Under certain configurations, sessions may be considered valid before two-factor authentication (2FA) is fully completed. This can allow access to authenticated routes without verifying the second factor. Description When two-factor authentication is enabled, the authenti...
-
HighCVSS 8.6
Summary An issue in the underlying router library rou3 can cause /path and //path to be treated as identical routes. If your environment does not normalize incoming URLs (e.g., by collapsing multiple slashes), this can allow bypasses of disabledPaths and path-based rate limits. D...
-
LowCVSS 2.0
Summary A vulnerability was identified in the multi-session plugin for Better Auth, specifically in the /sign-out after-hook. The hook trusts raw multi-session cookies and forwards the extracted values directly to internalAdapter.deleteSessions without verifying the cookie signat...
-
CriticalCVSS 9.3 EPSS 17.8%
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-key/create route. session?.user ?? (authR...
-
LowCVSS 2.1 EPSS 0.38%
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/callback, /magic-link/verify, /oauth-proxy-ca...
-
MediumCVSS 6.9 EPSS 0.36%
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 endpoint and any other endpoint that accepts cal...
-
GHSA-vp58-j275-797x Better Auth allows bypassing the trustedOrigins Protection which leads to ATO
PublishedHighCVSS 7.1Summary A bypass was discovered in the trustedOrigins validation logic—affecting both absolute URL entries and wildcard domain patterns. This flaw allows an attacker to construct a malicious callbackURL that passes origin checks and triggers an open redirect. Because redirect end...
-
GHSA-9x4v-xfq5-m8x5 Better Auth URL parameter HTML Injection (Reflected Cross-Site scripting)
PublishedMediumCVSS 5.1Summary The better-auth /api/auth/error page was vulnerable to HTML injection, resulting in a reflected cross-site scripting (XSS) vulnerability. Details The value of error URL parameter was reflected as HTML on the error page: https://github.com/better-auth/better-auth/blob/05ad...
-
HighCVSS 7.9 EPSS 0.39%
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 malicious websites. This issue affects user...
Sources: CVE.org, NVD, CISA KEV, FIRST EPSS, OSV and public exploit-reference metadata. Product matching comes from the published CVE records. A proof-of-concept means public code exists; it is not evidence of exploitation.