CVE-2026-134313better-auth kysely-adapter Race Condition
NVD
Vulnerability Summary
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.
CVSS v4.0 Base Metrics — Score 7.6 (HIGH)
CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:NAttack VectorNetwork
Attack ComplexityHigh
Attack RequirementsPresent
Privileges RequiredLow
User InteractionNone
Confidentiality (Vulnerable System)High
Integrity (Vulnerable System)High
Availability (Vulnerable System)None
Confidentiality (Subsequent System)None
Integrity (Subsequent System)None
Availability (Subsequent System)None
Show CVSS v3.x metrics (score 6.8)
CVSS v3.1 Base Metrics — Score 6.8 (MEDIUM)
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:NAttack VectorNetwork
Attack ComplexityHigh
Privileges RequiredLow
User InteractionNone
ScopeUnchanged
ConfidentialityHigh
IntegrityHigh
AvailabilityNone
Affected & Patched Versions
- better-auth kysely-adapter >= 1.5.0-beta.9 and < 1.7.16
- better-auth kysely-adapter >= 1.8.0-beta.0 and < 1.8.0-beta.5
- better-auth drizzle-adapter >= 1.5.0-beta.9 and < 1.7.16
- better-auth drizzle-adapter >= 1.8.0-beta.0 and < 1.8.0-beta.5
- better-auth < 1.7.16
- better-auth >= 1.8.0-beta.0 and < 1.8.0-beta.5
- better-auth kysely-adapter 1.7.16
- better-auth kysely-adapter 1.8.0-beta.5
- better-auth drizzle-adapter 1.7.16
- better-auth drizzle-adapter 1.8.0-beta.5
- better-auth 1.7.16
- better-auth 1.8.0-beta.5
What to do
Plan remediation soon. No exploitation is confirmed yet, but the severity is high.
- Check whether you run better-auth kysely-adapter and which version.
- Update to a patched version listed above, then confirm the new version.
Timeline
- Nov 21, 2026Published
- Nov 21, 2026Record last modified
Score, severity and exploitation changes are tracked from the day Watchtower started logging them.
Get notified about new better-auth kysely-adapter CVEsYou are reading CVE-2026-134313. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alertsExternal References
Data last checked: Nov 22, 2026 14:11 UTC