CVE-2026-45337Better-auth Better Auth
High 7.6
Follow: this CVE · Better-auth · Better-auth Better Auth We alert you by email or Slack (account required).
- Priority
- 46
- CVSS 3.1
- 7.6
- EPSS
- —
- Auth required
- Yes
- Published
- Jul 15, 2026
- Updated
- Jul 21, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:L
What happens
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.
What to do
- Apply the vendor's security update for Better Auth.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | better-auth |
≥ 1.6.0 < 1.6.11 |
1.6.11 |
npm install better-auth@1.6.11 |
Per OSV / GitHub Advisories (GHSA-cq3f-vc6p-68fh). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| better-auth | better_auth | ≥ 1.6.0 < 1.6.11 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Issue Tracking Patch
- github.com Release Notes
- github.com Mitigation Vendor Advisory