Skip to main content
Vulnerability Database/CVE-2025-12324

CVE-2025-12324: TablePress WordPress Plugin XSS Vulnerability

CVE-2025-12324 is a stored XSS vulnerability in the TablePress WordPress plugin that allows authenticated attackers to inject malicious scripts. This post explains its impact, affected versions, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2025-12324 Overview

CVE-2025-12324 is a Stored Cross-Site Scripting (XSS) vulnerability in the TablePress plugin for WordPress. The flaw affects all versions up to and including 3.2.3. It stems from insufficient input sanitization and output escaping on user-supplied attributes passed to the plugin's table shortcode. Authenticated attackers with contributor-level access or higher can inject arbitrary JavaScript into pages. The injected scripts execute in the browser context of any user who visits an affected page. The issue is tracked under CWE-79.

Critical Impact

Contributor-level WordPress users can inject persistent JavaScript that executes against site visitors and administrators, enabling session theft, account takeover, and administrative action hijacking.

Affected Products

  • TablePress – Tables in WordPress made easy plugin
  • All plugin versions up to and including 3.2.3
  • WordPress sites allowing contributor-level or higher accounts to use the TablePress table shortcode

Discovery Timeline

  • 2025-11-04 - CVE-2025-12324 published to the National Vulnerability Database
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2025-12324

Vulnerability Analysis

TablePress exposes a table shortcode that renders table data inside WordPress posts and pages. The shortcode accepts attributes that control rendering behavior. The frontend controller fails to sanitize these attributes before echoing them into the HTML response. Any authenticated user permitted to publish content containing shortcodes can embed table with attribute values that break out of the attribute context and execute script. The injected payload persists in the post content and runs each time the page loads. Victims include logged-in administrators, which escalates the impact beyond a reflected XSS. The vulnerability is corrected in TablePress 3.2.4, as reflected in the plugin's frontend controller source.

Root Cause

The root cause is missing escaping of user-controlled shortcode attributes before output. The frontend controller treats attribute values as safe HTML rather than untrusted input. WordPress contributor accounts can submit posts containing shortcodes, so the trust boundary assumption that only trusted editors supply shortcode attributes is incorrect. The fix in version 3.2.4 adds proper escaping at the point of output. See the patched TablePress frontend controller for the corrected logic.

Attack Vector

Exploitation requires an authenticated session with contributor privileges or above. The attacker drafts or publishes a post that contains a TablePress table shortcode with a crafted attribute payload. When any user requests the page, the server renders the attribute without escaping. The browser parses the injected markup and executes the attacker-controlled JavaScript. Because the scope is changed in the CVSS vector, the impact crosses the WordPress rendering context and reaches other users, including site administrators. See the Wordfence vulnerability report for additional detail.

Detection Methods for CVE-2025-12324

Indicators of Compromise

  • Posts or pages containing TablePress table shortcodes with attribute values that include <script>, onerror=, onload=, or javascript: substrings
  • WordPress audit log entries showing contributor-level accounts creating or editing posts that embed the table shortcode
  • Unexpected outbound requests from administrator browser sessions to attacker-controlled domains after visiting pages that render TablePress content

Detection Strategies

  • Query the wp_posts table for post_content matching [table combined with HTML event handler patterns or script tags inside attribute values
  • Review installed TablePress plugin versions across all WordPress sites and flag any instance at version 3.2.3 or earlier
  • Inspect rendered page HTML for unescaped < or " characters originating inside attributes produced by the TablePress frontend controller

Monitoring Recommendations

  • Alert on new contributor or author account creation followed by posts containing shortcodes
  • Monitor WordPress REST API and /wp-admin/post.php traffic for shortcode payloads containing script tokens
  • Deploy a Content Security Policy that restricts inline script execution and report violations to a centralized logging pipeline

How to Mitigate CVE-2025-12324

Immediate Actions Required

  • Update the TablePress plugin to version 3.2.4 or later on every affected WordPress installation
  • Audit all contributor, author, and editor accounts for unexpected or inactive users and remove unneeded access
  • Review existing posts and pages for malicious payloads embedded in TablePress shortcode attributes and sanitize or remove them

Patch Information

The maintainers released TablePress 3.2.4, which escapes shortcode attributes in the frontend controller. The corrected code is published in the plugin's trac repository at the controller-frontend.php reference. Administrators should apply the update through the WordPress plugin dashboard or via WP-CLI and confirm the installed version afterward.

Workarounds

  • Restrict the ability to publish shortcode content to trusted editor and administrator roles until patching is complete
  • Deploy a web application firewall rule that blocks requests containing TablePress shortcode attributes with HTML event handlers or script tags
  • Enforce a strict Content Security Policy that disallows inline scripts to reduce the impact of injected payloads
bash
# Update TablePress using WP-CLI
wp plugin update tablepress --version=3.2.4
wp plugin list --name=tablepress --fields=name,status,version

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.