better-auth is vulnerable to User Enumeration
45
CVE Score
Medium
User Enumeration
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.
Upgrade the better-auth library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and you enable the email OTP plugin.
1.3.7 - 1.6.25
Fixed in 1.6.26better-auth is vulnerable to User Enumeration in versions 1.3.7 - 1.6.25.
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.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.