CVE-2026-45337
Better Auth: Device authorization approve and deny accept any authenticated session while the user code is pending
- Published
- Updated
- Reserved
- Assigned by
- GitHub_M
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.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GitHub_MCNA (assigner) | 3.1 | High7.6 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:L |
| NVDNVD · Analyzed | 3.1 | High7.6 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:L |
- EPSS (exploitation in 30 days)
- 0.21% · top 88% of all CVEs (6 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: total
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.6.
Weakness
Affected products
- affected >= 1.6.0, < 1.6.11
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- npmbetter-authGHSA-cq3f-vc6p-68fh (opens in a new tab)
References (4)
- https://github.com/better-auth/better-auth/security/advisories/GHSA-cq3f-vc6p-68fh (opens in a new tab)x_refsource_CONFIRM
- https://github.com/better-auth/better-auth/pull/9573 (opens in a new tab)x_refsource_MISC
- https://github.com/better-auth/better-auth/commit/99a254a79b59d5a3f5ca2123260118cddb5beed7 (opens in a new tab)x_refsource_MISC
- https://github.com/better-auth/better-auth/releases/tag/v1.6.11 (opens in a new tab)x_refsource_MISC
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-cq3f-vc6p-68fh (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2026-45337)Record last updated .