@Better-Auth/Kysely-Adapter
A race condition exists in database-backed rate limiting on PostgreSQL where the limit check is not atomic with the counter update. This allows remote attackers to send bursts of concurrent requests that bypass the check simultaneously, exceeding configured limits on endpoints such as password sign-in, two-factor verification, one-time code, and password reset.