Kysely Adapter
Monthly
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.
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.