Advisory

GHSA-vp58-j275-797x

Also known as: CVE-2025-71403

Summary

Better Auth allows bypassing the trustedOrigins Protection which leads to ATO

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2025-02-24 20:49 UTC
Modified
2026-08-02 03:56 UTC

Affected packages and fixes

better-auth

npm · All systems

Affected

  • introduced 0, fixed 1.1.21 (semver)

Fixed versions

1.1.21

Fix

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

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences