CVE-2024-56734

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 users relying on email verification links generated by the library. The verify email callback endpoint accepts a `callbackURL` parameter. Unlike other verification methods, email verification only uses JWT to verify and redirect without proper validation of the target domain. The origin checker is bypassed in this scenario because it only checks for `POST` requests. An attacker can manipulate this parameter to redirect users to arbitrary URLs controlled by the attacker. Version 1.1.6 contains a patch for the issue.
Configurations

Configuration 1 (hide)

cpe:2.3:a:better-auth:better_auth:*:*:*:*:*:node.js:*:*

History

20 Oct 2025, 16:15

Type Values Removed Values Added
CVSS v2 : unknown
v3 : unknown
v2 : unknown
v3 : 6.1
References () https://github.com/better-auth/better-auth/commit/deb3d73aea90d0468d92723f4511542b593e522f - () https://github.com/better-auth/better-auth/commit/deb3d73aea90d0468d92723f4511542b593e522f - Patch
References () https://github.com/better-auth/better-auth/security/advisories/GHSA-8jhw-6pjj-8723 - () https://github.com/better-auth/better-auth/security/advisories/GHSA-8jhw-6pjj-8723 - Exploit, Vendor Advisory, Mitigation
CPE cpe:2.3:a:better-auth:better_auth:*:*:*:*:*:node.js:*:*
First Time Better-auth
Better-auth better Auth
Summary
  • (es) Better Auth es una librería de autenticación para TypeScript. Se ha identificado una vulnerabilidad de redirección abierta en el endpoint de verificación de correo electrónico de todas las versiones de Better Auth anteriores a la v1.1.6, lo que potencialmente permite a los atacantes redirigir a los usuarios a sitios web maliciosos. Este problema afecta a los usuarios que dependen de los enlaces de verificación de correo electrónico generados por la librería. El endpoint de devolución de llamada de verificación de correo electrónico acepta un parámetro `callbackURL`. A diferencia de otros métodos de verificación, la verificación de correo electrónico solo utiliza JWT para verificar y redirigir sin la validación adecuada del dominio de destino. El verificador de origen se omite en este escenario porque solo verifica las solicitudes `POST`. Un atacante puede manipular este parámetro para redirigir a los usuarios a URL arbitrarias controladas por el atacante. La versión 1.1.6 contiene un parche para el problema.

30 Dec 2024, 17:15

Type Values Removed Values Added
New CVE

Information

Published : 2024-12-30 17:15

Updated : 2025-10-20 16:15


NVD link : CVE-2024-56734

Mitre link : CVE-2024-56734

CVE.ORG link : CVE-2024-56734


JSON object : View

Products Affected

better-auth

  • better_auth
CWE
CWE-601

URL Redirection to Untrusted Site ('Open Redirect')