High severity7.6NVD Advisory· Published Jul 15, 2026· Updated Jul 21, 2026
CVE-2026-45337
CVE-2026-45337
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
better-authnpm | >= 1.6.0, < 1.6.11 | 1.6.11 |
Affected products
3>=1.6.0,<1.6.11+ 1 more
- (no CPE)range: >=1.6.0,<1.6.11
- cpe:2.3:a:better-auth:better_auth:*:*:*:*:*:node.js:*:*range: >=1.6.0,<1.6.11
Patches
Vulnerability mechanics
References
5- github.com/better-auth/better-auth/commit/99a254a79b59d5a3f5ca2123260118cddb5beed7nvdPatch
- github.com/better-auth/better-auth/pull/9573nvdIssue TrackingPatchWEB
- github.com/advisories/GHSA-cq3f-vc6p-68fhghsaADVISORY
- github.com/better-auth/better-auth/security/advisories/GHSA-cq3f-vc6p-68fhnvdMitigationVendor AdvisoryWEB
- github.com/better-auth/better-auth/releases/tag/v1.6.11nvdRelease NotesWEB
News mentions
0No linked articles in our index yet.