CVE-2026-142395: Mail Safety - Critical - PHP object injection - SA-CONTRIB-2026-341

Published Dec 2, 2026
·
Updated

Deserialization of Untrusted Data vulnerability in Drupal Mail Safety allows Object Injection. This issue affects Mail Safety versions: from 0.0.0 to 2.1.1, from 2.2.0 to 2.2.1.

Other sources

This module enables you to test and debug outgoing emails, as well as prevent emails from being sent.

In certain cases, the module doesn't securely pass data to PHP's unserialize() function, which could result in remote code execution (RCE) via PHP object injection.

This vulnerability is mitigated by the fact that in order for it to be exploitable, a separate vulnerability must be present to allow an attacker to store malicious data.

— OSV

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

Event History

Dec 2, 2026
Advisory Published
via OSV·05:15 PM
Data Sourced
via OSV·05:15 PM
DescriptionAffected Software
Dec 4, 2026
CVE Published
via MITRE·10:50 PM
Data Sourced
via MITRE·10:50 PM
DescriptionWeakness
Data Sourced
via OSV·10:50 PM
Weakness
Data Sourced
via NVD·11:16 PM
DescriptionWeakness

Frequently Asked Questions

1

What additional condition is required for exploitation?

An attacker must be able to store malicious data through a separate vulnerability. The unsafe deserialization issue alone is not sufficient to achieve remote code execution.

2

Who is most exposed to this issue?

Installations using composer/drupal/mail_safety are affected by the vulnerable behavior described. Practical exposure depends on whether another flaw allows an attacker to persist attacker-controlled serialized data.

3

How can I determine whether exploitation is plausible in my environment?

Review the application and related components for vulnerabilities or functionality that permit an attacker to store arbitrary or attacker-controlled data. If no such storage path is available to an attacker, the stated exploitation prerequisite is not met.

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