CVE-2025-71401
better-auth (npm) before 1.4.2 allows an external request to …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/better-auth/better-auth/security/advisories/GHSA-569q-mpph-wgww
- www.vulncheck.com/advisories/better-auth-before-basepath-modification-dos
- github.com/ray-project/ray/commit/70e7c72780bdec075dba6cad1afe0832772bfe09
- github.com/better-auth/better-auth/releases/tag/v1.4.2
- nvd.nist.gov/vuln/detail/CVE-2025-71401
- github.com/advisories/GHSA-569q-mpph-wgww
- nvd.nist.gov/vuln/detail/CVE-2025-71401
- cve.org/CVERecord?id=CVE-2025-71401
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.