Improper Authentication Affecting better-auth package, versions >=1.4.0 <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.43% (40th 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-23050771
  • published30 Nov 2026
  • disclosed21 Nov 2026
  • creditFedor Klemeński

Introduced: 21 Nov 2026

NewCVE-2026-134315  (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 email-change links that record the old and new addresses but not the requesting user's identity. When an attacker requests an email change away from their old address, and a victim later registers that released address while the link is still valid, the attacker opens the link and Better Auth resolves the account by looking up the current owner of the old address - creating a session for the victim's account and changing its email to one the attacker controls, resulting in a full account takeover.

Note: This is only exploitable when user.changeEmail.enabled is turned on, emailVerification.sendVerificationEmail is configured, and a new user can register an address after its previous owner has moved to another one.

References

CVSS Base Scores

version 4.0
version 3.1