Better Auth: Device authorization approve and deny accept any authenticated session while the user code is pending
Published Jul 15, 2026
7.6
HIGHCVSS 3.1
EPSS 0.21%
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.
Affected products
-
- Version >= 1.6.0, < 1.6.11StatusaffectedConstraints-
- Version
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Better-Auth | Better-Auth | n/a |
|
- ≥ 1.6.0 · < 1.6.11
No data.
No Red Hat product state for this CVE.
better-auth
npm
Introduced 1.6.0 Fixed 1.6.11
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| npm | better-auth | 1.6.0 | 1.6.11 |
Remediation
No remediation recorded yet.
References (6)
- https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-44743 Advisory
- https://github.com/advisories/GHSA-cq3f-vc6p-68fh Advisory
- https://github.com/better-auth/better-auth/commit/99a254a79b59d5a3f5ca2123260118cddb5beed7 x_refsource_MISCPatch
- https://github.com/better-auth/better-auth/pull/9573 x_refsource_MISCIssue TrackingPatch
- https://github.com/better-auth/better-auth/releases/tag/v1.6.11 x_refsource_MISCRelease Notes
- https://github.com/better-auth/better-auth/security/advisories/GHSA-cq3f-vc6p-68fh x_refsource_CONFIRMMitigationVendor Advisory
| Link | Providers | Tags |
|---|---|---|
| https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-44743 | Advisory | |
| https://github.com/advisories/GHSA-cq3f-vc6p-68fh | Advisory | |
| https://github.com/better-auth/better-auth/commit/99a254a79b59d5a3f5ca2123260118cddb5beed7 | x_refsource_MISCPatch | |
| https://github.com/better-auth/better-auth/pull/9573 | x_refsource_MISCIssue TrackingPatch | |
| https://github.com/better-auth/better-auth/releases/tag/v1.6.11 | x_refsource_MISCRelease Notes | |
| https://github.com/better-auth/better-auth/security/advisories/GHSA-cq3f-vc6p-68fh | x_refsource_CONFIRMMitigationVendor Advisory |
Change history (0)
No recorded changes yet.