Skip to content
Threat Feed
medium advisory

Better Auth electron: Authentication and two-factor bypass (CVE-2026-134316)

A vulnerability in @better-auth/electron allows authenticated users to obtain sensitive secrets via improper cookie handling and bypass two-factor authentication by exchanging compromised desktop authorization codes.

CVE search metadata

CVE search record: CVE-2026-134316. Severity: high. CVSS: 8.1. KEV: no. Product: @better-auth/electron. Brief: Better Auth electron: Authentication and two-factor bypass (CVE-2026-134316). Brief link: https://feed.craftedsignal.io/briefs/2026-11-better-auth-electron-auth-bypass-cve-2026-134316/

Triage facts

Revision 1
Applicability
@better-auth/electron
Evidence
Unknown
Severity
Medium
Action
Elevated
Sources
1 public source
Freshness
Revision 1Nov 21, 18:45 UTC
Vulnerabilities
1 CVE
Source quality
A1Likely

Overview

@better-auth/electron versions 1.5.0-beta.12 through 1.7.15 and 1.8.0-beta.0 through 1.8.0-beta.4 contain a critical security flaw involving improper validation of transfer cookies and the insecure disclosure of endpoint context. Successful exploitation allows an authenticated attacker to retrieve sensitive information, including authentication secrets and social provider client secrets, which may be leveraged to forge user sessions. Additionally, attackers in possession of a valid user password can bypass two-factor authentication by exchanging desktop authorization codes issued before the secondary authentication factor is satisfied.

Impact

Successful exploitation results in full session forgery and the circumvention of multi-factor authentication, granting unauthorized access to affected application accounts.

Recommendation

  • Upgrade @better-auth/electron to version 1.7.16 or later for the 1.7.x branch.
  • Upgrade @better-auth/electron to version 1.8.0-beta.5 or later for the 1.8.x branch.
  • Audit application logs for anomalous sign-in responses or unexpected exchanges of desktop authorization codes.

Threat Hunt

Monitor application access logs for unusual patterns of successful sign-in responses containing atypical context fields, particularly after suspicious desktop authorization code exchanges.

T1552.001 high medium confidence hunt now

Data: application_audit_logs, webserver_response_logs

Mitigations

Upgrade @better-auth/electron to version 1.7.16 or 1.8.0-beta.5

immediate