SA-CONTRIB-2026-342: 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, configuration option Send mail to dashboard must be enabled.
Credit
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.2.1Fixed in 2.1.1 - Configuration
Disable Send mail to dashboard; exploitation requires this option to be enabled.
The email testing/debugging module Send mail to dashboard = disabled
Event History
Frequently Asked Questions
What configuration must be enabled for this issue to be exploitable?
The Send mail to dashboard configuration option must be enabled. The vulnerability is mitigated when that option is not enabled.
What can be done if patching is not immediately possible?
Disable the Send mail to dashboard option to mitigate exposure until a patch or other remediation is available.
How can I determine whether my installation is exposed?
Check whether the Mail Safety module is installed and whether Send mail to dashboard is enabled. The provided information identifies that setting as required for exploitation.