CVE-2025-71403 better-auth before 1.1.20 Open Redirect via trustedOrigins Bypass
HighCVSS 7.1
EPSS 0.34%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
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.
Upgrade path
2 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| npm better-auth | < 1.1.20 | 1.1.20 | Fixed |
| npm better-auth(npm) | < 1.1.21 | 1.1.21 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm better-auth | < 1.1.20 | 1.1.20 |
| npm better-auth(npm) | < 1.1.21 | 1.1.21 |
References
- GitHub Security Advisory (GHSA-vp58-j275-797x) vendor-advisory
- VulnCheck Advisory: better-auth before 1.1.20 Open Redirect via trustedOrigins Bypass third-party-advisory
- github.com
- github.com product
- github.com
- ENISA EUVD EUVD-2025-210582 third-party-advisory