@better-auth/electron before 1.7.16 Auth Secret Disclosure and Two-Factor Bypass

State
Published
Severity
8.6 High
Published
Nov 21, 2026
Updated
Nov 23, 2026
Reserved
Nov 20, 2026

Read the record on cve.org

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.

ProductVersions
electron better-auth1.5.0-beta.12 to before 1.7.16 Affected1.7.16 Not Affected
electron better-auth1.8.0-beta.0 to before 1.8.0-beta.5 Affected1.8.0-beta.5 Not Affected

Weaknesses

  • CWE-201 Insertion of Sensitive Information Into Sent Data

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.