CVE-2025-71401

CRITICAL CVSS 4.0: 9.3 EPSS 0.46%
Updated Oct 07, 2026
Better-Auth
Parameter Value
CVSS 9.3 (CRITICAL)
Affected Versions before 1.4.2
Fixed In 1.4.2
Type CWE-770 (Allocation Without Limits)
Vendor Better-Auth
Public PoC No

better-auth (npm) before 1.4.2 allows an external request to configure baseURL when it is not otherwise defined (e.g., BETTER_AUTH_URL is unset). An attacker able to make the very first request to the server after startup can poison the router's base path, causing all routes to return 404 for all users (denial of service). The issue is not reachable when baseURL is explicitly configured or on typical managed hosting platforms.

Attack Parameters

Attack Vector
Network
Can be exploited remotely
Attack Complexity
Low
Easy to exploit
Attack Requirements
None
No additional conditions
Privileges Required
None
No privileges needed
User Interaction
None
No user interaction needed

Impact Assessment

Confidentiality
High
Complete data leak
Integrity
High
Complete data modification
Availability
High
Complete denial of service

CVSS Vector v4.0

Vulnerable Products 1

Configuration From (including) Up to (excluding)
Better-Auth Better-Auth\/Oauth-Provider
cpe:2.3:a:better-auth:better-auth\/oauth-provider:*:*:*:*:*:node.js:*:*
— 1.4.2