Skip to main content
Network Thinking Solutions Logo

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.

All CVEs
CVE-2026-134313Published 11/21/2026

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.

Vendor advisory
CVSS 4.07.6High

Overview

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.

Published
11/21/2026
Last modified
11/23/2026
CVE assigner
VulnCheck
NVD analysis
Received

Exploitation

No CISA KEV flag in the saved record

An absent KEV flag does not establish that exploitation has never occurred. Verify current intelligence before prioritizing work.

EPSS predictions and CISA SSVC assessments are not imported here. Review additional intelligence on Cloudflare

Affected products

Affected-version rules published in the advisory. Conditions and uncertain comparisons require verification.

Vendor / productAffected versionsPlatform / conditionsEvidence
kysely-adapter
better-auth
≥ 1.5.0-beta.9, < 1.7.16

Verify advisory

Verify the advisory platform, edition, update channel, and any version exceptions.

Source
kysely-adapter
better-auth
≥ 1.8.0-beta.0, < 1.8.0-beta.5

Verify advisory

Verify the advisory platform, edition, update channel, and any version exceptions.

Source
drizzle-adapter
better-auth
≥ 1.5.0-beta.9, < 1.7.16

Verify advisory

Verify the advisory platform, edition, update channel, and any version exceptions.

Source
drizzle-adapter
better-auth
≥ 1.8.0-beta.0, < 1.8.0-beta.5

Verify advisory

Verify the advisory platform, edition, update channel, and any version exceptions.

Source
better-auth
better-auth
< 1.7.16

Verify advisory

Verify the advisory platform, edition, update channel, and any version exceptions.

Source
better-auth
better-auth
≥ 1.8.0-beta.0, < 1.8.0-beta.5

Verify advisory

Verify the advisory platform, edition, update channel, and any version exceptions.

Source

Recommended actions

Verify the product, installed version, platform, and advisory prerequisites on each system. Apply the vendor's applicable fixed release or mitigation. An affected-range boundary alone is not a universal update recommendation.

Severity

CVSS describes technical impact. It is separate from exploitation evidence.

7.6 · High CVSS 4.0

Scored by VulnCheck

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

6.8 · Medium CVSS 3.1

Scored by VulnCheck

CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N

7.6 · High CVSS 4.0

Scored by disclosure@vulncheck.com

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

6.8 · Medium CVSS 3.1

Scored by disclosure@vulncheck.com

CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N

Related weaknesses

Sources & references

Sources: Official CVE List, NVD and cve.now (summaries CC BY 4.0). Uses NVD data; not endorsed by NVD.