CVE Explorer
CVE-2026-45337
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 v
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
1
Preserved source conflicts
No provider value was silently selected as the winner.
cwe · 2 assertions
{"cweId":"CWE-285","description":"CWE-285: Improper Authorization","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:32a05954c339f6e43d539912979a65c0c889abae33b9d2ac7c69aa17aa5efa17 · sha256:14df4642a9528054… · /containers/cna/problemTypes/0/descriptions/0
{"cweId":"CWE-345","description":"CWE-345: Insufficient Verification of Data Authenticity","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:32a05954c339f6e43d539912979a65c0c889abae33b9d2ac7c69aa17aa5efa17 · sha256:14df4642a9528054… · /containers/cna/problemTypes/1/descriptions/0
Affected products and versions
1 source assertion{"product":"better-auth","vendor":"better-auth","versions":[{"status":"affected","version":">= 1.6.0, < 1.6.11"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:32a05954c339f6e43d539912979a65c0c889abae33b9d2ac7c69aa17aa5efa17 · sha256:14df4642a9528054… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"LOW","baseScore":7.6,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:L","version":"3.1"},"metric_type":"cvssV3_1"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:32a05954c339f6e43d539912979a65c0c889abae33b9d2ac7c69aa17aa5efa17 · sha256:14df4642a9528054… · /containers/cna/metrics/0/cvssV3_1
CWE assertions
2 source assertions{"cweId":"CWE-285","description":"CWE-285: Improper Authorization","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:32a05954c339f6e43d539912979a65c0c889abae33b9d2ac7c69aa17aa5efa17 · sha256:14df4642a9528054… · /containers/cna/problemTypes/0/descriptions/0
{"cweId":"CWE-345","description":"CWE-345: Insufficient Verification of Data Authenticity","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:32a05954c339f6e43d539912979a65c0c889abae33b9d2ac7c69aa17aa5efa17 · sha256:14df4642a9528054… · /containers/cna/problemTypes/1/descriptions/0
Source references
4 source assertions{"name":"https://github.com/better-auth/better-auth/commit/99a254a79b59d5a3f5ca2123260118cddb5beed7","tags":["x_refsource_MISC"],"url":"https://github.com/better-auth/better-auth/commit/99a254a79b59d5a3f5ca2123260118cddb5beed7"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:32a05954c339f6e43d539912979a65c0c889abae33b9d2ac7c69aa17aa5efa17 · sha256:14df4642a9528054… · /containers/cna/references/2
{"name":"https://github.com/better-auth/better-auth/pull/9573","tags":["x_refsource_MISC"],"url":"https://github.com/better-auth/better-auth/pull/9573"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:32a05954c339f6e43d539912979a65c0c889abae33b9d2ac7c69aa17aa5efa17 · sha256:14df4642a9528054… · /containers/cna/references/1
{"name":"https://github.com/better-auth/better-auth/releases/tag/v1.6.11","tags":["x_refsource_MISC"],"url":"https://github.com/better-auth/better-auth/releases/tag/v1.6.11"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:32a05954c339f6e43d539912979a65c0c889abae33b9d2ac7c69aa17aa5efa17 · sha256:14df4642a9528054… · /containers/cna/references/3
{"name":"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/security/advisories/GHSA-cq3f-vc6p-68fh"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:32a05954c339f6e43d539912979a65c0c889abae33b9d2ac7c69aa17aa5efa17 · sha256:14df4642a9528054… · /containers/cna/references/0
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.