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-2024-29128 Overview
CVE-2024-29128 is a reflected cross-site scripting (XSS) vulnerability in the Post SMTP WordPress plugin developed by WPExperts. The flaw affects all plugin versions up to and including 2.8.6. The vulnerability stems from improper neutralization of user-supplied input during web page generation, classified under [CWE-79]. An attacker can craft a malicious URL that, when clicked by an authenticated user, executes arbitrary JavaScript in the victim's browser session. Successful exploitation enables session data theft, administrative action hijacking, and phishing redirection within the WordPress administrative context.
Critical Impact
Reflected XSS execution in the context of an authenticated WordPress user, enabling session manipulation and unauthorized administrative actions through crafted links.
Affected Products
- WPExperts Post SMTP plugin for WordPress
- All versions from n/a through 2.8.6
- WordPress sites with the Post SMTP mailer plugin installed
Discovery Timeline
- 2024-03-19 - CVE CVE-2024-29128 published to NVD
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2024-29128
Vulnerability Analysis
The Post SMTP plugin fails to sanitize and encode user-controllable input before reflecting it into generated HTML output. Attackers deliver the payload through a specially crafted URL parameter. When a victim with an authenticated WordPress session loads the URL, the browser executes attacker-controlled script in the origin of the WordPress site.
The scope change indicator in the CVSS vector shows that script execution can reach resources beyond the vulnerable component, including other browser contexts tied to the same user session. User interaction is required, so exploitation typically leverages social engineering such as phishing emails or malicious links in forums.
The Post SMTP plugin is widely deployed to route WordPress transactional email. A successful attack against an administrator can facilitate account takeover, SMTP credential exposure, or injection of persistent malicious content into site configuration.
Root Cause
The root cause is missing output encoding and input validation in a plugin administrative page. Request parameters are echoed into the HTML response without context-aware escaping functions such as esc_html(), esc_attr(), or wp_kses(). This permits attacker-supplied markup and script tags to be rendered verbatim in the response body.
Attack Vector
Exploitation requires a network-reachable WordPress site running Post SMTP 2.8.6 or earlier. The attacker constructs a URL containing a malicious JavaScript payload inside a vulnerable parameter. The target must click the link while authenticated to the WordPress admin area. The payload then executes under the site's origin and inherits the victim's permissions. See the Patchstack Vulnerability Report for additional technical context.
Detection Methods for CVE-2024-29128
Indicators of Compromise
- HTTP requests to Post SMTP plugin endpoints containing URL-encoded <script>, onerror=, javascript:, or onload= payloads in query parameters
- Referrer logs showing WordPress administrators arriving from external domains before accessing Post SMTP admin pages
- Unexpected outbound requests from administrator browsers to attacker-controlled domains following plugin page visits
- Modifications to Post SMTP configuration, SMTP credentials, or new WordPress administrator accounts created without authorized change tickets
Detection Strategies
- Deploy web application firewall (WAF) rules that inspect query strings on /wp-admin/ paths for XSS signatures and encoded script content
- Enable WordPress security audit logging to capture administrative actions correlated with plugin page access
- Review web server access logs for anomalous parameter values targeting Post SMTP plugin URLs
Monitoring Recommendations
- Monitor Post SMTP plugin version across all WordPress deployments and alert on instances at or below 2.8.6
- Track administrator session anomalies such as geographic shifts or user-agent changes immediately after plugin page requests
- Forward WordPress and web server logs to a centralized analytics platform to correlate reflected XSS attempts across sites
How to Mitigate CVE-2024-29128
Immediate Actions Required
- Update the Post SMTP plugin to a version newer than 2.8.6 on all WordPress installations
- Audit WordPress administrator accounts for unauthorized changes and rotate SMTP credentials stored by the plugin
- Instruct administrators to avoid clicking untrusted links while authenticated to the WordPress dashboard
- Enforce browser session isolation by using dedicated browsers or profiles for WordPress administration
Patch Information
WPExperts has released a patched version of Post SMTP that addresses the reflected XSS. Site operators should install the latest release from the WordPress plugin repository and verify the version through the WordPress Plugins page. Consult the Patchstack Vulnerability Report for the fixed version details.
Workarounds
- Deactivate the Post SMTP plugin until an upgrade is deployed if patching cannot occur immediately
- Restrict access to /wp-admin/ using IP allowlisting at the web server or WAF layer
- Enforce a Content Security Policy (CSP) that blocks inline script execution on WordPress admin pages
- Require multi-factor authentication for all WordPress administrator accounts to limit impact of session compromise
# Configuration example
# Update Post SMTP plugin via WP-CLI
wp plugin update post-smtp --path=/var/www/html
# Verify installed version
wp plugin get post-smtp --field=version --path=/var/www/html
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

