CVE-2024-56734
Better Auth has an Open Redirect Vulnerability in Verify Email Endpoint
Description
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.
INFO
Published Date :
Dec. 30, 2024, 5:15 p.m.
Last Modified :
Oct. 20, 2025, 4:15 p.m.
Remotely Exploit :
Yes !
Source :
[email protected]
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source | 
|---|---|---|---|---|---|---|
| CVSS 3.1 | MEDIUM | [email protected] | ||||
| CVSS 4.0 | HIGH | [email protected] | 
References to Advisories, Solutions, and Tools
                                            Here, you will find a curated list of external links that provide in-depth
                                            information, practical solutions, and valuable tools related to
                                            CVE-2024-56734.
                                        
| URL | Resource | 
|---|---|
| https://github.com/better-auth/better-auth/commit/deb3d73aea90d0468d92723f4511542b593e522f | Patch | 
| https://github.com/better-auth/better-auth/security/advisories/GHSA-8jhw-6pjj-8723 | Exploit Vendor Advisory Mitigation | 
CWE - Common Weakness Enumeration
            While CVE identifies
            specific instances of vulnerabilities, CWE categorizes the common flaws or
            weaknesses that can lead to vulnerabilities. CVE-2024-56734 is
            associated with the following CWEs:
        
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
            (CAPEC)
            stores attack patterns, which are descriptions of the common attributes and
            approaches employed by adversaries to exploit the CVE-2024-56734
            weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
			The following list is the news that have been mention
			CVE-2024-56734 vulnerability anywhere in the article.
		
                The following table lists the changes that have been made to the
                CVE-2024-56734 vulnerability over time.
            
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
- 
                            Initial Analysis by [email protected]Oct. 20, 2025 Action Type Old Value New Value Added CVSS V3.1 AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N Added CPE Configuration OR *cpe:2.3:a:better-auth:better_auth:*:*:*:*:*:node.js:*:* versions up to (excluding) 1.1.6 Added Reference Type GitHub, Inc.: https://github.com/better-auth/better-auth/commit/deb3d73aea90d0468d92723f4511542b593e522f Types: Patch Added Reference Type GitHub, Inc.: https://github.com/better-auth/better-auth/security/advisories/GHSA-8jhw-6pjj-8723 Types: Exploit, Mitigation, Vendor Advisory 
- 
                            New CVE Received by [email protected]Dec. 30, 2024 Action Type Old Value New Value Added Description 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. Added CVSS V4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X Added CWE CWE-601 Added Reference https://github.com/better-auth/better-auth/commit/deb3d73aea90d0468d92723f4511542b593e522f Added Reference https://github.com/better-auth/better-auth/security/advisories/GHSA-8jhw-6pjj-8723 
 
                         
                         
                         
                                             
                                            