Vulnerability DatabaseGHSA-x732-6j76-qmhm

GHSA-x732-6j76-qmhm
Better Auth vulnerability analysis and mitigation

Summary

An issue in the underlying router library rou3 can cause /path and //path to be treated as identical routes. If your environment does not normalize incoming URLs (e.g., by collapsing multiple slashes), this can allow bypasses of disabledPaths and path-based rate limits.

Details

Better Auth uses better-call, which internally relies on rou3 for routing. Affected versions of rou3 normalize paths by removing empty segments. As a result:

  • /sign-in/email
  • //sign-in/email
  • ///sign-in/email…all resolve to the same route.Some production setups automatically collapse multiple slashes. This includes:
  • Vercel with Nextjs (default)
  • Cloudflare - when normalize to urls origin is enabled (https://developers.cloudflare.com/rules/normalization/settings/#normalize-urls-to-origin)In these environments and other configurations where //path reach Better Auth as /path, the issue does not apply.

Fix

Updating rou3 to the latest version resolves the issue:

  1. Upgrading to Better Auth v1.4.5 or later, which includes the updated rou3.
  2. Ensuring the proxy normalizes URLs.
  3. If project maintainers cannot upgrade yet, they can protect their app by normalizing url before it reaches better-auth handler. See example below:
const req = new Request(...) // this would be the actual request object
const url = new URL(req.url);
const normalizedPath = url.pathname.replace(/\/+/g, "/");
if (url.pathname !== normalizedPath) {
  url.pathname = normalizedPath;
  // Update the raw request pathname
  Object.defineProperty(req, "url", {
    value: url.toString(),
    writable: true,
    configurable: true,
  });
}

Impact

  • Bypass disabledPaths
  • Bypass path-based rate limitsThe impact of bypassing disabled paths could vary based on a project's configuration.

SourceNVD

Related Better Auth vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-61928CRITICAL9.3
  • Better AuthBetter Auth
  • better-auth
NoYesOct 09, 2025
GHSA-x732-6j76-qmhmHIGH8.6
  • Better AuthBetter Auth
  • better-auth
NoYesDec 16, 2025
GHSA-99h5-pjcv-gr6vHIGH8.6
  • Better AuthBetter Auth
  • better-auth
NoYesOct 09, 2025
GHSA-569q-mpph-wgwwLOW2.9
  • Better AuthBetter Auth
  • better-auth
NoYesDec 01, 2025
GHSA-wmjr-v86c-m9jjLOW2
  • Better AuthBetter Auth
  • better-auth
NoYesNov 26, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management