CVE-2025-71403

better-auth before 1.1.20 Open Redirect via trustedOrigins Bypass

Published Aug 1, 2026 CVSS 4.0 · 7.1 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

better-auth versions older than 1.1.20 validate the trustedOrigins list incorrectly, allowing attackers to embed malicious callbackURL values that trick the server into redirecting to arbitrary URLs. Because the redirect occurs after the application accepts a callback URL, an adversary can capture the token the target receives and then use it for an account takeover. This flaw is classified as CWE‑601: Open Redirect, and it can lead to significant loss of confidentiality and integrity for affected accounts.

Affected Systems

The component affected is the better‑auth oauth‑provider. All installations running better‑auth before version 1.1.20 are vulnerable. The product runs on Node.js environments; no specific operating‐system constraints were listed.

Risk and Exploitability

The CVSS score of 7.1 indicates a high severity, while the EPSS score is not available, so the current exploitation probability is unknown. The vulnerability is not listed in the CISA KEV catalog. Attackers can exploit it via a web‑based attack path by crafting a callbackURL that bypasses trustedOrigin checks, then redirecting a victim to a malicious site to retrieve the token.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade better‑auth to version 1.1.20 or later
  • If an upgrade is delayed, enforce stricter validation of callbackURL parameters by ensuring the target domain exactly matches the trusted origins or rejecting absolute URLs that are not whitelisted
  • Configure application logs and monitor for anomalous redirect attempts, and limit the set of allowed callback URLs to a strict whitelist

Generated by OpenCVE AI on August 2, 2026 at 03:04 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Better-auth better Auth
Vendors & Products Better-auth better Auth
Type Values Removed Values Added
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.
Title better-auth before 1.1.20 Open Redirect via trustedOrigins Bypass
First Time appeared Better-auth
Better-auth better-auth\/oauth-provider
Weaknesses CWE-601
CPEs cpe:2.3:a:better-auth:better-auth\/oauth-provider:*:*:*:*:*:node.js:*:*
Vendors & Products Better-auth
Better-auth better-auth\/oauth-provider
References
Metrics cvssV3_1

{'score': 7.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:N'}

cvssV4_0

{'score': 7.1, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-601

    URL Redirection to Untrusted Site ('Open Redirect')

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Aug 3, 2026, 6:18 PM
Reserved
Jul 18, 2026, 12:38 PM
Status
Deferred
Published
Aug 1, 2026, 1:16 PM
Modified
Oct 6, 2026, 10:10 PM