CVE-2026-45337 Details
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.
A vulnerability exists in the Better Auth authentication and authorization library for TypeScript, specifically in versions 1.6.0 prior to 1.6.11. The issue arises within the device authorization plugin, which fails to properly bind ownership of pending device codes to the correct user session. This flaw allows an authenticated attacker to exploit the authorization process by using a valid user code to manipulate device polling actions, either by approving the code for their own account or denying it for the rightful user. The vulnerability stems from the 'GET /device' verification step not claiming ownership of the device code, leaving it open for interception. The problem is exacerbated by the 'POST /device/approve' and 'POST /device/deny' endpoints bypassing ownership checks when the userId is unset, creating a window of opportunity for exploitation.
Users can upgrade to Better Auth version 1.6.11 or later, where this vulnerability is fixed. If an immediate upgrade is not possible, the device authorization plugin can be disabled or a before hook can be added to the approval and denial endpoints to track and enforce session ownership.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jul 15, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-285 | Improper Authorization | [email protected] |
| CWE-345 | Insufficient Verification of Data Authenticity | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| better-auth better auth | >= 1.6.0, < 1.6.11 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 21, 2026 | Initial Analysis | [email protected] |
| Jul 15, 2026 | CVE Modified | CISA-ADP |
| Jul 15, 2026 | New CVE Received | [email protected] |