Description
This module enables you to test and debug outgoing emails and prevent mails from being send.
In certain cases the module does not sufficiently sanitize emails, which can lead to a cross-site scripting (XSS) vulnerability.
This vulnerability is mitigated by the fact that in order for it to be exploitable, the configuration option *Send mail to dashboard* must be enabled.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Packagist | drupal/mail_safety | < 2.1.1 · >= 2.2.0, < 2.2.1 | 2.1.1, 2.2.1 | DRUPAL-CONTRIB-2026-344 |