Better Auth (better-auth, @better-auth/kysely-adapter, and @better-auth/drizzle-adapter) before 1.7.16 and
Source GCVE Database
Not known to be exploited · CVSS 7.6 High : upgrade to 1.7.16 soon.
Data as of 21 Nov 2026, 19:58 UTC
Thin evidence
One scorer or none| CNA (VulnCheck) | CVSS 4.0 | 7.6 |
|---|---|---|
| CNA (VulnCheck) | CVSS 3.1 | 6.8 |
- Patch
- Available – fixed in 1.7.16, 1.8.0-beta.5
CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 21 Nov 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 21 Nov 2026.
What to do
Upgrade kysely-adapter and drizzle-adapter and better-auth to 1.7.16; kysely-adapter and drizzle-adapter and better-auth to 1.8.0-beta.5; kysely-adapter and drizzle-adapter and better-auth to 1.8.0-beta.5 or 1.7.16.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| better-authkysely-adapter | Affected
| Fixed in
|
| better-authkysely-adapter | Affected
| Fixed in
|
| better-authdrizzle-adapter | Affected
| Fixed in
|
| better-authdrizzle-adapter | Affected
| Fixed in
|
| better-authbetter-auth | Affected
| Fixed in
|
| better-authbetter-auth | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
If you cannot patch yet, consider reducing concurrent sign-in load or modifying connection pooling behavior to ensure LAST_INSERT_ID() queries run on the same connection as the insert operation.
Description
Better Auth versions before 1.7.16 and 1.8.0-beta.0 before 1.8.0-beta.5 have a race condition vulnerability involving MySQL or MariaDB serial IDs. The issue arises because the inserted row's ID is retrieved using a separate LAST_INSERT_ID() query that may execute on a different pooled connection. Under concurrent load, this can cause a user signing in to receive another user's session, allowing session hijacking.
References
- github.com/better-auth/better-auth/security/advisories/GHSA-48c2-w96j-mv3m (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-134313 (opens in a new tab)
- vulncheck.com/advisories/better-auth-before-1.7.16-and-1.8.0-beta.0-before-1.8.0-beta.5-session-mix-up-via-mysql-serial-ids (opens in a new tab)