CVE-2024-56734
Better Auth has an Open Redirect Vulnerability in Verify Email Endpoint
Record summary
CVE-2024-56734 has a selected CVSS score of 7.9 (high).
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.
Exploitation context
CISA SSVC decision
CISA Coordinator · SSVC 2.0.3 · Evaluated Dec 30, 2024 · Source: CVE List
Affected products and versions
2| Product | Source | Version range | Status |
|---|---|---|---|
better-authBrowse better-auth / better-auth | CVE List | < 1.1.5 | affected |
better-authBrowse npm / better-auth | GitHub Advisory | Before 1.1.6 · Fixed in 1.1.6 | affected |