CVE-2025-71399 Better Auth before 1.4.5 Path Normalization Bypass via rou3
HighCVSS 8.8
EPSS 0.52%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: partial
Description
Better Auth relies on better-call, which uses the rou3 router library. In affected versions of rou3, paths are normalized by removing empty segments, so /path, //path, and ///path resolve to the same route. In Better Auth versions prior to 1.4.5 (which bundles the fixed rou3), this can allow attackers to bypass disabledPaths configuration and path-based rate limits by submitting requests with extra slashes in the URL path. The issue does not apply in deployments where the proxy or platform normalizes URLs by collapsing multiple slashes.
Upgrade path
2 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| npm better-auth | < 1.4.5 | 1.4.5 | Fixed |
| npm better-auth(npm) | < 1.4.5 | 1.4.5 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm better-auth | < 1.4.5 | 1.4.5 |
| npm better-auth(npm) | < 1.4.5 | 1.4.5 |
References
- GitHub Security Advisory (GHSA-x732-6j76-qmhm) vendor-advisory
- Patch Commit patch
- VulnCheck Advisory: Better Auth before 1.4.4 Path Normalization Bypass via rou3 third-party-advisory
- github.com product
- ENISA EUVD EUVD-2025-210590 third-party-advisory