7.1high
better-auth before 1.1.20 Open Redirect via trustedOrigins Bypass
- Severity
- 7.1high CVSS:4.0 by VulnCheck
- Exploit likelihood
- 0.24% (higher than 15% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- VulnCheck
- Also known as
- GHSA-vp58-j275-797x
Description
better-auth versions before 1.1.20 contain a bypass vulnerability in trustedOrigins validation logic affecting absolute URLs and wildcard domains. Attackers can construct malicious callbackURL parameters that pass origin checks and trigger open redirects to steal sensitive tokens for account takeover.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| better-auth better-auth | before 1.1.20 Not affected: 1.1.20 | CVE List |
| better-auth (npm) | before 1.1.21 | GitHub Advisory Database |
All scores
| VulnCheck | 7.1high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N |
| VulnCheck | 7.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:N |
| GitHub | 7.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
better-auth versions before 1.1.20 contain a bypass vulnerability in trustedOrigins validation logic affecting absolute URLs and wildcard domains. Attackers can construct malicious callbackURL parameters that pass origin checks and trigger open redirects to steal sensitive tokens for account takeover.
GitHub Advisory Database
Summary
A bypass was discovered in the trustedOrigins validation logic—affecting both absolute URL entries and wildcard domain patterns. This flaw allows an attacker to construct a malicious callbackURL that passes origin checks and triggers an open redirect.
Because redirect endpoints include sensitive tokens (such as password-reset tokens), this vulnerability can enable one-click account takeover if a victim clicks a crafted link.
NVD (es)
Las versiones de better-auth anteriores a la 1.1.20 contienen una vulnerabilidad de omisión en la lógica de validación de trustedOrigins que afecta a las URLs absolutas y a los dominios comodín. Los atacantes pueden construir parámetros callbackURL maliciosos que pasan las comprobaciones de origen y desencadenan redirecciones abiertas para robar tokens sensibles para la toma de control de cuentas.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-71403 changed 2026-08-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-vp58-j275-797x changed 2026-08-02 | CC-BY-4.0 |
| NVD | CVE-2025-71403 changed 2026-10-06 | Public domain |