CVE Catalog

CVE-2025-71401

MediumCVSS 5.9
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.26%

18th percentile - higher than 18% of all known CVEs

Summary

better-auth (npm) before version 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.

Risk Assessment

An attacker can cause a complete denial of service (DoS) for all users of the application, making it unusable until the server is restarted.

Recommendation

Update better-auth to version 1.4.2 or later. Explicitly configure baseURL (e.g., via the BETTER_AUTH_URL environment variable).

Other vulnerabilities in better-auth

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS