CVE Watchtower

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.
Severity Level
HIGH(7.6)
Published Date
Nov 21, 2026
Last Modified
Nov 21, 2026
Exploitation Status
No confirmed exploitation yet
Root Weakness (CWE)
The product contains a concurrent code sequence that requires exclusive access to a shared resource, but a timing window exists in which another code sequence can modify the resource.
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:N
Attack 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:N
Attack VectorNetwork
Attack ComplexityHigh
Privileges RequiredLow
User InteractionNone
ScopeUnchanged
ConfidentialityHigh
IntegrityHigh
AvailabilityNone

Affected & Patched Versions

Affected 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
Patched Versions
  • 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.

  1. Check whether you run better-auth kysely-adapter and which version.
  2. 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 alerts

Data last checked: Nov 22, 2026 14:11 UTC