Description
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.
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-341 |