npm
CVE-2026-134316
@better-auth/electron before 1.7.16 Auth Secret Disclosure and Two-Factor Bypass
- Severity
- High 8.6
- Published
- 21 Nov 2026
- Last changed
- 21 Nov 2026
- Added to UpHeron
- 23 Nov 2026
- Fixed in
- 1.7.16, 1.8.0-beta.5
- Exploit chance
- 0.3% in the next 30 daysHigher than 23% of CVEs. EPSS by FIRST, 24 Nov 2026
- Attack
- Over the network · Needs a user account · No user action needed
- Attacker can
- Read data · Change data
- CVSS vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N- Sources
- CVE Program
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.
Affected software
| Software | Affected versions |
|---|---|
@better-auth/electronnpm · osv:npm:@better-auth/electron |
|
About @better-auth/electron
- Weekly downloads (npm)
- 244,321npm, 24 Nov 2026
This is the only vulnerability in @better-auth/electron in our list.
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-134316