Skip to content
Medium 7.6

Better Authで同時アクセス時にほかの利用者のセッションを取得される脆弱性

CVE-2026-134313 First seen on SecPulse

Summary

MySQLやMariaDBの連番IDを使う環境で競合状態が起き、同時にログインが多いと、別の利用者のセッションを受け取って、その利用者として操作されるおそれがあります。影響するのは1.8.0-beta.0以上1.8.0-beta.5未満のbetter-auth本体、kysely-adapter、drizzle-adapterで、1.8.0-beta.5に修正版が公開されています。

AI summary

Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.

MySQLやMariaDBの連番IDを使う環境で競合状態が起き、同時にログインが多いと、別の利用者のセッションを受け取って、その利用者として操作されるおそれがあります。影響するのは1.8.0-beta.0以上1.8.0-beta.5未満のbetter-auth本体、kysely-adapter、drizzle-adapterで、1.8.0-beta.5に修正版が公開されています。

Affected packages

PackageAffected → Fixed
better-authkysely-adapter
≥ 1.8.0-beta.0, < 1.8.0-beta.5→ 1.8.0-beta.5
better-authdrizzle-adapter
≥ 1.8.0-beta.0, < 1.8.0-beta.5→ 1.8.0-beta.5
better-authbetter-auth
≥ 1.8.0-beta.0, < 1.8.0-beta.5→ 1.8.0-beta.5
Original description The description as published by the source.

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.

Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details