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.
Published: 2026-08-01
Score: 7.1 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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 yet.

History

Sat, 01 Aug 2026 13:45:00 +0000

Type Values Removed Values Added
First Time appeared Better-auth better Auth
Vendors & Products Better-auth better Auth

Sat, 01 Aug 2026 12:45:00 +0000

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'}


Subscriptions

Better-auth Better-auth\/oauth-provider Better Auth
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-08-01T12:22:18.102Z

Reserved: 2026-07-18T12:38:41.077Z

Link: CVE-2025-71403

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-02T03:15:03Z

Weaknesses
  • CWE-601

    URL Redirection to Untrusted Site ('Open Redirect')