Vulnerability in Better-Auth
CVE-2026-134313
- CVSS v3
- 6.8 Medium
- Public exploits
- None known
- EPSS
- 0.003 · 11.7th percentile
- Published
- 2026-11-21
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.
Vulnerability class: Race Condition
Published · last modified .
CVSS v3 metric
CVSS v3 base score 6.8 (Medium). Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N.
- Attack Vector
- Network
AV:N - Attack Complexity
- High
AC:H - Privileges Required
- Low
PR:L - User Interaction
- None
UI:N - Scope
- Unchanged
S:U - Confidentiality
- High
C:H - Integrity
- High
I:H - Availability
- None
A:N
EPSS exploit prediction
EPSS 0.003, 11.7th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
Weakness classification (CWE)
References
- github.com/better-auth/better-auth/security/advisories/GHSA-48c2-w96j-mv3m (vendor-advisory)
- www.vulncheck.com/advisories/better-auth-before-1.7.16-and-1.8.0-beta.0-before-… (third-party-advisory)