{"answers":{"affected":"2 open source packages ship an affected version, including better-auth.","exploited":"There is no known exploitation of CVE-2025-71401 in the wild and no public exploit code.","fix":"Upgrade better-auth to 1.4.2 or later.","what":"CVE-2025-71401 is a critical denial of service vulnerability in better-auth, published on 2 Aug 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-71401 and fix it if it is affected.\n\nWhat it is: CVE-2025-71401 is a critical denial of service vulnerability in better-auth, published on 2 Aug 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2025-71401 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- better-auth (npm): affected all versions; fixed in 1.4.2\n- better-auth (npm): affected all versions; fixed in 1.4.2\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-71401/ (Markdown: https://insights.sbomify.com/CVE-2025-71401/index.md)","id":"CVE-2025-71401","markdown":"https://insights.sbomify.com/CVE-2025-71401/index.md","name":"CVE-2025-71401","record":{"aliases":["GHSA-569q-mpph-wgww"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":true,"product_category":"npm authentication library","requires_auth":"none","summary":"An attacker can cause a denial of service by poisoning the base path if the URL is not explicitly configured, affecting better-auth users.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"VulnCheck","cpe":[],"cvss":{"score":9.3,"severity":"critical","source":"cna","vector":"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","version":"4.0"},"cwes":[{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling"}],"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.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"better-auth before 1.4.2 basePath Modification DoS","id":"CVE-2025-71401","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"denial_of_service","year":"2025"},"n_packages":2,"n_references":2,"next":{"headline":"better-auth before 1.4.0 Session Revocation via Forged Cookie","id":"CVE-2025-71402"},"packages":[{"ecosystem":"npm","fixed":["1.4.2"],"introduced":["0"],"last_affected":[],"package":"better-auth","purl":null,"source":"GHSA-569q-mpph-wgww"},{"ecosystem":"npm","fixed":["1.4.2"],"introduced":["0"],"last_affected":[],"package":"better-auth","purl":"pkg:npm/better-auth","source":"GHSA-569q-mpph-wgww"}],"prev":{"headline":"better-auth passkey before 1.4.0 IDOR via delete-passkey","id":"CVE-2025-71400"},"products":["better-auth"],"published":"2026-08-02","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-08-03","vendors":["better-auth"]},"summary":"An attacker can cause a denial of service by poisoning the base path if the URL is not explicitly configured, affecting better-auth users.","url":"https://insights.sbomify.com/CVE-2025-71401/"}