CVE-2026-45337
Better Auth: Device authorization approve and deny accept any authenticated session while the user code is pending
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.
INFO
Published Date :
July 15, 2026, 6:16 p.m.
Last Modified :
July 21, 2026, 4:21 a.m.
Remotely Exploit :
Yes !
Source :
[email protected]
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS | 134c704f-9b21-4f2e-91b3-4a467353bcc0 | |||||
| CVSS 3.1 | HIGH | [email protected] | ||||
| CVSS 3.1 | HIGH | MITRE-CVE |
Solution
- Update the deviceAuthorization plugin to version 1.6.11 or later.
- Verify the fix by testing device authorization flows.
Public PoC/Exploit Available at Github
CVE-2026-45337 has a 1 public
PoC/Exploit available at Github.
Go to the Public Exploits tab to see the list.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-45337.
| URL | Resource |
|---|---|
| https://github.com/better-auth/better-auth/commit/99a254a79b59d5a3f5ca2123260118cddb5beed7 | Patch |
| https://github.com/better-auth/better-auth/pull/9573 | Issue Tracking Patch |
| https://github.com/better-auth/better-auth/releases/tag/v1.6.11 | Release Notes |
| https://github.com/better-auth/better-auth/security/advisories/GHSA-cq3f-vc6p-68fh | Mitigation Vendor Advisory |
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-45337 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-45337
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Security infrastructure your AI can't be — deterministic, daily CVE intel past your model's training cutoff, whole-repo-aware, author-independent, and shift-left: secure_prompt secures the prompt before code generation. The security MCP for vibe coding: 450 rules, 39 tools, CLI + doctor for Next.js, Supabase, Clerk, Stripe, Prisma, Hono & MCP.
ai-security claude clerk cursor mcp nextjs owasp prisma sast security stripe supabase typescript vercel vibe-coding cve drizzle hono mcp-server prompt-injection
TypeScript JavaScript
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-45337 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-45337 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
Initial Analysis by [email protected]
Jul. 21, 2026
Action Type Old Value New Value Added CPE Configuration OR *cpe:2.3:a:better-auth:better_auth:*:*:*:*:*:node.js:*:* versions from (including) 1.6.0 up to (excluding) 1.6.11 Added Reference Type GitHub, Inc.: https://github.com/better-auth/better-auth/commit/99a254a79b59d5a3f5ca2123260118cddb5beed7 Types: Patch Added Reference Type GitHub, Inc.: https://github.com/better-auth/better-auth/pull/9573 Types: Issue Tracking, Patch Added Reference Type GitHub, Inc.: https://github.com/better-auth/better-auth/releases/tag/v1.6.11 Types: Release Notes Added Reference Type GitHub, Inc.: https://github.com/better-auth/better-auth/security/advisories/GHSA-cq3f-vc6p-68fh Types: Mitigation, Vendor Advisory -
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Jul. 15, 2026
Action Type Old Value New Value Added SSVC {'id': 'CVE-2026-45337', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'none'}, {'automatable': 'no'}, {'technicalImpact': 'total'}], 'version': '2.0.3', 'timestamp': '2026-07-15T18:02:43.206553Z'} -
New CVE Received by [email protected]
Jul. 15, 2026
Action Type Old Value New Value Added Affected [{'vendor': 'better-auth', 'product': 'better-auth', 'versions': [{'status': 'affected', 'version': '>= 1.6.0, < 1.6.11'}]}] Added 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. Added CVSS V3.1 AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:L Added CWE CWE-345 Added CWE CWE-285 Added Reference https://github.com/better-auth/better-auth/commit/99a254a79b59d5a3f5ca2123260118cddb5beed7 Added Reference https://github.com/better-auth/better-auth/pull/9573 Added Reference https://github.com/better-auth/better-auth/releases/tag/v1.6.11 Added Reference https://github.com/better-auth/better-auth/security/advisories/GHSA-cq3f-vc6p-68fh