GHSA-vp58-j275-797x
Better Auth allows bypassing the trustedOrigins Protection which leads to ATO
En bref
- Publiée
- Mise à jour
- CVE
- CVE-2025-71403
- CVSS_V3
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:N
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.
Paquets affectés
| Paquet | Versions |
|---|---|
| npm · better-auth | introduced 0, fixed 1.1.21 |
Références
- https://github.com/better-auth/better-auth/security/advisories/GHSA-vp58-j275-797x WEB
- https://github.com/better-auth/better-auth/commit/b381cac7aafd6aa53ef78b6ab771ebfa24643c80 WEB
- https://github.com/better-auth/better-auth PACKAGE
- https://github.com/better-auth/better-auth/blob/ddebd0358d74376ea64541512d0167dd4377f182/packages/better-auth/src/api/middlewares/origin-check.ts#L53 WEB
Sources
| Source | Licence |
|---|---|
| OSV.dev | CC-BY 4.0 — GitHub Advisory Database |