Description
better-auth from 1.3.8-beta.3 before 1.7.0-rc.3 contains a UI misrepresentation vulnerability in the deviceAuthorization plugin because GET /device omits the requesting client_id and scope. Attackers can start a device request via /device/code, trick signed-in users into approving the code, then redeem it at /device/token for a live session token.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| better-auth | better-auth | 1.3.8-beta.3 – < 1.7.0-rc.3 | 1.7.0-rc.3 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | better-auth | >= 1.3.8-beta.3, < 1.7.0-rc.3 | 1.7.0-rc.3 | GHSA-q84f-53jg-9ppm |
References
- GitHub Security Advisory (GHSA-q84f-53jg-9ppm) vendor-advisory
- VulnCheck Advisory: better-auth 1.3.8-beta.3 before 1.7.0-rc.3 Device Authorization Phishing via /device third-party-advisory