CVE-2026-142396: XSS
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 Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
composer/drupal/mail_safetyto a version that resolves this vulnerability.Fixed in 2.1.1 - Upgrade
Upgrade
composer/drupal/mail_safetyto a version that resolves this vulnerability.Fixed in 2.2.1 - Configuration
Disable the Send mail to dashboard configuration option to prevent the vulnerability from being exploitable.
Send mail to dashboard = disabled
Event History
Frequently Asked Questions
Which deployments are exposed to this issue?
Only deployments where the “Send mail to dashboard” configuration option is enabled are exposed. The provided information does not indicate that the issue is exploitable when that option is disabled.
What can be done if an update cannot be applied immediately?
Disable the “Send mail to dashboard” option. This removes the configuration condition identified as necessary for exploitation.
How can I determine whether my site is affected?
Review the Mail Safety module configuration and check whether “Send mail to dashboard” is enabled. If it is disabled, the stated exploitation condition is not present.