Better Auth OAuth unverified email account takeover (CVE-2026-134312)

Better Auth versions before 1.7.16 and 1.8.0-beta.5 contain an OAuth sign-in flaw that can treat unverified provider emails as verified, allowing an attacker with an unverified email at an affected provider to sign in and take over a victim's local account.

Overview

CVE-2026-134312 affects Better Auth, a Node.js/JS authentication library. The vulnerability exists in OAuth sign-in flows and can lead to account takeover.

Affected versions: - 0.4.9 through before 1.7.16 - 1.8.0-beta.0 through before 1.8.0-beta.5

Issue details

The OAuth sign-in authentication flaw: - Treats unverified provider emails as verified. - Accepts the string "false" as a valid email_verified claim. - Does not properly check generic OAuth profile/ID-token subject mismatches. - Ignores Zoom provider options.

An attacker who controls an unverified email address at an affected provider can potentially: 1. Sign in using that provider. 2. Link the provider identity to a victim's local Better Auth account. 3. Obtain the victim's session.

Impact

This is a high-severity authentication bypass / account takeover issue. Applications using affected Better Auth versions with OAuth providers are at risk.

References

- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-134312 - GitHub Security Advisory: https://github.com/better-auth/better-auth/security/advisories/GHSA-9hm7-xhfp-cx58 - VulnCheck: https://www.vulncheck.com/advisories/better-auth-0.4.9-before-1.7.16-oauth-unverified-email-account-takeover

What to do

1. Verify your Better Auth version. If you are on a version before 1.7.16, or on 1.8.0-beta.0 through 1.8.0-beta.4, upgrade immediately. 2. Upgrade to a fixed version: 1.7.16 or 1.8.0-beta.5 (or later). Confirm the exact fixed version in the vendor advisory before deploying to production. 3. After upgrading, review OAuth sign-in logs for suspicious account linking or unexpected provider sign-ins. 4. Audit existing user accounts for signs of unauthorized linking, especially accounts using OAuth providers where email verification may have been bypassed. 5. If you cannot upgrade immediately, consider temporarily disabling affected OAuth providers or enforcing additional verification checks until the patch is applied. 6. Monitor vendor advisories and NVD for any additional guidance or updates.

Sources