Intel

AIKIDO-2026-906996

better-auth is vulnerable to User Enumeration

Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Aug 10, 2026
August 10, 2026

45

CVE Score

Medium

User Enumeration

Are you affected? Scan for Free

TL;DR

The email OTP plugin exposes a check-verification-otp endpoint that looks up the account by email before validating the submitted one-time code. Because a missing account and a wrong code return different errors, an unauthenticated caller can submit an arbitrary code to learn whether an email is registered. This enables account and email enumeration against the authentication server. The fix validates the OTP first and only reveals account existence after possession of the code is proven.

How do I fix this?

Upgrade the better-auth library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you enable the email OTP plugin.

Versions

1.3.7 - 1.6.25

Fixed in 1.6.26

Background info

better-auth is vulnerable to User Enumeration in versions 1.3.7 - 1.6.25.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea