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.

Category

7.9
CVSS
Severity: High
CVSS 4.0 •
EPSS 0.14%
Affected: better-auth better-auth
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2024-56734?
CVE-2024-56734 has been scored as a high severity vulnerability.
How to fix CVE-2024-56734?
To fix CVE-2024-56734, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2024-56734 being actively exploited in the wild?
As for now, there are no information to confirm that CVE-2024-56734 is being actively exploited. According to its EPSS score, there is a ~0% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2024-56734?
CVE-2024-56734 affects better-auth better-auth.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.