Drupal security updates, in plain English · Module

E-mail OTP Login

10 sites report using it · on drupal.org · 1 security update explained here

This module lets people log in to the website using a temporary code sent to their email address instead of a password.

Below is every security update for E-mail OTP Login that this site has covered, newest first. Each one says who could exploit it, whether it applies to your site, how urgent it is, and what to tell your developer. If your site uses this module and you are not sure which version, that is the first question to ask whoever looks after it.

E-mail OTP Login

Critical · 10 sites report using it · SA-CONTRIB-2026-340 · on drupal.org · Week of 2 December 2026

The module does not limit how many times someone can guess a login code. A person who knows an email address could repeatedly guess the code until they succeed and log in as that user to view or alter any data.

  • Who could do thisAnyone visiting the site. No login needed.
  • Does it apply to youA site is affected if an attacker knows the registered email address of the target person.
  • Has it been used in attacksA working example has been published, so assume someone will try.
  • How urgentDrupal rates this critical. Cyber Essentials expects a fix within 14 days. Do it this week.

Tell your developerUpdate E-mail OTP Login to 1.0.8.

For developers: what the fix changed

The fix introduces `OtpStore` and `OtpFlood` services to limit the number of attempts and rate of attempts for OTP validation, and to expire and hash login codes. It updates `OtpEmailForm` and `OtpValidation` to use these services, and adds hooks in `EmailOtpLoginHooks` to invalidate codes on user update or deletion.

Also in this release Added tests for the new OTP protection features and updated the README.md with security information.

1.0.7 to 1.0.8 2 commits, 15 files including 3 tests.

  • README.md +17 −0
  • email_otp_login.install +28 −0 fix
  • email_otp_login.module +17 −0 fix
  • email_otp_login.services.yml +8 −0 fix
  • src/Controller/OtpLoginController.php +5 −5 fix
  • src/Form/OtpEmailForm.php +40 −31 fix
  • src/Form/OtpValidation.php +57 −34 fix
  • src/Hook/EmailOtpLoginHooks.php +33 −1 fix
  • src/OtpAccount.php +50 −0 fix
  • src/OtpFlood.php +180 −0 fix
  • src/OtpStore.php +166 −0 fix
  • src/OtpVerification.php +31 −0 fix

Full diff, 1.0.7 to 1.0.8

The comparison is against the release immediately before the fix. If your site is on an older release, more will have changed.

Not sure what your site is running?

Send me your Drupal site's address.

I'll tell you what I can see from outside, what the Drupal 10 end of life on 9 December means for it, and what it would cost to have me keep it patched. There's no charge for that and no obligation. peter@peterbrady.co.uk


Get in touch

Tell me who you are, what your organisation does, and what you need. That might be a Drupal site that needs looking after, an upgrade to get done before December, or an agency that needs Drupal cover.

If I can help, I'll say so and suggest a call. If I can't, I'll tell you straight away rather than waste your time.

peter@peterbrady.co.uk

For context: I work mainly with UK membership bodies, charities and research organisations, and with the agencies that look after their websites. Not recruiters.

Or start smaller and connect with me on LinkedIn. That's where I post what I find digging around in charity and grants data, and where the free tools turn up first.