# CVE-2025-71401: better-auth before 1.4.2 basePath Modification DoS

- Severity: Critical 9.3 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.26%, higher than 18% of CVEs (2026-12-01)
- Published: 2025-12-01T21:29:48.000Z
- Modified: 2026-10-06T22:10:00.247Z
- Also known as: GHSA-569q-mpph-wgww
- Weaknesses: CWE-73, CWE-770
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: VulnCheck

## Description

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.

(As written by CVE List.)

## Affected

- better-auth better-auth: before 1.4.2 (not affected: 1.4.2)
- better-auth (npm): before 1.4.2

## Every score

- VulnCheck: CVSS:4.0 9.3 Critical `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- VulnCheck: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P`

## References

- <https://github.com/better-auth/better-auth/security/advisories/GHSA-569q-mpph-wgww> (vendor-advisory, web)
- <https://www.vulncheck.com/advisories/better-auth-before-basepath-modification-dos> (third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-71401> (advisory)
- <https://github.com/ray-project/ray/commit/70e7c72780bdec075dba6cad1afe0832772bfe09> (web)
- <https://github.com/better-auth/better-auth> (package)
- <https://github.com/better-auth/better-auth/releases/tag/v1.4.2> (web)

## Sources

- CVE List: [CVE-2025-71401](https://www.cve.org/CVERecord?id=CVE-2025-71401), CVE Terms of Use, modified 2026-08-03
- GitHub Advisory Database: [GHSA-569q-mpph-wgww](https://github.com/advisories/GHSA-569q-mpph-wgww), CC-BY-4.0, modified 2026-09-01
- NVD: [CVE-2025-71401](https://nvd.nist.gov/vuln/detail/CVE-2025-71401), Public domain, modified 2026-10-06

---

Page: https://cve.day/CVE-2025-71401 · Whole record: https://cve.day/CVE-2025-71401.json · Rebuilt by cve.day 2026-11-25T22:59:12.425Z
