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

Published Aug 2, 2026
·
Updated

better-auth (npm) before 1.4.2 allows an external request to configure baseURL when it is not otherwise defined (e.g., BETTERAUTHURL 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.

Affected Software

1 affected component
npm/better-auth<1.4.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade npm/better-auth to a version that resolves this vulnerability.

    Fixed in 1.4.2

Event History

Aug 2, 2026
CVE Published
via MITRE·12:15 PM
Data Sourced
via MITRE·12:15 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·01:16 PM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2025-71401?

The severity of CVE-2025-71401 is medium with a score of 5.9.

2

How do I fix CVE-2025-71401?

To fix CVE-2025-71401, upgrade better-auth to version 1.4.2 or later.

3

What type of vulnerability is CVE-2025-71401?

CVE-2025-71401 is a Denial of Service (DoS) vulnerability affecting better-auth.

4

What does CVE-2025-71401 affect?

CVE-2025-71401 affects the better-auth package in npm prior to version 1.4.2.

5

Who is at risk due to CVE-2025-71401?

Any server running a vulnerable version of better-auth may be at risk if an attacker can make early requests after startup.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203