Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-93889 Overview
CVE-2026-93889 is a stored cross-site scripting (XSS) vulnerability in the Mail logging – WP Mail Catcher plugin for WordPress. The flaw affects all versions up to and including 2.1.12. It stems from insufficient input sanitization and output escaping of PHPMailer wp_mail_failed error messages logged by the plugin. Unauthenticated attackers can inject arbitrary JavaScript that executes when an administrator views the mail log. Exploitation requires a secondary plugin, such as Contact Form 7, that passes attacker-controlled input into mail fields echoed back inside PHPMailer failure messages. The vulnerability is tracked under [CWE-79].
Critical Impact
Unauthenticated attackers can store JavaScript in administrator-viewed mail logs, enabling session hijacking, account takeover, or further WordPress compromise.
Affected Products
- WordPress Mail logging – WP Mail Catcher plugin, all versions up to and including 2.1.12
- WordPress sites running WP Mail Catcher alongside a plugin that forwards unauthenticated input to wp_mail() (for example, Contact Form 7)
- Any WordPress environment where administrators review stored mail log entries from the vulnerable plugin
Discovery Timeline
- 2026-10-03 - CVE-2026-93889 published to NVD
- 2026-10-06 - Last updated in NVD database
Technical Details for CVE-2026-93889
Vulnerability Analysis
The WP Mail Catcher plugin logs outbound mail events, including failures reported through the WordPress wp_mail_failed action hook. When PHPMailer raises an exception, its error message may embed attacker-supplied values such as a malformed From address or recipient. The plugin writes this message into its log store without sanitizing input or escaping output when rendering it back in the administrative interface. Any user who views the affected log entry triggers execution of the injected script in the context of the WordPress admin session.
Root Cause
The root cause is missing output encoding in the log rendering path. The plugin's LogHelper, WpMail, MailAdminTable, and LogModal components handle PHPMailer error strings as trusted content. Because the error message incorporates values originating from untrusted HTTP input funneled through plugins like Contact Form 7, the stored data is attacker-controlled. Rendering it in HTML context without escaping satisfies the classic stored XSS pattern described in [CWE-79].
Attack Vector
An unauthenticated attacker submits a crafted form through a secondary plugin that passes user input into wp_mail() fields. The attacker places JavaScript payloads inside values that will appear in PHPMailer validation errors, such as malformed email addresses. When mail delivery fails, WP Mail Catcher persists the raw error message. A subsequent visit by an administrator to the mail log view executes the stored script in the browser session of a privileged user, enabling session theft or administrative actions. See the Wordfence Vulnerability Report and the WordPress LogHelper Code for the vulnerable code paths.
Detection Methods for CVE-2026-93889
Indicators of Compromise
- Mail log entries in WP Mail Catcher containing HTML tags such as <script>, <img onerror=>, or <svg onload=> inside recipient or sender fields
- Failed wp_mail() events with malformed email addresses that embed JavaScript payloads
- Administrator sessions generating unexpected outbound requests immediately after visiting the WP Mail Catcher log view
- Creation of new WordPress administrator accounts or modified user roles following log review activity
Detection Strategies
- Scan the plugin's log tables for stored content matching XSS signatures, including angle brackets, javascript: URIs, and event-handler attributes
- Monitor WordPress audit logs for Contact Form 7 (or similar) submissions containing script-like strings in email fields
- Review browser Content Security Policy violation reports originating from the /wp-admin/ interface
Monitoring Recommendations
- Alert on administrator browser sessions issuing API calls to /wp-json/wp/v2/users shortly after accessing plugin administration pages
- Capture and inspect wp_mail_failed action telemetry for anomalous payloads passed to PHPMailer
- Track plugin version inventory across managed WordPress sites to identify instances running 2.1.12 or earlier
How to Mitigate CVE-2026-93889
Immediate Actions Required
- Update the Mail logging – WP Mail Catcher plugin to a version later than 2.1.12 once published, as indicated in the WordPress Plugin Changeset
- Audit existing mail log entries and purge any records containing HTML or script payloads
- Rotate administrator credentials and invalidate active WordPress sessions if suspicious log entries are present
Patch Information
The vendor committed a fix tracked in changeset 3717442 on the WordPress plugin repository. Review the WordPress Plugin Changeset for the specific code modifications applied to LogHelper.php, WpMail.php, MailAdminTable.php, and LogModal.php.
Workarounds
- Deactivate the Mail logging – WP Mail Catcher plugin until the patched version is installed
- Restrict access to the plugin's administrative pages using a web application firewall rule limiting /wp-admin/ log views to known IP addresses
- Temporarily disable or sanitize input in secondary plugins such as Contact Form 7 that forward unauthenticated input into wp_mail() recipient or sender fields
# Disable the vulnerable plugin via WP-CLI until a patched release is deployed
wp plugin deactivate wp-mail-catcher
wp plugin status wp-mail-catcher
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

