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

No history.

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')