GHSA-vp58-j275-797x Better Auth allows bypassing the trustedOrigins Protection which leads to ATO
HighCVSS 7.1
- Published
- Updated
- Exploit status
- No public exploit known
Description
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.
Upgrade path
1 package: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| npm better-auth(npm) | <= 1.1.20 | after 1.1.20 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm better-auth(npm) | <= 1.1.20 | No fix listed |
References
- github.com vendor-advisory
- github.com patch
- github.com
- github.com