CVE-2025-71403 better-auth before 1.1.20 Open Redirect via trustedOrigins Bypass
Attackers can exploit a trustedOrigins validation bypass to perform open redirects, potentially stealing tokens and taking over user accounts.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2025-71403?
CVE-2025-71403 is a high-severity vulnerability in better-auth, published on 1 Aug 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official 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.
Weakness: CWE-601
Which versions are affected by CVE-2025-71403?
2 open source packages ship an affected version, including better-auth.
| Package | Affected | Fixed in |
|---|---|---|
better-auth npm | All versions | 1.1.21 |
better-auth npm | All versions | 1.1.21 |
How do I fix CVE-2025-71403?
Upgrade better-auth to 1.1.21 or later.
Is CVE-2025-71403 being exploited?
There is no known exploitation of CVE-2025-71403 in the wild and no public exploit code.
Sources
Also known as GHSA-g2jv-pgqw-qxhv, GHSA-vp58-j275-797x.