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
Summary
| CVE | CVE-2026-134313 |
|---|---|
| State | PUBLISHED |
| Assigner | VulnCheck |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-11-21 17:16:52 UTC |
| Updated | 2026-11-23 16:17:31 UTC |
| Description | 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. |
Risk And Classification
Primary CVSS: v4.0 7.6 HIGH from [email protected]
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
EPSS: 0.003530000 probability, percentile 0.295480000 (date 2026-11-23)
Problem Types: CWE-362 | CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 4.0 | [email protected] | Secondary | 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/E:X/C... |
| 4.0 | CNA | CVSS | 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 |
| 3.1 | [email protected] | Secondary | 6.8 | MEDIUM | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N |
| 3.1 | CNA | CVSS | 6.8 | MEDIUM | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N |
CVSS v4.0 Breakdown
Attack Vector
NetworkAttack Complexity
HighAttack Requirements
PresentPrivileges Required
LowUser Interaction
NoneConfidentiality
HighIntegrity
HighAvailability
NoneSub Conf.
NoneSub Integrity
NoneSub Availability
NoneCVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
CVSS v3.1 Breakdown
Attack Vector
NetworkAttack Complexity
HighPrivileges Required
LowUser Interaction
NoneScope
UnchangedConfidentiality
HighIntegrity
HighAvailability
NoneCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Better-auth | Kysely-adapter | affected 1.5.0-beta.9 1.7.16 semver | Not specified |
| CNA | Better-auth | Kysely-adapter | unaffected 1.7.16 semver | Not specified |
| CNA | Better-auth | Kysely-adapter | affected 1.8.0-beta.0 1.8.0-beta.5 semver | Not specified |
| CNA | Better-auth | Kysely-adapter | unaffected 1.8.0-beta.5 semver | Not specified |
| CNA | Better-auth | Drizzle-adapter | affected 1.5.0-beta.9 1.7.16 semver | Not specified |
| CNA | Better-auth | Drizzle-adapter | unaffected 1.7.16 semver | Not specified |
| CNA | Better-auth | Drizzle-adapter | affected 1.8.0-beta.0 1.8.0-beta.5 semver | Not specified |
| CNA | Better-auth | Drizzle-adapter | unaffected 1.8.0-beta.5 semver | Not specified |
| CNA | Better-auth | Better-auth | affected 1.7.16 semver | Not specified |
| CNA | Better-auth | Better-auth | unaffected 1.7.16 semver | Not specified |
| CNA | Better-auth | Better-auth | affected 1.8.0-beta.0 1.8.0-beta.5 semver | Not specified |
| CNA | Better-auth | Better-auth | unaffected 1.8.0-beta.5 semver | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| github.com/better-auth/better-auth/security/advisories/GHSA-48c2-w96j-mv3m | [email protected] | github.com | |
| www.vulncheck.com/advisories/better-auth-before-1.7.16-and-1.8.0-beta.0-before-... | [email protected] | www.vulncheck.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
Vendor Comments And Credit
Discovery Credit
CNA: wrufeger (en)
There are currently no legacy QID mappings associated with this CVE.