Drupal security updates, in plain English · Module

Mail Safety

4,163 sites report using it · on drupal.org · 1 security update explained here

This module lets administrators test and check outgoing emails without sending them to real people.

Below is every security update for Mail Safety 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.

Mail Safety

Critical · 4,163 sites report using it · 3 security fixes · Week of 2 December 2026

3 security fixes in one update. Mail Safety fixed 3 separate security bugs at once: 2 cross site scripting, 1 php object injection. One update covers all of them. The most serious, SA-CONTRIB-2026-342, is explained here and the full list is at the end of the card.

The module does not properly clean up the content of emails in certain situations. A person could use this to run harmful scripts which could let them view or change some information on the site.

  • Who could do thisAnyone visiting the site. No login needed.
  • Does it apply to youA site is affected if the option to send mail to the dashboard is turned on.
  • Has it been used in attacksNo sign of it.
  • How urgentDrupal rates this critical. Cyber Essentials expects a fix within 14 days. Do it this week.

Tell your developerUpdate Mail Safety to 2.1.1 or 2.2.1, whichever branch you are on.

For developers: what the fix changed

This release carries 3 security fixes. The summary below is for SA-CONTRIB-2026-342, the most serious of them.

The fix sanitises the email body using Xss::filterAdmin in MailSafetyController and removes the raw filter from the details output in the mail safety details template. It also restricts allowed classes during unserialisation in MailSafetyController and DashboardForm.

2.1.0 to 2.1.1 1 commit, 3 files.

  • src/Controller/MailSafetyController.php +5 −2 fix
  • src/Form/DashboardForm.php +1 −1 fix
  • templates/mail-safety-details.html.twig +1 −1 fix

Full diff, 2.1.0 to 2.1.1 · Full diff, 2.2.0 to 2.2.1

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

All 3 security bugs this update fixes, worst first. Each link is the drupal.org notice for that one.

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.