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-2025-22802 Overview
CVE-2025-22802 is a stored Cross-Site Scripting (XSS) vulnerability affecting the Email Templates Customizer for WordPress – Drag And Drop Email Templates Builder – YeeMail plugin. The flaw exists in all plugin versions up to and including 2.1.4. An authenticated attacker with low privileges can inject malicious script content that persists in the application and executes in the browser of any user who views the affected content. The issue is classified under CWE-79, Improper Neutralization of Input During Web Page Generation.
Critical Impact
An authenticated attacker can store malicious JavaScript that executes in victim browsers, enabling session theft, administrative action hijacking, and WordPress site compromise through persistent payloads.
Affected Products
- Email Templates Customizer for WordPress – YeeMail plugin versions through 2.1.4
- WordPress installations using the yeemail plugin by add-ons.org
- Any WordPress site where contributors or higher-privileged users can access the plugin
Discovery Timeline
- 2025-01-09 - CVE-2025-22802 published to the National Vulnerability Database
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2025-22802
Vulnerability Analysis
The vulnerability stems from the YeeMail plugin failing to properly neutralize user-supplied input before rendering it in generated web pages. Attacker-controlled data persists in the WordPress database and is later rendered without adequate output encoding or sanitization. Because the payload is stored, every subsequent visitor to the affected page triggers execution of the injected script.
The scope is marked as changed in the CVSS vector, which means an exploit in the vulnerable component can affect other components such as the browser session of an administrator viewing the email template. User interaction is required for the stored payload to execute against a target. According to the EPSS model, the probability of near-term exploitation is low at the time of publication.
Root Cause
The root cause is missing or insufficient input sanitization and output encoding in the plugin's email template customization functionality. User-supplied template data, likely including HTML, is written to the database and later echoed back into the WordPress admin or preview context without escaping dangerous characters such as <, >, and quote delimiters. WordPress provides helpers such as wp_kses(), esc_html(), and esc_attr() that were not applied to the vulnerable input or output path.
Attack Vector
Exploitation requires a network-reachable WordPress instance and an authenticated account with the privilege level needed to interact with YeeMail template functionality. The attacker submits a crafted template containing JavaScript. When an administrator or another user opens the stored template, the payload executes in that user's browser with the privileges of their session. This enables cookie theft, forced plugin or user changes via nonce reuse, and injection of secondary payloads such as persistent backdoors through the WordPress REST or admin APIs.
No verified proof-of-concept exploit code is published. Refer to the Patchstack XSS Vulnerability Report for additional context.
Detection Methods for CVE-2025-22802
Indicators of Compromise
- Email template records in the WordPress database containing <script>, onerror=, onload=, or javascript: sequences
- Unexpected outbound HTTP requests from administrator browsers after visiting the YeeMail plugin interface
- New or modified WordPress administrator accounts, API keys, or plugin installations following access to a crafted email template
- Browser console errors or unexpected network calls during template preview rendering
Detection Strategies
- Inspect wp_posts, wp_postmeta, and plugin-specific tables used by yeemail for stored HTML containing script tags or event handler attributes
- Review web server access logs for POST requests from low-privileged accounts to YeeMail save or update endpoints
- Enable WordPress audit logging to capture template create and edit events, correlating them with the submitting user
Monitoring Recommendations
- Alert on administrator session activity immediately following access to plugin-managed template URLs
- Monitor for creation of WordPress users with elevated roles or changes to the wp_optionssiteurl and home values
- Track outbound DNS and HTTP traffic from administrator workstations to unfamiliar domains after YeeMail usage
How to Mitigate CVE-2025-22802
Immediate Actions Required
- Identify all WordPress sites running the YeeMail plugin version 2.1.4 or earlier
- Restrict access to the plugin's template editing capabilities to trusted administrator accounts only
- Audit stored email templates for script content and remove any suspicious entries before administrators view them
- Rotate credentials, session cookies, and API keys for any administrator who viewed potentially tainted templates
Patch Information
At the time of writing, consult the Patchstack advisory for the latest fixed version information from the plugin maintainer. Upgrade to a release later than 2.1.4 once the vendor publishes a patched version, and verify the fix through the WordPress plugin repository changelog.
Workarounds
- Deactivate and remove the YeeMail plugin until a patched version is installed
- Deploy a web application firewall rule that blocks script tags and JavaScript event handlers in requests to YeeMail save endpoints
- Enforce a strict Content Security Policy on the WordPress admin interface to limit inline script execution
- Require all contributor-level and above accounts to use multi-factor authentication to raise the barrier for exploitation
# Configuration example: disable the vulnerable plugin via WP-CLI
wp plugin deactivate yeemail
wp plugin delete yeemail
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

