{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-45364","id":"CVE-2026-45364","title":"Better Auth: Rate limiter keys IPv6 addresses individually and is bypassable via prefix rotation","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 c","descriptionLong":"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.","published":"2026-05-28T21:34:51.446Z","updated":"2026-10-28T02:30:54.020235668Z","reserved":"2026-05-12T00:51:29.085Z","status":"Deferred","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":7.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","rating":"high","source":"GitHub_M"},"metrics":[{"version":"3.1","score":7.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","rating":"high","source":"GitHub_M"},{"version":"3.1","score":7.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","rating":"high","source":"github.com"},{"version":"3.1","score":7.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","rating":"high","source":"OSV"},{"version":"3.1","score":7.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","rating":"high","source":"GitHub"}],"rating":"high","products":["better-auth"],"affectedProducts":[{"vendor":"better-auth","product":"better-auth","defaultStatus":null,"versions":[{"version":"< 1.4.17","status":"affected"},{"version":">= 1.5.0-beta.1, < 1.5.0-beta.9","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"better-auth","purl":"pkg:npm/better-auth","ranges":["<1.4.17",">=1.5.0-beta.1 <1.5.0-beta.9"],"fixed":["1.4.17","1.5.0-beta.9"],"advisory":"GHSA-p6v2-xcpg-h6xw"}],"cwes":["CWE-307"],"aliases":["GHSA-p6v2-xcpg-h6xw"],"references":[{"url":"https://github.com/better-auth/better-auth/security/advisories/GHSA-p6v2-xcpg-h6xw","tags":["x_refsource_CONFIRM","advisory","web"]},{"url":"https://github.com/better-auth/better-auth/pull/7470","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/better-auth/better-auth/pull/7509","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/better-auth/better-auth/commit/43e719bcc0c223c7079fa0c611a9cf7ea1188254","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/better-auth/better-auth/commit/57af0f7b910dcf7b1a5c0615d10b9bd56bb69bef","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/45xxx/CVE-2026-45364.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-45364","tags":["advisory"]},{"url":"https://github.com/better-auth/better-auth","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial"},"epss":0.00295,"epssPercentile":0.22496,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-45364","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-45364","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-45364","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-p6v2-xcpg-h6xw","ok":true,"note":"GHSA-p6v2-xcpg-h6xw"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-45364","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}