Improper Authentication Affecting better-auth package, versions >=0.4.9 <1.7.16>=1.8.0-beta.0 <1.8.0-beta.5


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.33% (29th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Improper Authentication vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-BETTERAUTH-23050770
  • published30 Nov 2026
  • disclosed21 Nov 2026
  • creditPasqual Troncone, 5255fgh

Introduced: 21 Nov 2026

NewCVE-2026-134312  (opens in a new tab)
CWE-287  (opens in a new tab)

How to fix?

Upgrade better-auth to version 1.7.16, 1.8.0-beta.5 or higher.

Overview

better-auth is a The most comprehensive authentication library for TypeScript.

Affected versions of this package are vulnerable to Improper Authentication via the OAuth sign-in flow, which treats unverified provider email addresses as verified. The flaw manifests in three ways: the string "false" for an email_verified claim is accepted as truthy; with genericOAuth(), the user info profile subject is not validated against the ID token subject, allowing a mismatched provider identity to be attached; and the Zoom provider ignores configured options such as disableSignUp and requireEmailVerification. An attacker who holds a victim's email address in an unverified state at an affected OAuth provider can sign in, be linked to the victim's existing local account, and obtain a valid session for that account.

References

CVSS Base Scores

version 4.0
version 3.1