Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. better-auth
  4. ›
  5. GHSA-569q-mpph-wgww

GHSA-569q-mpph-wgww: Better Auth affected by external request basePath modification DoS

December 1, 2025 (updated September 1, 2026)

Affected versions of Better Auth allow an external request to configure baseURL when it isn’t defined through any other means. This can be abused to poison the router’s base path, causing all routes to return 404 for all users.

This issue is only exploitable when baseURL is not explicitly configured (e.g., BETTER_AUTH_URL is missing) and the attacker is able to make the very first request to the server after startup. In properly configured environments or typical managed hosting platforms, this fallback behavior cannot be reached.

References

  • github.com/advisories/GHSA-569q-mpph-wgww
  • github.com/better-auth/better-auth/releases/tag/v1.4.2
  • github.com/better-auth/better-auth/security/advisories/GHSA-569q-mpph-wgww
  • github.com/ray-project/ray/commit/70e7c72780bdec075dba6cad1afe0832772bfe09
  • nvd.nist.gov/vuln/detail/CVE-2025-71401
  • www.vulncheck.com/advisories/better-auth-before-basepath-modification-dos

Code Behaviors & Features

Detect and mitigate GHSA-569q-mpph-wgww with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 1.4.2

Fixed versions

  • 1.4.2

Solution

Upgrade to version 1.4.2 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-73: External Control of File Name or Path
  • CWE-770: Allocation of Resources Without Limits or Throttling

Source file

npm/better-auth/GHSA-569q-mpph-wgww.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:19 +0000.