@better-auth/electron before 1.7.16 Auth Secret Disclosure and Two-Factor Bypass
- State
- Published
- Severity
- 8.6 High
- Published
- Nov 21, 2026
- Updated
- Nov 23, 2026
- Reserved
- Nov 20, 2026
Description
@better-auth/electron 1.5.0-beta.12 before 1.7.16 and 1.8.0-beta.0 before 1.8.0-beta.5 accepts any validly signed value as its transfer cookie and returns the full endpoint context, including the auth secret and social provider client secrets, in sign-in responses. Authenticated users can obtain these secrets to forge sessions as other users. Attackers knowing a password can exchange desktop authorization codes issued before two-factor verification to bypass the second factor.
| Product | Versions |
|---|---|
| electron better-auth | 1.5.0-beta.12 to before 1.7.16 Affected1.7.16 Not Affected |
| electron better-auth | 1.8.0-beta.0 to before 1.8.0-beta.5 Affected1.8.0-beta.5 Not Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 8.6 High | VulnCheck | |
| 3.1 | 8.1 High | VulnCheck |
Weaknesses
- CWE-201 Insertion of Sensitive Information Into Sent Data
References
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.