GHSA-3q45-2fh7-66cj: Duplicate Advisory Denial of Service Vulnerability

CRITICAL
CVSS 5.9
CWE-770
Published
Advisory Summary

GHSA-3q45-2fh7-66cj is a CRITICAL (CVSS 5.9) denial of service vulnerability (CWE-770: Allocation of Resources Without Limits or Throttling) affecting Duplicate Advisory libraries in the npm ecosystem. The issue involves better-auth has an external request basepath modification dos. Remediation is available by upgrading affected packages to version 1.4.2.

GHSA-3q45-2fh7-66cj at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-3q45-2fh7-66cj
Severity CRITICAL
CVSS v3.1 Base Score 5.9
CWE Classification CWE-770: Allocation of Resources Without Limits or Throttling
Affected Product Duplicate Advisory
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 5.9

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability High (A:H)

How to Fix GHSA-3q45-2fh7-66cj

To remediate this vulnerability, upgrade all affected Duplicate Advisory dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

better-auth fixed: 1.4.2
npm install better-auth@1.4.2
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls better-auth

How to Check if You Are Affected

To determine whether your Node.js application is affected by GHSA-3q45-2fh7-66cj, inspect your project dependencies using npm:

npm ls better-auth

Analyze the terminal output to locate any version of Duplicate Advisory in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.4.2), your application is affected.

Note: The npm ls better-auth command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-770: Allocation of Resources Without Limits or Throttling, where the product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated. In Duplicate Advisory, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

## Duplicate Advisory This advisory has been withdrawn because it is a duplicate of GHSA-569q-mpph-wgww. This link is maintained to preserve external references. ## Original 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.

GHSA-3q45-2fh7-66cj Affected Duplicate Advisory Versions

1 component(s)
Fixed Versions:
1.4.2
Product / Package Ecosystem Affected Versions Fixed Version
better-auth
npm
< 1.4.2
1.4.2

References

Frequently Asked Questions

What is GHSA-3q45-2fh7-66cj?
GHSA-3q45-2fh7-66cj is a security vulnerability in Duplicate Advisory involving better-auth has an external request basePath modification DoS under CWE-770: Allocation of Resources Without Limits or Throttling.
Which Duplicate Advisory versions are affected?
Affected versions include releases prior to 1.4.2 across affected packages: better-auth.
What version fixes GHSA-3q45-2fh7-66cj?
Upgrading to 1.4.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is better-auth affected?
Yes, better-auth is affected in releases prior to 1.4.2. Upgrade your dependency to 1.4.2 or later.
What is the CVSS score of GHSA-3q45-2fh7-66cj?
GHSA-3q45-2fh7-66cj has a CVSS v3.1 base score of 5.9 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with GHSA-3q45-2fh7-66cj?
GHSA-3q45-2fh7-66cj is classified under CWE-770: Allocation of Resources Without Limits or Throttling (The product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated.).
How can I check npm dependencies for GHSA-3q45-2fh7-66cj?
Run the dependency tree command: 'npm ls better-auth'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-3q45-2fh7-66cj",
  "modified" : "2026-09-01T18:56:01Z",
  "published" : "2026-08-02T15:30:21Z",
  "withdrawn" : "2026-09-01T18:56:01Z",
  "aliases" : [ ],
  "summary" : "Duplicate Advisory: better-auth has an external request basePath modification DoS",
  "details" : "## Duplicate Advisory\n\nThis advisory has been withdrawn because it is a duplicate of GHSA-569q-mpph-wgww. This link is maintained to preserve external references.\n\n## Original Description\n\nbetter-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.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H"
  }, {
    "type" : "CVSS_V4",
    "score" : "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"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "better-auth"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.4.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/better-auth/better-auth/security/advisories/GHSA-569q-mpph-wgww"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-71401"
  }, {
    "type" : "WEB",
    "url" : "https://www.vulncheck.com/advisories/better-auth-before-basepath-modification-dos"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-770" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-09-01T18:56:01Z",
    "nvd_published_at" : "2026-08-02T13:16:52Z"
  }
}