Better Auth: Device authorization approve and deny accept any authenticated session while the user code is pending
Summary
| CVE | CVE-2026-45337 |
|---|---|
| State | PUBLISHED |
| Assigner | GitHub_M |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-07-15 18:16:45 UTC |
| Updated | 2026-07-21 04:21:25 UTC |
| 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. |
Risk And Classification
Primary CVSS: v3.1 7.6 HIGH from [email protected]
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:L
EPSS: 0.001400000 probability, percentile 0.037980000 (date 2026-07-21)
Problem Types: CWE-285 | CWE-345 | CWE-285 CWE-285: Improper Authorization | CWE-345 CWE-345: Insufficient Verification of Data Authenticity
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Secondary | 7.6 | HIGH | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:L |
| 3.1 | CNA | DECLARED | 7.6 | HIGH | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:L |
CVSS v3.1 Breakdown
Attack Vector
NetworkAttack Complexity
LowPrivileges Required
LowUser Interaction
RequiredScope
UnchangedConfidentiality
HighIntegrity
HighAvailability
LowCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:L
NVD Known Affected Configurations (CPE 2.3)
| Type | Vendor | Product | Version | Update | Edition | Language |
|---|---|---|---|---|---|---|
| Application | Better-auth | Better Auth | All | All | All | All |
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Better-auth | Better-auth | affected >= 1.6.0, < 1.6.11 | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| github.com/better-auth/better-auth/security/advisories/GHSA-cq3f-vc6p-68fh | [email protected] | github.com | Mitigation, Vendor Advisory |
| github.com/better-auth/better-auth/pull/9573 | [email protected] | github.com | Issue Tracking, Patch |
| github.com/better-auth/better-auth/commit/99a254a79b59d5a3f5ca2123260118... | [email protected] | github.com | Patch |
| github.com/better-auth/better-auth/releases/tag/v1.6.11 | [email protected] | github.com | Release Notes |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.