Skip to content
OpenAdvisories

Package · npm

better-auth

26 known vulnerabilities.

5 results · Clear filters · Feed

  • Medium 5.9

    better-auth before 1.4.2 basePath Modification DoS

    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 router's base path, ca…

  • Medium 6.5

    better-auth before 1.4.9 Two-Factor Authentication Bypass via session.cookieCache

    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 verification by exploitin…

  • Medium 5.1

    better-auth before 1.1.16 Reflected XSS via error parameter

    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 coer…

  • Medium 5.3

    better-auth before 1.6.2 OAuth State Validation Bypass

    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 a…

  • Medium 6.9

    Beter Auth has an Open Redirect via Scheme-Less Callback Parameter

    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 endp…