CVE-2026-45337
Better Auth: Device authorization approve and deny accept any authenticated session while the user code is pending
CVSS Score
7.6
EPSS Score
0.0%
EPSS Percentile
0th
Better Auth is an authentication and authorization library for TypeScript. From 1.6.0 until 1.6.11, the deviceAuthorization plugin treats any authenticated session as the owner of any pending device code because GET /device does not claim the row and POST /device/approve and POST /device/deny short-circuit when userId is unset, allowing an authenticated attacker who learns a valid user_code to bind the polling device to the attacker's account or deny the legitimate flow. This issue is fixed in version 1.6.11.
| CWE | CWE-285 CWE-345 |
| Vendor | better-auth |
| Product | better-auth |
| Published | Jul 15, 2026 |
| Last Updated | Jul 15, 2026 |
Stay Ahead of the Next One
Get instant alerts for better-auth better-auth
Be the first to know when new high vulnerabilities affecting better-auth better-auth are published โ delivered to Slack, Telegram or Discord.
Get Free Alerts โ
Free ยท No credit card ยท 60 sec setup
CVSS v3 Breakdown
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:L Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
Low
Affected Versions
better-auth / better-auth
>= 1.6.0, < 1.6.11
References
github.com: https://github.com/better-auth/better-auth/security/advisories/GHSA-cq3f-vc6p-68fh github.com: https://github.com/better-auth/better-auth/pull/9573 github.com: https://github.com/better-auth/better-auth/commit/99a254a79b59d5a3f5ca2123260118cddb5beed7 github.com: https://github.com/better-auth/better-auth/releases/tag/v1.6.11