CVE-2024-56734
HIGH 7.9CVSS 4.0Better Auth has an Open Redirect Vulnerability in Verify Email Endpoint
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.
- Published
- 30 Dec 2024
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-601
- Also known as
- GHSA-8jhw-6pjj-8723
- Sources
- NVDJSONOSV GHSA-8jhw-6pjj-8723JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | HIGH 7.9 | CVSS:4.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 |
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | better-auth | better_authcpe:2.3:a:better-auth:better_auth:*:*:*:*:*:node.js:*:* |
< 1.1.6 | 1.1.6 |
| OSV | npm | better-auth | < 1.1.6 | 1.1.6 |
References
- https://github.com/better-auth/better-auth/commit/deb3d73aea90d0468d92723f4511542b593e522f · Patch, WEB
- https://github.com/better-auth/better-auth/security/advisories/GHSA-8jhw-6pjj-8723 · Exploit, Mitigation, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-56734 · ADVISORY
- https://github.com/better-auth/better-auth · PACKAGE
History
- 25 Nov 2026 20:57 UTC · NVD: first stored (published 30 Dec 2024)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 30 Dec 2024)