better-auth versions before 1.1.20 contain a bypass vulnerability in trustedOrigins validation logic affecting absolute URLs and wildcard domains. (CVE-2025-71403)
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.
AI Analysis
Technical Summary
The vulnerability in better-auth prior to version 1.1.20 involves a bypass in the trustedOrigins validation logic. Specifically, the validation fails to correctly handle absolute URLs and wildcard domains, allowing attackers to construct malicious callbackURL parameters that pass origin checks improperly. This results in open redirect conditions that can be exploited to steal sensitive authentication tokens, facilitating account takeover attacks. The issue is tracked as CVE-2025-71403 and is classified as CWE-601 (Open Redirect). The CVSS 3.1 base score is 7.1, reflecting a network attack vector with low complexity, no privileges required, user interaction needed, and impacts confidentiality and integrity.
Potential Impact
Successful exploitation can lead to open redirect attacks that enable attackers to steal sensitive tokens from users. This can result in account takeover, compromising user accounts and associated data confidentiality and integrity. The vulnerability does not impact availability. The attack requires user interaction but no privileges or authentication.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid using affected versions in sensitive environments and monitor for updates from the vendor. Implement additional validation or filtering on callbackURL parameters if possible to mitigate open redirect risks.
better-auth versions before 1.1.20 contain a bypass vulnerability in trustedOrigins validation logic affecting absolute URLs and wildcard domains. (CVE-2025-71403)
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.
CVSS v3.1
Score 7.1high
Affected software
pkg:github/better-auth/better-authRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in better-auth prior to version 1.1.20 involves a bypass in the trustedOrigins validation logic. Specifically, the validation fails to correctly handle absolute URLs and wildcard domains, allowing attackers to construct malicious callbackURL parameters that pass origin checks improperly. This results in open redirect conditions that can be exploited to steal sensitive authentication tokens, facilitating account takeover attacks. The issue is tracked as CVE-2025-71403 and is classified as CWE-601 (Open Redirect). The CVSS 3.1 base score is 7.1, reflecting a network attack vector with low complexity, no privileges required, user interaction needed, and impacts confidentiality and integrity.
Potential Impact
Successful exploitation can lead to open redirect attacks that enable attackers to steal sensitive tokens from users. This can result in account takeover, compromising user accounts and associated data confidentiality and integrity. The vulnerability does not impact availability. The attack requires user interaction but no privileges or authentication.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid using affected versions in sensitive environments and monitor for updates from the vendor. Implement additional validation or filtering on callbackURL parameters if possible to mitigate open redirect risks.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-g2jv-pgqw-qxhv
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2025-71403"]
- Database Specific Severity
- HIGH
- Cvss Version
- 3.1
Threat ID: 6a6e6299bf32cb7a344f9ee9
Added to database: 08/01/2026, 21:18:17 UTC
Last enriched: 08/01/2026, 21:25:31 UTC
Last updated: 09/11/2026, 09:31:01 UTC
Views: 117
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.