CVE-2026-142396: XSS

Published Dec 2, 2026
·
Updated

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

2 affected componentsFixes available
composer/drupal/mail_safety<2.1.1
2.1.1
composer/drupal/mail_safety>=2.2.0<2.2.1
2.2.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade composer/drupal/mail_safety to a version that resolves this vulnerability.

    Fixed in 2.1.1
  2. Upgrade

    Upgrade composer/drupal/mail_safety to a version that resolves this vulnerability.

    Fixed in 2.2.1
  3. Configuration

    Disable the Send mail to dashboard configuration option to prevent the vulnerability from being exploitable.

    Send mail to dashboard = disabled

Event History

Dec 2, 2026
Advisory Published
via OSV·05:15 PM
Data Sourced
via OSV·05:15 PM
DescriptionAffected Software

Frequently Asked Questions

1

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.

2

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.

3

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203