Race conditionin better-auth Better Auth.
No public exploit found; not on exploited lists.
Better Auth (better-auth, @better-auth/kysely-adapter, and @better-auth/drizzle-adapter) before 1.7.16 and 1.8.0-beta.0 before 1.8.0-beta.5 contains a race condition with MySQL or MariaDB serial IDs because the inserted row's ID is read via a separate LAST_INSERT_ID() query that may run on a different pooled connection. Under concurrent load, a user signing in can receive another user's session and act as that user.
- Upgrade kysely-adapter to 1.7.16, 1.8.0-beta.5 or later, whichever matches your release line.
- Upgrade drizzle-adapter to 1.7.16, 1.8.0-beta.5 or later, whichever matches your release line.
- Upgrade better-auth to 1.7.16, 1.8.0-beta.5 or later, whichever matches your release line.
Affected and fixed versions
From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.
From first report to first attacks
- 20 Nov 2026CVE ID reserved by VulnCheck.
- 21 Nov 2026Published in the CVE List.
- 23 Nov 2026CVE record last updated.
Attack code anyone can find
Exploit maturity: No public exploit found. CISA assessment (SSVC): exploitation none.
Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.
Report a link
Nothing on this page links to exploit code right now. To report anything else, write to the contact point in the legal notice.
Other Better Auth vulnerabilities
Same weakness: Race condition
- github.com vendor-advisory
- www.vulncheck.com third-party-advisory
Patchminder. CVE-2026-134313: Race condition in better-auth Better Auth. https://patchminder.com/cve/cve-2026-134313/ (accessed 5 December 2026).