CVE-2026-142163: Composer/drupal/email_otp_login vulnerability
This module provides login via a one-time code sent by e-mail, as an alternative to password-based authentication.
The module does not sufficiently restrict the number or rate of attempts to validate a one-time login code. An anonymous user who knows (or can guess) a victim's e-mail address can repeatedly submit login code guesses until one succeeds, allowing them to log in as that user, including an administrator.
This vulnerability is mitigated by the fact that an attacker needs to know the victim's registered e-mail address.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
composer/drupal/email_otp_loginto a version that resolves this vulnerability.Fixed in 1.0.8
Event History
Frequently Asked Questions
Who can exploit this issue?
An anonymous attacker can attempt exploitation without an existing account. They need to know or correctly guess the registered e-mail address of the user they want to impersonate.
What access could an attacker gain if exploitation succeeds?
A successful login-code guess lets the attacker log in as the targeted user. This can include administrator access when the targeted e-mail address belongs to an administrator.
What makes repeated guessing possible?
The one-time login code validation process does not sufficiently limit either the number of attempts or the rate at which attempts can be submitted. This allows repeated code guesses against a known or guessed e-mail address.