{"id":"DRUPAL-CONTRIB-2026-342","details":"This module enables you to test and debug outgoing emails and prevent mails from being send.\n\nIn certain cases the module does not sufficiently sanitize emails which can lead to a cross-site scripting (XSS) vulnerability.\n\nThis vulnerability is mitigated by the fact that in order for it to be exploitable, configuration option *Send mail to dashboard* must be enabled.","aliases":["CVE-2026-142397"],"modified":"2026-12-02T19:15:02.599760855Z","published":"2026-12-02T17:15:41Z","references":[{"type":"WEB","url":"https://www.drupal.org/sa-contrib-2026-342"}],"affected":[{"package":{"name":"drupal/mail_safety","ecosystem":"Packagist:https://packages.drupal.org/8","purl":"pkg:composer/drupal/mail_safety?repository_url=https:%2F%2Fpackages.drupal.org%2F8"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.1"}],"database_specific":{"constraint":"\u003c2.1.1"}},{"type":"ECOSYSTEM","events":[{"introduced":"2.2.0"},{"fixed":"2.2.1"}],"database_specific":{"constraint":"\u003e=2.2.0 \u003c2.2.1"}}],"database_specific":{"affected_versions":"\u003c2.1.1 || \u003e=2.2.0 \u003c2.2.1","source":"https://github.com/DrupalSecurityTeam/drupal-advisory-database/blob/main/advisories/mail_safety/DRUPAL-CONTRIB-2026-342.json"}}],"schema_version":"1.9.2","credits":[{"name":"Brian Willows (hsjbrianwillows)","contact":["https://www.drupal.org/u/hsjbrianwillows"]}]}