Track vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
9.9
CVE-2025-71401: better-auth can be shut down by early request
CVE-2025-71401 · published 3 months ago
Summary
The better-auth library for Node.js can be tricked on its first request after a restart to change its internal base path. This makes every web address return a 'not found' error, effectively stopping the application from working. Set the base URL configuration explicitly to prevent the issue.
What to do
- Update bekacru better-auth to version 1.4.2.
- Update GitHub Actions better-auth to version 1.4.2.
- Update better-auth to version 1.4.2.
- Update better-auth better-auth to version 1.4.2 or later.
Affected software
| Ecosystem | Vendor | Product | Affected versions |
|---|---|---|---|
| npm | bekacru | better-auth |
< 1.4.2 Fix: upgrade to 1.4.2
|
| npm | GitHub Actions | better-auth |
< 1.4.2 Fix: upgrade to 1.4.2
|
| – | better-auth | better-auth | < 1.4.2 |
| npm | – | better-auth |
< 1.4.2 Fix: upgrade to 1.4.2
|
Original advisory text
better-auth before 1.4.2 basePath Modification DoS
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.
References
- https://github.com/better-auth/better-auth Product
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/71xxx/CVE-2025-71401... Vendor Advisory
- https://github.com/ray-project/ray/commit/70e7c72780bdec075dba6cad1afe0832772bfe...
- https://github.com/better-auth/better-auth/releases/tag/v1.4.2
- https://github.com/better-auth/better-auth/security/advisories/GHSA-569q-mpph-wg... Vendor Advisory
- https://www.vulncheck.com/advisories/better-auth-before-basepath-modification-do... Vendor Advisory
- https://github.com/advisories/GHSA-569q-mpph-wgww
- https://nvd.nist.gov/vuln/detail/CVE-2025-71401 Vendor Advisory
Internet-facing
60 days
Internal
At next upgrade
- Not known to be exploited
- Needs hands-on effort to exploit
- Gives an attacker partial control
Severity
9.9
Critical
Type
CWE-73External Control of File Name or Path
CWE-770Allocation of Resources Without Limits
Timeline
Published2 Aug 2026
Updated7 Nov 2026
First seen6 Mar 2026
Sources
GHSA-569q-mpph-wgww · GHSA
CVE-2025-71401 · OSV
GHSA-569q-mpph-wgww · OSV
CVE-2025-71401 · NVD
CVE-2025-71401 · MITRE
Track software like this
Free during beta