SA-CONTRIB-2026-340: Critical severity 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.
Credit
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 user can attempt exploitation if they know or can guess a victim's registered e-mail address. The issue can affect any account using this login method, including administrator accounts.
What does an attacker need to do to gain access?
The attacker must repeatedly submit guesses for the victim's one-time login code. Because attempts are not sufficiently limited or rate-restricted, a successful guess allows login as the victim.
Is the issue mitigated by keeping e-mail addresses private?
Knowing the victim's registered e-mail address is required, so preventing disclosure of registered addresses reduces exposure. It does not eliminate the issue where addresses are predictable, publicly known, or otherwise obtainable.