# DRUPAL-CONTRIB-2026-341: This module enables you to test and debug outgoing emails, as well as prevent emails from being sent

- Database: Drupal
- Published: 2026-12-02
- Modified: 2026-12-02

## Affected versions

- drupal/mail\_safety (Packagist): fixed in 2.1.1; from 2.2.0, fixed in 2.2.1

## 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.

## References

- https://www.drupal.org/sa-contrib-2026-341

Page: https://cve.now/DRUPAL-CONTRIB-2026-341

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
