DEV Community

johnettwawers
johnettwawers

Posted on

Email Tracker turns moderated comments and contact subjects into stored script

Email Tracker turns moderated comments and contact subjects into stored script

CVE-2026-120118 affects Email Tracker for WordPress through version 5.3.17. The plugin stores untrusted values from comment content and Contact Form 7 subjects without adequate sanitization and later renders them in administrative views without sufficient escaping. An unauthenticated visitor can place a script payload that executes when an administrator or another authorized user opens the affected screen.

The comment path has a moderation condition. The site must have comment moderation notifications enabled, comments must be open, and the crafted comment must reach the relevant notification or display flow. The Contact Form 7 path requires at least one public form whose mail template includes a user-supplied subject. These conditions reduce the population of exposed sites, but they are common in operational WordPress deployments that use forms to route support requests.

Update the plugin to a version above 5.3.17 after checking the vendor record for the fixed release. If a fixed version is not available in the deployment's package process, remove the plugin or disable the affected notification and form integrations. Review plugins that process messages as HTML rather than escaping them at the final output boundary.

Hunting should cover stored content and outbound email. Search form submissions, comment metadata and notification templates for script tags, event handlers and unusual encodings. Review administrator browser sessions that followed email links or opened the plugin's message screens near the same time. Clear suspicious drafts or queued notifications only after exporting evidence.

If a payload executed in an administrator browser, treat the WordPress session as potentially compromised. Rotate cookies and salts, force reauthentication, review recent plugin and user changes, and inspect application logs for requests made with the affected session. Stored XSS can perform actions with the administrator's privileges even when the attacker never learns the account password.

The design lesson is that email and comment content are not safe merely because they pass through a WordPress workflow. Every sink needs context-aware output encoding, and message preview screens deserve the same scrutiny as public pages.

References

Top comments (0)