{"id":"CVE-2026-45337","published":"2026-07-15T17:31:44Z","modified":"2026-07-15T18:02:58Z","title":"Better Auth: Device authorization approve and deny accept any authenticated session while the user code is pending","vendor":"better-auth","product":"better-auth","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.6,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00214,"percentile":0.11923,"provenance":"source"},"cwes":[{"id":"CWE-285","name":"Improper Authorization"},{"id":"CWE-345","name":"Insufficient Verification of Data Authenticity"}],"references":[{"url":"https://github.com/better-auth/better-auth/security/advisories/GHSA-cq3f-vc6p-68fh","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/better-auth/better-auth/pull/9573","tags":["x_refsource_MISC"]},{"url":"https://github.com/better-auth/better-auth/commit/99a254a79b59d5a3f5ca2123260118cddb5beed7","tags":["x_refsource_MISC"]},{"url":"https://github.com/better-auth/better-auth/releases/tag/v1.6.11","tags":["x_refsource_MISC"]}],"priority":{"score":7.7,"factors":[{"name":"EPSS percentile","points":2.38},{"name":"CVSS severity","points":5.32}]},"vendorSlug":"better-auth","affectedVersions":[{"vendor":"better-auth","product":"better-auth","versions":[">= 1.6.0, < 1.6.11"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-07-15T18:02:43.206553Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"better-auth","vulnerableRanges":[">=1.6.0, <1.6.11"],"patched":["1.6.11"],"from":["GHSA-cq3f-vc6p-68fh"],"provenance":"source"}],"summary":{"text":"The Better Auth library's deviceAuthorization plugin, in versions 1.6.0 through 1.6.11, fails to bind pending device codes to their intended owner, so any authenticated session is treated as the owner of a pending code on the device authorization endpoints. An attacker with a valid account who learns a victim's user_code can approve it to bind the polling device to the attacker's account or deny the legitimate authorization flow, with the attack requiring that the attacker be logged in and that the victim is induced to take part in the device flow.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:11:52Z"},"euvd":{"id":"EUVD-2026-44743","exploited":false,"provenance":"source"}}