Skip to main content

Better Auth CVE-2025-71401

| EUVDEUVD-2025-210592 CRITICAL
Allocation of Resources Without Limits or Throttling (CWE-770)
9.3
CVSS 4.0 · Vendor: VulnCheck
Share

Severity by source

Vendor (VulnCheck) PRIMARY
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
vuln.today AI
5.9 MEDIUM

Network unauthenticated (AV:N/PR:N/UI:N) but AC:H for the first-request race plus required unconfigured baseURL; impact is availability-only (A:H, C:N, I:N).

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
X

Lifecycle Timeline

4
Source Code Evidence Fetched
Aug 02, 2026 - 13:01 vuln.today
Analysis Generated
Aug 02, 2026 - 13:01 vuln.today
Patch available
Aug 02, 2026 - 13:01 EUVD
CVE Published
Aug 02, 2026 - 12:15 cve.org
CRITICAL 9.3

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 4 npm packages depend on better-auth (3 direct, 1 indirect)

Ecosystem-wide dependent count for version 1.4.2.

DescriptionCVE.org

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.

AnalysisAI

Denial of service in Better Auth (npm) before 1.4.2 lets an unauthenticated remote attacker poison the router's base path when baseURL is not explicitly configured. By sending the very first request after server startup with crafted X-Forwarded-Host and X-Forwarded-Proto headers, the attacker forces every subsequent auth route to return 404 for all users until restart. A working reproduction (curl commands) is published in the GHSA advisory, so publicly available exploit code exists; there is no CISA KEV listing and no public exploit identified as being used in active attacks.

Technical ContextAI

Better Auth is a framework-agnostic authentication library for Node.js/TypeScript applications, exposing its endpoints under a base path (typically /api/auth) derived from the configured baseURL. When baseURL is not set through configuration or the BETTER_AUTH_URL environment variable, the library falls back to reconstructing it from inbound request headers, implicitly trusting the X-Forwarded-Host and X-Forwarded-Proto values. getBaseURL() parses these into a URL object whose pathname then determines the router's basePath. Because the fallback caches the value derived from the first request, an attacker-controlled forwarded header set (e.g. Proto 'some:' and Host 'junk') corrupts the parsed pathname and the resulting basePath, after which the router can no longer match legitimate requests. The CWE-770 mapping (handling of a resource without proper limits or validation) captures the root cause loosely, though the more precise class is improper trust of client-supplied forwarded headers used to derive server routing state.

RemediationAI

Vendor-released patch: 1.4.2 - upgrade the better-auth npm dependency to 1.4.2 or later, which is the primary and complete fix (see GHSA-569q-mpph-wgww). If immediate upgrade is not possible, explicitly set baseURL in the Better Auth configuration or define the BETTER_AUTH_URL environment variable; doing so disables the vulnerable header-derived fallback entirely and is the most effective compensating control with essentially no downside for a correctly deployed service. Additionally, terminate the application behind a reverse proxy or load balancer that strips or overwrites client-supplied X-Forwarded-Host and X-Forwarded-Proto headers before they reach the app, so only trusted forwarded values are honored - note this must be enforced at the trusted proxy layer, since app-level trust of these headers is exactly what is abused. Managed hosting platforms that already fix the base URL are not affected.

CVE-2024-41713 CRITICAL POC
9.1 Oct 21

A vulnerability in the NuPoint Unified Messaging (NPM) component of Mitel MiCollab through 9.8 SP1 FP2 (9.8.1.201) could

CVE-2024-55591 CRITICAL POC
9.8 Jan 14

FortiOS and FortiProxy contain an authentication bypass via the Node.js websocket module allowing unauthenticated remote

CVE-2014-7205 CRITICAL POC
10.0 Oct 08

Eval injection vulnerability in the internals.batch function in lib/batch.js in the bassmaster plugin before 1.5.2 for t

CVE-2025-59528 CRITICAL POC
10.0 Sep 22

Flowise version 3.0.5 contains a remote code execution vulnerability in the CustomMCP node. The mcpServerConfig paramete

CVE-2017-14849 HIGH POC
7.5 Sep 28

Node.js 8.5.0 before 8.6.0 allows remote attackers to access unintended files, because a change to ".." handling was inc

CVE-2017-5941 CRITICAL POC
9.8 Feb 09

An issue was discovered in the node-serialize package 0.0.4 for Node.js. Rated critical severity (CVSS 9.8), this vulner

CVE-2014-3744 HIGH POC
7.5 Oct 23

Directory traversal vulnerability in the st module before 0.2.5 for Node.js allows remote attackers to read arbitrary fi

CVE-2014-9566 HIGH POC
7.5 Mar 10

Multiple SQL injection vulnerabilities in the Manage Accounts page in the AccountManagement.asmx service in the Solarwin

CVE-2013-4660 MEDIUM POC
6.8 Jun 28

The JS-YAML module before 2.0.5 for Node.js parses input without properly considering the unsafe !!js/function tag, whic

CVE-2015-5688 MEDIUM POC
5.0 Sep 04

Directory traversal vulnerability in lib/app/index.js in Geddy before 13.0.8 for Node.js allows remote attackers to read

CVE-2026-45321 CRITICAL POC
9.6 May 12

Credential-harvesting malware compromised 84 versions of 42 TanStack npm packages on 2026-05-11 via chained GitHub Actio

CVE-2014-7192 CRITICAL POC
10.0 Dec 11

Eval injection vulnerability in index.js in the syntax-error package before 1.1.1 for Node.js 0.10.x, as used in IBM Rat

Share

CVE-2025-71401 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy