PT-2026-153942
CVE-2026-134313
·
Published
2026-11-21
·
Updated
2026-11-21
Description by
CVSS 4.0
7.6
HighMetricsAV:N/AC:H/AT:P/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
Name of the Vulnerable Software and Affected Versions
better-auth versions prior to 1.7.16
@better-auth/kysely-adapter versions prior to 1.7.16
@better-auth/drizzle-adapter versions prior to 1.7.16
better-auth versions 1.8.0-beta.0 through 1.8.0-beta.4
@better-auth/kysely-adapter versions 1.8.0-beta.0 through 1.8.0-beta.4
@better-auth/drizzle-adapter versions 1.8.0-beta.0 through 1.8.0-beta.4
Description
A race condition exists when using MySQL or MariaDB serial IDs. This occurs because the ID of an inserted row is retrieved using a separate
LAST INSERT ID() query, which may execute on a different pooled connection. In scenarios with concurrent load, a user signing in may be assigned another user's session, allowing them to impersonate that user.Recommendations
Update better-auth, @better-auth/kysely-adapter, and @better-auth/drizzle-adapter to version 1.7.16 or later.
Update better-auth, @better-auth/kysely-adapter, and @better-auth/drizzle-adapter to version 1.8.0-beta.5 or later.
Exploitability
Exploit
Fix
Impacts
Vendors
Affected products
Found an issue in the description? Have something to add? Feel free to write us 👾