CVE-2026-134313
Published:November 21, 2026
Updated:November 23, 2026
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.
Affected Packages
https://github.com/better-auth/better-auth.git (GITHUB):
Affected version(s) >=v1.2.6-beta.11 <v1.7.16Fix Suggestion:
Update to version v1.7.16https://github.com/better-auth/better-auth.git (GITHUB):
Affected version(s) >=v1.8.0-beta.0 <v1.8.0-beta.5Fix Suggestion:
Update to version v1.8.0-beta.5@better-auth/kysely-adapter (NPM):
Affected version(s) >=1.8.0-beta.0 <1.8.0-beta.5Fix Suggestion:
Update to version 1.8.0-beta.5better-auth (NPM):
Affected version(s) >=1.2.6-beta.11 <1.7.16Fix Suggestion:
Update to version 1.7.16@better-auth/drizzle-adapter (NPM):
Affected version(s) >=1.8.0-beta.0 <1.8.0-beta.5Fix Suggestion:
Update to version 1.8.0-beta.5@better-auth/drizzle-adapter (NPM):
Affected version(s) >=1.5.0-beta.9 <1.7.16Fix Suggestion:
Update to version 1.7.16@better-auth/kysely-adapter (NPM):
Affected version(s) >=1.5.0-beta.9 <1.7.16Fix Suggestion:
Update to version 1.7.16Related Resources (4)
Do you need more information?
Contact UsCVSS v4
Base Score:
7.6
Attack Vector
NETWORK
Attack Complexity
HIGH
Attack Requirements
PRESENT
Privileges Required
LOW
User Interaction
NONE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
HIGH
Vulnerable System Availability
NONE
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
6.8
Attack Vector
NETWORK
Attack Complexity
HIGH
Privileges Required
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
NONE
Weakness Type (CWE)
Concurrent Execution using Shared Resource with Improper Synchronization
EPSS
Base Score:
0.35