better-auth
Affected
- introduced
0, fixed1.1.21(semver)
Fixed versions
1.1.21
Fix
- Fixed version
1.1.21npm install [email protected]
Advisory
Also known as: CVE-2025-71403
Better Auth allows bypassing the trustedOrigins Protection which leads to ATO
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.
High Basis: The source's own band: HIGH
0, fixed 1.1.21 (semver)1.1.21
1.1.21npm install [email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0