CVE-2026-134313
Last modified
CVE-2026-134313 is a medium-severity vulnerability rated 6.8/10 on the CVSS scale. 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.. EPSS estimates a 0.35% chance of exploitation in the next 30 days.
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.
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| better-auth | kysely-adapter | >= 1.5.0-beta.9, < 1.7.16 |
| better-auth | kysely-adapter | >= 1.8.0-beta.0, < 1.8.0-beta.5 |
| better-auth | drizzle-adapter | >= 1.5.0-beta.9, < 1.7.16 |
| better-auth | drizzle-adapter | >= 1.8.0-beta.0, < 1.8.0-beta.5 |
| better-auth | better-auth | < 1.7.16 |
| better-auth | better-auth | >= 1.8.0-beta.0, < 1.8.0-beta.5 |
References
Timeline
- Published
- Last Modified
- Status
- Received
Frequently Asked Questions
What is CVE-2026-134313?
How severe is CVE-2026-134313?
How do I fix CVE-2026-134313?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-134306SurrealDB before 4.0.0 contains an incorrect authorization v…4.3
- CVE-2026-134307SurrealDB 3.0.0 before 4.0.0 contains a permission bypass vu…6.5
- CVE-2026-134309SurrealDB 1.0.0 before 4.0.0 contains an authorization bypas…8.8
- CVE-2026-134310SurrealDB from 3.2.0 before 3.3.4 contains an authorization …6.5
- CVE-2026-134311better-auth 1.3.0 before 1.7.16 and 1.8.0-beta.0 before 1.8.…6.8
- CVE-2026-134312Better Auth 0.4.9 before 1.7.16 and 1.8.0-beta.0 before 1.8.…5.9
- CVE-2026-134314better-auth 1.3.7 before 1.7.16 and 1.8.0-beta.0 before 1.8.…4.8
- CVE-2026-134315better-auth 1.4.0 before 1.7.16 and 1.8.0-beta.0 before 1.8.…6.4
- CVE-2026-134316@better-auth/electron 1.5.0-beta.12 before 1.7.16 and 1.8.0-…8.1
- CVE-2026-134317@better-auth/stripe 1.2.0-beta.18 before 1.7.16 and 1.8.0-be…5.9
- CVE-2026-134318better-auth 1.5.5 before 1.7.16 and 1.8.0-beta.0 before 1.8.…4.9
- CVE-2026-13432The ThumbPress WordPress plugin before 6.2.2 does not perfo…5.4
Are you affected by CVE-2026-134313?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
