CVE-2026-45337
HIGH 7.6CVSS 3.1Better Auth: Device authorization approve and deny accept any authenticated session while the user code is pending
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.
- Published
- 15 Jul 2026
- Last modified
- 21 Jul 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-285CWE-345CWE-639CWE-863
- Also known as
- GHSA-cq3f-vc6p-68fh
- Sources
- NVDJSONOSV GHSA-cq3f-vc6p-68fhJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.6 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:L |
| OSV | GitHub | CVSS 3.1 | HIGH 7.6 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | better-auth | better_authcpe:2.3:a:better-auth:better_auth:*:*:*:*:*:node.js:*:* |
>= 1.6.0, < 1.6.11 | 1.6.11 |
| OSV | npm | better-auth | >= 1.6.0, < 1.6.11 | 1.6.11 |
References
- https://github.com/better-auth/better-auth/commit/99a254a79b59d5a3f5ca2123260118cddb5beed7 · Patch
- https://github.com/better-auth/better-auth/pull/9573 · Issue Tracking, Patch, WEB
- https://github.com/better-auth/better-auth/releases/tag/v1.6.11 · Release Notes, WEB
- https://github.com/better-auth/better-auth/security/advisories/GHSA-cq3f-vc6p-68fh · Mitigation, Vendor Advisory, WEB
- https://github.com/better-auth/better-auth · PACKAGE
History
- 25 Nov 2026 21:03 UTC · NVD: first stored (published 15 Jul 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 4 Jun 2026)