Skip to main content
← All vulnerabilities
CVE-2026-45337GHSA-CQ3F-VC6P-68FH

Better Auth: Device authorization approve and deny accept any authenticated session while the user code is pending

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.6.11
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: total

  3. Record last updated

Affected versions

  • better-auth better-auth

    From 1.6.0 · fixed in 1.6.11

  • better-authnpm

    From 1.6.0 · fixed in 1.6.11

References 4

GitHub · better-auth/better-auth