Better-auth/electron: Auth secret disclosure
HighAI-generated2026-11-22
- CVE
- CVE-2026-134316
- Severity
- High (CVSS 8.1)
- Attack conditions
- Remotely, over the network · A regular user account is needed · No user action needed
- Exploitation probability (EPSS)
- 0.4% (within 30 days; FIRST EPSS, 25 November 2026)
Summary
The Better-auth/electron library versions before 1.7.16 and certain beta releases before 1.8.0-beta.5 may expose authentication secrets. An attacker can retrieve these secrets and forge user sessions.
Details
According to the NVD record, the Better-auth/electron package versions 1.5.0-beta.12 prior to 1.7.16 and 1.8.0-beta.0 prior to 1.8.0-beta.5 accept any correctly signed transfer cookie and then return the full endpoint context, which includes the authentication secret and social provider client secrets, in sign-in responses.
An attacker who obtains a valid password can use the disclosed secrets to create forged sessions for other users. The flaw also allows exchange of desktop authorization codes issued before two-factor verification, effectively bypassing the second factor.
What to do
The source record does not name a specific patch, fixed version or workaround. General measures:
- Follow the vendor's security advisories.
- Apply the update when it is released.
- Limit access to the product as much as possible, especially from the internet.
Sources
Timeline
- 21 November 2026 NVD record published
- 22 November 2026 This article was written