Read the docs

Secret disclosure and two-factor bypass in @better-auth/electron

Priority MEDIUM 40CWE-201Published · Updated

Key facts

Attack vector
Network
Privileges required
Low
User interaction
None
Attack complexity
Low
Attack requirements
None
Impact type
Information disclosure
Confidentiality · integrity · availability
High · High · None
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-201.

Summary

@better-auth/electron 1.5.0-beta.12 before 1.7.16 and 1.8.0-beta.0 before 1.8.0-beta.5 is affected. The transfer cookie accepts any validly signed value, and sign-in responses include sensitive data such as the auth secret and social provider client secrets (CWE-201). Authenticated users can obtain these secrets to forge sessions as other users, and attackers who know a password can exchange desktop authorization codes issued before two-factor verification to bypass the second factor.

Written with Claude Haiku 5.5 from the sources below · 2026-11-21

Description from the CNA

@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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00432 29th percentileScored 2026-11-30
Fix Fixed electron (better-auth): 1.7.16, 1.8.0-beta.5

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
better-authelectron1.5.0-beta.12 to before 1.7.161.7.16Patch availableCNA
better-authelectron1.8.0-beta.0 to before 1.8.0-beta.51.8.0-beta.5Patch availableCNA
  • electron Vendorbetter-auth Affected 1.5.0-beta.12 to before 1.7.16 Fixed in 1.7.16 Patch available CNA
  • electron Vendorbetter-auth Affected 1.8.0-beta.0 to before 1.8.0-beta.5 Fixed in 1.8.0-beta.5 Patch available CNA

Remediation

The fixed versions are 1.7.16 and 1.8.0-beta.5. Upgrade to 1.7.16 for builds from 1.5.0-beta.12 before 1.7.16, and to 1.8.0-beta.5 for builds from 1.8.0-beta.0 before 1.8.0-beta.5.

Written with Claude Haiku 5.5 from the sources below · 2026-11-21

  • Fix · CNA electron (better-auth) Fixed in 1.7.16
  • Fix · CNA electron (better-auth) Fixed in 1.8.0-beta.5

Timeline

  1. 2026-11-21 Threatist record created from CVE-2026-134316
  2. 2026-11-21 Alias added: GHSA-7rc3-jqv7-7gw2
  3. 2026-11-23 CISA SSVC decision points changed

References

  • TI-2025-38277 Better Auth: Unauthenticated API key creation through api-key plugin CVSS 4.0CRITICAL 9.3
  • TI-2026-47627 better-auth SCIM 1.5.0 before 1.7.0-beta.4 Authorization Bypass CVSS 4.0HIGH 8.7
  • TI-2025-20000 Beter Auth has an Open Redirect via Scheme-Less Callback Parameter CVSS 4.0MEDIUM 6.9
  • TI-2026-13066 better-auth better-icons scan_project_icons/sync_icon path traversal CVSS 4.0MEDIUM 4.8
  • TI-2026-79320 OAuth state accepted as Magic Link token in Better Auth CVSS 3.1CRITICAL 9.1
  • TI-2026-74552 Authentication bypass in Better Auth Magic Link verification CVSS 4.0CRITICAL 9.3
See all 50 →

Sources