Skip to main content

Drizzle Adapter

1 CVEs product

Monthly

CVE-2026-134313 Nov 21, 16:34 HIGH PATCH This Week

Better Auth versions before 1.7.16, and 1.8.0-beta.0 through 1.8.0-beta.4 on the beta line, can hand one user's session to a different user when running on MySQL or MariaDB with `advanced.database.generateId: "serial"`. Because the inserted row's ID is fetched with a separate `LAST_INSERT_ID()` query that may land on a different pooled connection, concurrent sign-in or sign-up traffic can return another request's record - letting an authenticated user act as whichever account they happen to receive, though they cannot choose the victim. Exploitation requires the non-default serial ID mode plus a connection pool, and is a timing race rather than a deterministic request; the vendor advisory is GHSA-48c2-w96j-mv3m and fixed releases are 1.7.16 and 1.8.0-beta.5. No public exploit code was identified at time of analysis and there is no CISA KEV entry, but the flaw is a genuine cross-account session integrity risk for deployments matching the prerequisites.

Information Disclosure Race Condition Better Auth Kysely Adapter Drizzle Adapter
NVD GitHub
CVSS 4.0
7.6
EPSS
0.4%
EPSS 0% CVSS 7.6
HIGH PATCH This Week

Better Auth versions before 1.7.16, and 1.8.0-beta.0 through 1.8.0-beta.4 on the beta line, can hand one user's session to a different user when running on MySQL or MariaDB with `advanced.database.generateId: "serial"`. Because the inserted row's ID is fetched with a separate `LAST_INSERT_ID()` query that may land on a different pooled connection, concurrent sign-in or sign-up traffic can return another request's record - letting an authenticated user act as whichever account they happen to receive, though they cannot choose the victim. Exploitation requires the non-default serial ID mode plus a connection pool, and is a timing race rather than a deterministic request; the vendor advisory is GHSA-48c2-w96j-mv3m and fixed releases are 1.7.16 and 1.8.0-beta.5. No public exploit code was identified at time of analysis and there is no CISA KEV entry, but the flaw is a genuine cross-account session integrity risk for deployments matching the prerequisites.

Information Disclosure Race Condition Better Auth +2
NVD GitHub

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy