CVE-2025-22788
Executive Summary
CVE-2025-22788 is a Stored Cross-Site Scripting (XSS) vulnerability in the CoDesigner (woolementor) WordPress plugin developed by Codexpert, Inc. The vulnerability affects all versions up to and including 4.29. An authenticated attacker with at least Contributor-level privileges can inject malicious JavaScript into web pages generated by the plugin. When an administrator or other user views the affected page, the script executes in their browser, potentially leading to session hijacking, credential theft, or further compromise of the WordPress installation.
This vulnerability is classified as a WordPress ecosystem issue and is not related to the underlying web server (Apache/Nginx). The CVSS score is 5.9 (Medium), with a low EPSS probability (0.0%), indicating that exploitation is not currently widespread but remains a significant risk 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 resides in a WordPress plugin distributed via the official WordPress Plugin Directory. The plugin is not an NPM, PyPI, Go, or Ruby package. However, the risk extends to the WordPress supply chain: if the plugin is compromised or contains malicious code, it can affect all sites using it. Administrators should verify the integrity of the plugin files and monitor for any unauthorized changes.
CVSS Breakdown & Threat Level
- CVSS Score: 5.9 (Medium)
- Attack Vector (AV): Network (N)
- Attack Complexity (AC): Low (L)
- Privileges Required (PR): High (H) – requires Contributor-level or higher
- User Interaction (UI): Required (R) – victim must view the page
- Scope (S): Changed (C) – impacts resources beyond the vulnerable component
- Confidentiality (C): Low (L)
- Integrity (I): Low (L)
- Availability (A): Low (L)
Threat Level: Medium. Exploitation requires authenticated access, but the impact can be severe if an attacker gains administrative privileges.
Deep Dive & Mechanics
The vulnerability exists in the CoDesigner plugin's handling of user-supplied input when generating web pages. The plugin fails to properly sanitize or escape data before outputting it in the HTML context. An attacker with Contributor-level access can inject arbitrary JavaScript into fields such as product descriptions, custom blocks, or widget settings. When the page is rendered, the injected script executes in the context of the victim's browser.
Root Cause: Improper neutralization of input during web page generation (CWE-79). The plugin likely uses echo or print without applying WordPress's escaping functions like esc_html(), esc_attr(), or wp_kses_post().
Attack Flow:
- Attacker logs in with Contributor privileges.
- Attacker navigates to a vulnerable input field (e.g., a custom block or widget).
- Attacker injects a payload like
<script>alert('XSS')</script>. - The payload is stored in the database.
- An administrator or other user views the page containing the payload.
- The script executes, allowing the attacker to steal cookies, perform actions on behalf of the victim, or inject further malicious content.
Vulnerable vs. Patched Code
Since no official patch is available, the following is a hypothetical comparison based on common XSS fixes.
Vulnerable Code (hypothetical):
echo $user_input;
Patched Code (hypothetical):
echo esc_html( $user_input );
The patched version uses esc_html() to convert special characters to HTML entities, preventing script execution.
Exploitation & Lab Setup
Red Team
Prerequisites:
- WordPress installation with CoDesigner plugin version <= 4.29.
- Attacker account with Contributor-level privileges.
Steps:
- Log in to WordPress as a Contributor.
- Navigate to a vulnerable page (e.g., a custom block or widget).
- Inject the following payload into a text field:
<script>alert('XSS')</script> - Save the page.
- As an administrator, view the page to trigger the XSS.
Advanced Payload (session hijacking):
<script>
fetch('/wp-admin/admin-ajax.php?action=your_action&data='+document.cookie);
</script>
Blue Team
Detection:
- Monitor for unusual JavaScript in user-submitted content.
- Use Web Application Firewall (WAF) rules to block common XSS patterns.
- Review WordPress user activity logs for suspicious edits.
Prevention:
- Apply input validation and output escaping on all user-supplied data.
- Use Content Security Policy (CSP) headers to restrict script execution.
- Limit user privileges to the minimum necessary.
Indicators of Compromise (IOCs)
- Network: HTTP requests containing
<script>tags in POST data to/wp-admin/admin-ajax.phpor plugin-specific endpoints. - File System: Modified plugin files in
/wp-content/plugins/woolementor/containing injected JavaScript. - Database: Entries in
wp_postsorwp_postmetacontaining<script>tags. - Logs: WordPress debug logs showing unexpected output or errors related to the plugin.
Detection Engineering
YARA Rule
rule CVE_2025_22788_Stored_XSS {
meta:
description = "Detects stored XSS payloads in CoDesigner plugin"
author = "Valters IT"
date = "2025-04-10"
reference = "CVE-2025-22788"
strings:
$xss_payload = /<script[^>]*>.*?<\/script>/is
$plugin_path = /wp-content\/plugins\/woolementor/
condition:
$plugin_path and $xss_payload
}
Sigma Rule
title: Stored XSS in CoDesigner Plugin
id: cve-2025-22788
status: experimental
description: Detects stored XSS attempts in CoDesigner plugin
author: Valters IT
logsource:
category: webserver
product: apache
detection:
selection:
cs-method: 'POST'
cs-uri-query|contains: '/wp-admin/admin-ajax.php'
cs-uri-query|contains: 'action='
cs-uri-query|contains: 'woolementor'
condition: selection
falsepositives:
- Legitimate plugin functionality
level: medium
Suricata Rule
alert http any any -> any any (msg:"CVE-2025-22788 Stored XSS in CoDesigner"; flow:to_server,established; content:"POST"; http_method; content:"/wp-admin/admin-ajax.php"; http_uri; content:"action="; http_uri; content:"woolementor"; http_uri; pcre:"/<script[^>]*>.*?<\/script>/i"; sid:1000001; rev:1;)
Remediation & Mitigation
Immediate Actions:
- Disable the plugin until a patch is released.
- Restrict user privileges – only grant Contributor access to trusted users.
- Apply a Web Application Firewall (WAF) rule to block XSS payloads.
Long-term Fix:
- Monitor the plugin's official page for a security update.
- Consider replacing the plugin with an alternative that is actively maintained.
- Implement a Content Security Policy (CSP) to mitigate XSS impact.
Workaround:
- Use a security plugin like Wordfence to add virtual patching for known XSS vectors.
Valters IT
Securing Digital Frontiers
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.