{"id":"CVE-2024-56734","published":"2024-12-30T16:48:58Z","modified":"2024-12-30T17:36:51Z","title":"Better Auth has an Open Redirect Vulnerability in Verify Email Endpoint","vendor":"better-auth","product":"better-auth","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.9,"severity":"HIGH","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00554,"percentile":0.39892,"provenance":"source"},"cwes":[{"id":"CWE-601","name":"URL Redirection to Untrusted Site"}],"references":[{"url":"https://github.com/better-auth/better-auth/security/advisories/GHSA-8jhw-6pjj-8723","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/better-auth/better-auth/commit/deb3d73aea90d0468d92723f4511542b593e522f","tags":["x_refsource_MISC"]}],"priority":{"score":13.5,"factors":[{"name":"EPSS percentile","points":7.98},{"name":"CVSS severity","points":5.53}]},"vendorSlug":"better-auth","affectedVersions":[{"vendor":"better-auth","product":"better-auth","versions":["< 1.1.5"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-12-30T17:36:35.899354Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"better-auth","vulnerableRanges":["<1.1.6"],"patched":["1.1.6"],"from":["GHSA-8jhw-6pjj-8723"],"provenance":"source"}],"summary":{"text":"Better Auth, an authentication library for TypeScript, contains an open redirect flaw in its verify email endpoint, which accepts a callbackURL parameter and redirects without validating the target domain, because the origin checker only inspects POST requests. An attacker can exploit this over the network with no privileges or user interaction required, by crafting a verification link that redirects users to an arbitrary attacker-controlled site, affecting deployments that rely on the library's email verification links.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:48:18Z"},"euvd":{"id":"EUVD-2024-3569","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-better-auth-cve-2024-56734","children":[{"from":"CVE-2024-56734","to":"CVE-2025-27143","relation":"bypass","confidence":"high","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"bypass","quote":"This CVE is a bypass of the fix for GHSA-8jhw-6pjj-8723/CVE-2024-56734.","from":"CVE.org","in":"CVE-2025-27143"},{"kind":"osv-related","provenance":"source","id":"GHSA-8jhw-6pjj-8723","via":"related"},{"kind":"osv-related","provenance":"source","id":"GHSA-hjpm-7mrm-26w8","via":"reference","url":"https://github.com/better-auth/better-auth/security/advisories/GHSA-8jhw-6pjj-8723"},{"kind":"version-step","provenance":"source","package":"npm:better-auth","fromFixed":"1.1.6","toFixed":"1.1.20","daysApart":56},{"kind":"same-code","provenance":"machine","files":["packages/better-auth/src/api/middlewares/origin-check.ts"],"commits":["https://github.com/better-auth/better-auth/commit/deb3d73aea90d0468d92723f4511542b593e522f","https://github.com/better-auth/better-auth/commit/24659aefc35a536b95ea4e5347e52c8803910153","https://github.com/better-auth/better-auth/commit/b381cac7aafd6aa53ef78b6ab771ebfa24643c80"],"basis":"rarely changed file"}]},{"from":"CVE-2024-56734","to":"CVE-2025-71403","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["packages/better-auth/src/api/middlewares/origin-check.ts"],"commits":["https://github.com/better-auth/better-auth/commit/deb3d73aea90d0468d92723f4511542b593e522f","https://github.com/better-auth/better-auth/commit/b381cac7aafd6aa53ef78b6ab771ebfa24643c80"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2024-56734","published":"2024-12-30","fixed":"1.1.6","kev":false},{"cve":"CVE-2025-27143","published":"2025-02-24","fixed":"1.1.20","kev":false},{"cve":"CVE-2025-53535","published":"2025-07-07","fixed":"1.2.10","kev":false},{"cve":"CVE-2025-61928","published":"2025-10-09","fixed":"1.3.26","kev":false}],"package":"npm:better-auth"}}