GHSA-vp58-j275-797x

Better Auth allows bypassing the trustedOrigins Protection which leads to ATO

At a glance

Published
Updated
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.

Affected packages

PackageVersions
npm · better-authintroduced 0, fixed 1.1.21

References

Sources

SourceLicence
OSV.devCC-BY 4.0 — GitHub Advisory Database