CVE-2026-134313
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.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or — if you've already worked around this in production — publish your fix to the community-verified tier.
Propose a mitigation on Community Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
Application impact
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| better-auth | kysely-adapter | {"startIncluding":"1.5.0-beta.9","endExcluding":"1.7.16"} | 1.7.16 |
| better-auth | kysely-adapter | {"startIncluding":"1.8.0-beta.0","endExcluding":"1.8.0-beta.5"} | 1.8.0-beta.5 |
| better-auth | drizzle-adapter | {"startIncluding":"1.5.0-beta.9","endExcluding":"1.7.16"} | 1.7.16 |
| better-auth | drizzle-adapter | {"startIncluding":"1.8.0-beta.0","endExcluding":"1.8.0-beta.5"} | 1.8.0-beta.5 |
| better-auth | better-auth | {"endExcluding":"1.7.16"} | 1.7.16 |
| better-auth | better-auth | {"startIncluding":"1.8.0-beta.0","endExcluding":"1.8.0-beta.5"} | 1.8.0-beta.5 |
References
CWEs
CWE-362
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.