CVE-2026-45364 Details
Description
Better Auth is an authentication and authorization library for TypeScript. Prior to 1.4.17 and 1.5.0-beta.9, Better Auth's HTTP rate limiter keyed each request by the exact textual IP address it received in x-forwarded-for (or the configured IP-bearing header). IPv6 clients controlling a typical /64 allocation could rotate through 2^64 distinct source addresses without exhausting the per-address counter, defeating rate limiting on /sign-in/email, /sign-up/email, /forget-password, and every other path the limiter protects. The same bug allowed a single client to vary the textual encoding of one IPv6 address (uppercase, compression, IPv4-mapped, hex-encoded IPv4-in-IPv6) and produce multiple distinct keys. This vulnerability is fixed in 1.4.17 and 1.5.0-beta.9.
A vulnerability in Better Auth's authentication and authorization library for TypeScript, specifically in versions prior to 1.4.17 and 1.5.0-beta.9, allows for bypassing HTTP rate limits on authentication-related endpoints. The issue arises because the rate limiter keys requests based on the exact IP address received in the 'x-forwarded-for' header. This approach is vulnerable to exploitation by IPv6 clients, which can rotate through a vast number of addresses without exhausting the rate limit counter. Additionally, the vulnerability allows for manipulation of the IP address representation, creating further discrepancies in rate limit enforcement.
Users can upgrade to Better Auth versions 1.4.17 or 1.5.0-beta.9, both of which include the necessary fix. If an upgrade is not possible, users on version 1.4.16 can set 'advanced.ipAddress.ipv6Subnet' to 64 in their configuration to restore the intended rate limit behavior. For versions prior to 1.4.16, the recommendation is to adjust the rate limit settings on the CDN, WAF, or load balancer to apply a /64 prefix limit, or to manually tighten the rate limit windows for the sign-in, sign-up, and password reset endpoints.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed May 28, 2026CISA-ADP
Assessed May 29, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-307 | Improper Restriction of Excessive Authentication Attempts | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Better Auth | < 1.4.17 (semver) >= 1.5.0-beta.1, < 1.5.0-beta.9 (semver) |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 21, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| May 28, 2026 | New CVE Received | [email protected] |
Volerion