GHSA-3q45-2fh7-66cj: Duplicate Advisory Denial of Service Vulnerability
CRITICALGHSA-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
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).
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.
npm install better-auth@1.4.2
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
GHSA-3q45-2fh7-66cj Affected Duplicate Advisory Versions
1 component(s)| 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?
Which Duplicate Advisory versions are affected?
What version fixes GHSA-3q45-2fh7-66cj?
Is better-auth affected?
What is the CVSS score of GHSA-3q45-2fh7-66cj?
What CWE is associated with GHSA-3q45-2fh7-66cj?
How can I check npm dependencies for GHSA-3q45-2fh7-66cj?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}