{"id":"CVE-2026-45364","published":"2026-05-28T21:34:51Z","modified":"2026-05-29T19:05:38Z","title":"Better Auth: Rate limiter keys IPv6 addresses individually and is bypassable via prefix rotation","vendor":"better-auth","product":"better-auth","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.3,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00501,"percentile":0.3583,"provenance":"source"},"cwes":[{"id":"CWE-307","name":"Improper Restriction of Excessive Authentication Attempts"}],"references":[{"url":"https://github.com/better-auth/better-auth/security/advisories/GHSA-p6v2-xcpg-h6xw","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/better-auth/better-auth/pull/7470","tags":["x_refsource_MISC"]},{"url":"https://github.com/better-auth/better-auth/pull/7509","tags":["x_refsource_MISC"]},{"url":"https://github.com/better-auth/better-auth/commit/43e719bcc0c223c7079fa0c611a9cf7ea1188254","tags":["x_refsource_MISC"]},{"url":"https://github.com/better-auth/better-auth/commit/57af0f7b910dcf7b1a5c0615d10b9bd56bb69bef","tags":["x_refsource_MISC"]}],"priority":{"score":12.3,"factors":[{"name":"EPSS percentile","points":7.17},{"name":"CVSS severity","points":5.11}]},"vendorSlug":"better-auth","affectedVersions":[{"vendor":"better-auth","product":"better-auth","versions":["< 1.4.17",">= 1.5.0-beta.1, < 1.5.0-beta.9"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-05-29T19:05:14.121201Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"better-auth","vulnerableRanges":["<1.4.17",">=1.5.0-beta.1, <1.5.0-beta.9"],"patched":["1.4.17","1.5.0-beta.9"],"from":["GHSA-p6v2-xcpg-h6xw"],"provenance":"source"}],"summary":{"text":"The Better Auth library's HTTP rate limiter, prior to versions 1.4.17 and 1.5.0-beta.9, keys each request by the exact textual IP address supplied in x-forwarded-for (or the configured IP-bearing header), so IPv6 address variants are counted separately. An unauthenticated remote attacker who can send HTTP requests to the application, including from a typical /64 IPv6 allocation or by varying the textual encoding of a single address, can evade rate limiting on endpoints such as /sign-in/email, /sign-up/email, and /forget-password and make unlimited attempts against them.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:04:16Z"},"euvd":{"id":"EUVD-2026-33073","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2025-53535","published":"2025-07-07","fixed":"1.2.10","kev":false},{"cve":"CVE-2025-61928","published":"2025-10-09","fixed":"1.3.26","kev":false},{"cve":"CVE-2025-71401","published":"2026-08-02","fixed":"1.4.2","kev":false},{"cve":"CVE-2026-45364","published":"2026-05-28","fixed":"1.5.0-beta.9","kev":false},{"cve":"CVE-2026-53517","published":"2026-07-15","fixed":"1.6.0","kev":false,"link":{"from":"CVE-2026-45364","to":"CVE-2026-53517","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:better-auth","fromFixed":"1.5.0-beta.9","toFixed":"1.6.0","daysApart":48}]}},{"cve":"CVE-2026-45337","published":"2026-07-15","fixed":"1.6.11","kev":false},{"cve":"CVE-2026-53512","published":"2026-07-15","fixed":"1.6.11","kev":false}],"package":"npm:better-auth"}}