CVE-2026-134316
Received Received - Intake

Authentication Bypass in Better Auth Electron

Vulnerability report for CVE-2026-134316, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-11-21

Last updated on: 2026-11-21

Assigner: VulnCheck

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-11-21
Last Modified
2026-11-21
Generated
2026-11-21
AI Q&A
2026-11-21
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 3 associated CPEs
Vendor Product Version / Range
better-auth electron to 1.7.16 (exc)
better-auth electron From 1.8.0-beta.0 (inc) to 1.8.0-beta.5 (exc)
better-auth electron to 1.8.0-beta.5 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-201 The code transmits data to another actor, but a portion of the data includes sensitive information that should not be accessible to that actor.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability in @better-auth/electron versions before 1.7.16 and 1.8.0-beta.5 allows attackers to obtain sensitive secrets like auth and social provider client secrets by exploiting improper handling of transfer cookies. It also enables bypassing two-factor authentication by exchanging desktop authorization codes issued before second factor verification.

Detection Guidance

To detect this vulnerability, check if your system is running vulnerable versions of @better-auth/electron (1.5.0-beta.12 to below 1.7.16 or 1.8.0-beta.0 to below 1.8.0-beta.5). Inspect package.json files and dependency trees for these versions. Monitor network traffic for unexpected exposure of auth secrets or social provider client secrets during sign-in responses.

Impact Analysis

Attackers can forge sessions as other users, impersonate accounts, or bypass two-factor authentication if they know a user's password. This could lead to unauthorized access to sensitive data or systems protected by the affected library.

Compliance Impact

This vulnerability could lead to unauthorized access to personal data, violating GDPR's data protection principles and HIPAA's security requirements for safeguarding protected health information. Organizations using affected versions may face compliance breaches.

Mitigation Strategies

Immediately upgrade @better-auth/electron to version 1.7.16 or higher for stable releases, or 1.8.0-beta.5 or higher for beta releases. If the electron() plugin was in use, treat all auth secrets and social provider client secrets as compromised and rotate them. As a temporary measure, remove the electron() plugin until upgrading, though this disables desktop sign-in functionality.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-134316. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...