CVE-2026-134313

MEDIUMCVSS 6.8/10EPSS 0.35%

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.

VendorProductVersions
better-authkysely-adapter>= 1.5.0-beta.9, < 1.7.16
better-authkysely-adapter>= 1.8.0-beta.0, < 1.8.0-beta.5
better-authdrizzle-adapter>= 1.5.0-beta.9, < 1.7.16
better-authdrizzle-adapter>= 1.8.0-beta.0, < 1.8.0-beta.5
better-authbetter-auth< 1.7.16
better-authbetter-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?
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.
How severe is CVE-2026-134313?
CVE-2026-134313 has a CVSS score of 6.8/10 (MEDIUM severity). The EPSS model estimates a 0.35% probability of exploitation in the next 30 days.
How do I fix CVE-2026-134313?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

How Strix Helps

Related CVEs from 2026

Are you affected by CVE-2026-134313?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST