Skip to content

CVE-2025-71403 better-auth before 1.1.20 Open Redirect via trustedOrigins Bypass

HighCVSS 7.1 EPSS 0.34%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial

Description

better-auth versions before 1.1.20 contain a bypass vulnerability in trustedOrigins validation logic affecting absolute URLs and wildcard domains. Attackers can construct malicious callbackURL parameters that pass origin checks and trigger open redirects to steal sensitive tokens for account takeover.

Upgrade path

2 packages: 2 fixed.

PackageAffectedFixed inStatus
npm better-auth < 1.1.20 1.1.20 Fixed
npm better-auth(npm) < 1.1.21 1.1.21 Fixed

Affected products

ProductAffected versionsFixed in
npm better-auth < 1.1.20 1.1.20
npm better-auth(npm) < 1.1.21 1.1.21

References