CVE-2026-134314
Deferred Deferred - Pending Action

Race Condition and OTP Brute-Force in Better-Auth

Vulnerability report for CVE-2026-134314, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-11-21

Last updated on: 2026-11-21

Assigner: VulnCheck

Description

better-auth 1.3.7 before 1.7.16 and 1.8.0-beta.0 before 1.8.0-beta.5 contains a race condition in the emailOTP plugin attempt counter, collision-prone email change code keys, and accent-insensitive email lookups. Unauthenticated attackers can send concurrent guesses exceeding allowedAttempts to brute-force OTPs and sign in or reset passwords, signed-in users can verify addresses they do not own, and attackers receiving mail at accent-variant addresses can reset victims' passwords.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-11-21
Last Modified
2026-11-21
Generated
2026-11-21
AI Q&A
2026-11-21
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 5 associated CPEs
Vendor Product Version / Range
better-auth better-auth to 1.7.16 (exc)
better-auth better-auth to 1.7.15 (inc)
better-auth better-auth to 1.8.0-beta.5 (exc)
better-auth better-auth to 1.8.0-beta.4 (inc)
better-auth better-auth to 1.7.16|end_excluding=1.8.0-beta.5 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-307 The product does not implement sufficient measures to prevent multiple failed authentication attempts within a short time frame.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability in better-auth versions 1.3.7 to 1.7.15 and 1.8.0-beta.0 to 1.8.0-beta.4 involves three issues in the email OTP plugin. First, a race condition allows bypassing OTP attempt limits by sending concurrent guesses counted as one attempt. Second, email change verification codes are loosely bound, enabling users to verify addresses they do not own. Third, accent-insensitive email lookups allow attackers to reset passwords using accent-variant email addresses.

Detection Guidance

Check if your better-auth version is between 1.3.7 and 1.7.15 or 1.8.0-beta.0 and 1.8.0-beta.4. Review logs for unusual OTP brute-force attempts or concurrent guesses. Inspect email change verifications for unauthorized address confirmations.

Impact Analysis

Attackers can brute-force OTPs to gain unauthorized account access or reset passwords. Users may verify email addresses they don't own, leading to potential account takeover. Attackers can also reset victims' passwords using accent-variant email addresses, compromising accounts.

Compliance Impact

This vulnerability could lead to unauthorized access to user accounts, which may violate data protection requirements under GDPR (e.g., unauthorized processing of personal data) and HIPAA (e.g., unauthorized access to protected health information). The lack of proper authentication attempt restrictions and potential account takeover risks could result in non-compliance with security and privacy controls mandated by these regulations.

Mitigation Strategies

Upgrade better-auth to version 1.7.16 or 1.8.0-beta.5. Disable email change in the plugin if possible. Reduce allowed OTP attempts and shorten OTP lifetime as a temporary measure.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-134314. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...