CVE-2024-56734

HIGH EPSS 30.0%
Published Dec 30, 20241y ago · Modified Jun 17, 20262w ago
7.9 CVSS 4.0
High
Find Similar
Published Dec 30, 2024 1y ago
Last Modified Jun 17, 2026 2w ago

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.

CVSS Details

Base Score
7.9
Exploitability
Impact
Vector string
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
Attack Vector Network
Attack Complexity Low
Privileges Required None
User Interaction None
Scope X

Threat Intelligence

EPSS Exploit Probability
30.0% percentile
Exploit & Patch Status
Public Exploit Known
Patch Available

Weaknesses 1

CWE-601

Affected Products 1

VendorProductVersionRange
better-authbetter_auth* <1.1.6

References 2

  • github.com https://github.com/better-auth/better-auth/commit/deb3d73aea90d0468d92723f4511542b593e522f
    Patch
  • github.com https://github.com/better-auth/better-auth/security/advisories/GHSA-8jhw-6pjj-8723
    ExploitMitigationVendor Advisory

Remediation

  • github.com https://github.com/better-auth/better-auth/commit/deb3d73aea90d0468d92723f4511542b593e522f
    Patch