Back

HIGH

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

Published Jul 15, 2026

Description

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.

Affected products

Remediation

No remediation recorded yet.

References (6)

Change history (0)

No recorded changes yet.

Sources
CVE.org / MITRE
Status PUBLISHED
Assigner GitHub_M
Published Jul 15, 2026
Updated Jul 15, 2026
Reserved May 11, 2026
CISA Vulnrichment
Updated Jul 15, 2026
NVD
Status Analyzed
Modified Jul 21, 2026
Red Hat
Severity n/a
Public date n/a
ENISA EUVD
Assigner GitHub_M
Published Jul 15, 2026
Updated Jul 15, 2026
Exploited since n/a
EUVD-2026-44743 GHSA-CQ3F-VC6P-68FH