CVE-2026-134316: better-auth/electron auth secret disclosure and 2FA bypass
Affected @better-auth/electron versions accept a validly signed transfer cookie and return full endpoint context, including auth secret and social provider client secrets, in sign-in responses. Authenticated users can obtain these secrets to forge sessions as other users; an attacker knowing a password can also exchange desktop authorization codes issued before 2FA to bypass the second factor. Fixed in 1.7.16 and 1.8.0-beta.5.
Summary
CVE-2026-134316 affects @better-auth/electron 1.5.0-beta.12 up to, but not including, 1.7.16, and 1.8.0-beta.0 up to, but not including, 1.8.0-beta.5. A validly signed transfer cookie is accepted, and sign-in responses include full endpoint context, including the auth secret and social provider client secrets. This lets authenticated users obtain those secrets and forge sessions as other users. Attackers who know a password can exchange desktop authorization codes issued before two-factor verification, bypassing 2FA.
References: NVD, GitHub Advisory GHSA-9p5w-h4pr-fcrc
What to do
1. Identify any electron/Node.js projects using @better-auth/electron and check the installed version. 2. Upgrade to the fixed release: 1.7.16 or later for the 1.x line, or 1.8.0-beta.5 or later for the 1.8 beta line. 3. Review the NVD entry and vendor advisory to confirm exposure and any required configuration changes. 4. Rotate the auth secret and social provider client secrets if a sign-in response containing endpoint context may have been observed. 5. Consider invalidating existing sessions or forcing re-authentication/2FA if exposure is suspected.