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

Published Updated

Authenticated users can obtain auth secrets from sign-in responses and exchange desktop codes to bypass two-factor authentication in apps using @better-auth/electron.

CVSS score

High

8.6/10

CVSS 4.0 · Scored by VulnCheck Breakdown
Exploited in the wild
Not known
Not in CISA's KEV catalogue
Exploit code
None known
No public exploit found
Fix
Available
1.8.0-beta.5, 1.7.16
Attack path
Over the internet
Any signed-in user, no user action

What is CVE-2026-134316?

CVE-2026-134316 is a high-severity information disclosure vulnerability in better-auth electron, published on 21 Nov 2026. Any signed-in user can exploit it over the network, with no action from the victim.

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

Weakness: CWE-201

How severe is CVE-2026-134316?

CVE-2026-134316 scores 8.6 out of 10 under CVSS 4.0, which is high severity. It was scored by VulnCheck.

Attack vector
Network
Attack complexity
Low
Attack requirements
None
Privileges required
Low
User interaction
None
Confidentiality
High
Integrity
High
Availability
None

CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

Which versions are affected by CVE-2026-134316?

2 open source packages ship an affected version, including %40better-auth/electron.

An affected version is exposed as installed. No special setting or call is needed.

PackageAffectedFixed in
%40better-auth/electron npm
pkg:npm/%40better-auth/electron
From 1.5.0-beta.121.7.16
%40better-auth/electron npm
pkg:npm/%40better-auth/electron
From 1.8.0-beta.01.8.0-beta.5

How do I fix CVE-2026-134316?

Upgrade %40better-auth/electron to a fixed version for your release line: 1.8.0-beta.5 or 1.7.16.

Upgrade, and rotate any secrets that may have been exposed. More about Information disclosure.

Is CVE-2026-134316 being exploited?

There is no known exploitation of CVE-2026-134316 in the wild and no public exploit code.

Sources

Also known as GHSA-7rc3-jqv7-7gw2, GHSA-9p5w-h4pr-fcrc.

Is CVE-2026-134316 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free