Insufficient Verification of Data Authenticity Affecting better-auth package, versions >=1.1.3 <1.6.22>=1.7.0-beta.0 <1.7.0-beta.10


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.23% (15th 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 Insufficient Verification of Data Authenticity vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-BETTERAUTH-18319507
  • published26 Jul 2026
  • disclosed24 Jul 2026
  • creditVercel Security Team

Introduced: 24 Jul 2026

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

How to fix?

Upgrade better-auth to version 1.6.22, 1.7.0-beta.10 or higher.

Overview

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

Affected versions of this package are vulnerable to Insufficient Verification of Data Authenticity in the authentication process. An attacker can gain persistent unauthorized access to user accounts by registering an account with a victim's email address and a chosen password before the victim signs in using passwordless methods. When the victim later signs in via magic-link or email-OTP, the attacker's password remains valid, allowing continued access and potential takeover of the account. This is only exploitable if both the magic-link or email-OTP plugin and open email/password registration are enabled, and an account can be created for an email address before the legitimate owner signs in with the passwordless flow.

Workaround

This vulnerability can be mitigated by requiring email verification before accepting any password on an account and by promptly removing unverified accounts.

CVSS Base Scores

version 4.0
version 3.1