CVE-2026-134313: Better Auth before 1.7.16 and 1.8.0-beta.0 before 1.8.0-beta.5 Session Mix-Up via MySQL Serial IDs

Published Nov 21, 2026
·
Updated

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 LASTINSERTID() 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.

Affected Software

3 affected components
npm/better-auth<1.7.16, >=1.8.0-beta.0<1.8.0-beta.5
npm/@better-auth/kysely-adapter<1.7.16, >=1.8.0-beta.0<1.8.0-beta.5
npm/@better-auth/drizzle-adapter<1.7.16, >=1.8.0-beta.0<1.8.0-beta.5

Event History

Nov 21, 2026
CVE Published
via MITRE·04:34 PM
Data Sourced
via MITRE·04:34 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·05:16 PM
DescriptionSeverityWeakness

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203