Better Auth: Device authorization approve and deny accept any authenticated session while the user code is pending (better-auth better-auth)
En bref
- Source
- NVD
- EPSS
- EPSS 0.21 % · centile 12 ()
- État
- PUBLISHED
- Publiée
- Mise à jour
- Attribuée par
- GitHub_M
- Statut NVD
- Analyzed
Rechercher sur…
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.
Faiblesses (CWE)
Références
Scores
| Version | Score | Vecteur | Évalué par |
|---|---|---|---|
| CVSS 3.1 | HIGH 7.6 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:L | GitHub_M |
| CVSS 3.1 | HIGH 7.6 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:L | NVD · security-advisories@github.com (Secondary) |
Avis
- GHSA-cq3f-vc6p-68fh — Better Auth: Device authorization approve and deny accept any authenticated session while the user code is pending
Références européennes
- ENISA EUVD · EUVD-2026-44743
- GCVE · GCVE-0-2026-45337
Configurations affectées (CPE NVD)
cpe:2.3:a:better-auth:better_auth:*:*:*:*:*:node.js:*:*≥ 1.6.0 < 1.6.11
Produits affectés
| Produit | Versions |
|---|---|
| better-auth · better-auth | affected >= 1.6.0, < 1.6.11 |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |