Skip to main content
VulnerabilityPublished Updated

Better Auth allows bypassing the trustedOrigins Protection which leads to ATO

Affects better-authSource GCVE Database

0

CVSS 7.1 High : upgrade to 1.1.21 soon.

Data as of 27 Nov 2026, 04:49 UTC

CVSS 3.1 base score
7.1High
How severe the flaw is on the 0–10 CVSS scale.
Patch
Available – fixed in 1.1.21
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:N

What to do

Upgrade better-auth to 1.1.21.

Affected software

ProductAffectedFixed in
npmbetter-authAffected
  • <1.1.21
Fixed in
  • 1.1.21

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

A patch is available in Better Auth version 1.1.21 that fixes the trustedOrigins validation bypass. Users and administrators should upgrade to version 1.1.21 or later to remediate this vulnerability. No additional mitigation steps are indicated beyond applying the official fix.

Description

A vulnerability in Better Auth prior to version 1.1.21 allows bypassing the trustedOrigins validation logic. This flaw affects both absolute URL entries and wildcard domain patterns, enabling attackers to craft malicious callback URLs that pass origin checks and trigger open redirects. Because redirect endpoints include sensitive tokens such as password-reset tokens, this can lead to one-click account takeover if a victim clicks a crafted link.

References

Community reviews

Loading reviews…