Skip to main content

CVE-2025-5143: TableOn WordPress Plugin XSS Vulnerability

CVE-2025-5143 is a stored cross-site scripting vulnerability in the TableOn WordPress Posts Table Filterable plugin affecting versions up to 1.0.4.1. This article covers technical details, security implications, and remediation.

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-5143 Overview

CVE-2025-5143 is a Stored Cross-Site Scripting (XSS) vulnerability in the TableOn – WordPress Posts Table Filterable plugin by Pluginus. The flaw affects all versions up to and including 1.0.4.1. It originates in the tableon_popup_iframe_button shortcode, which fails to properly sanitize user-supplied attributes or escape output. Authenticated attackers with contributor-level access or higher can inject arbitrary JavaScript into pages. The injected scripts execute in the browser of any visitor who views the affected page, enabling session theft, redirection, or defacement in the context of the victim's session.

Critical Impact

Contributor-level accounts can plant persistent JavaScript payloads that execute against site visitors and administrators, placing stored content and privileged sessions at risk.

Affected Products

  • Pluginus TableOn – WordPress Posts Table Filterable plugin, all versions through 1.0.4.1
  • WordPress sites running the vulnerable posts-table-filterable plugin with contributor-or-higher user registration enabled
  • Multi-author WordPress installations exposing the tableon_popup_iframe_button shortcode

Discovery Timeline

  • 2025-06-21 - CVE-2025-5143 published to the National Vulnerability Database
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2025-5143

Vulnerability Analysis

The vulnerability is a Stored Cross-Site Scripting flaw classified under [CWE-79]. The plugin exposes the tableon_popup_iframe_button shortcode, which accepts attributes supplied by any user able to author post content. Because the shortcode handler neither sanitizes incoming attributes nor escapes them on output, attacker-controlled strings are written directly into rendered HTML.

An attacker with contributor privileges can embed the shortcode within a draft post using crafted attribute values that contain HTML or JavaScript. When an editor, administrator, or site visitor later renders the post, the browser parses and executes the injected payload. The result is script execution in the victim's authenticated session context.

The attack requires low privileges and user interaction to view the injected page. Because the injected code can target any viewer, including administrators, successful exploitation can escalate into account takeover or further site compromise through administrative actions performed via the victim's session.

Root Cause

The shortcode callback in index.php (around line 1630 of the plugin trunk) concatenates attribute values into HTML output without calling WordPress sanitization helpers such as esc_attr(), esc_html(), or wp_kses(). See the WordPress Plugin Code Snippet for the pre-patch implementation. The root cause is missing input validation and output encoding on user-controlled shortcode parameters.

Attack Vector

Exploitation is network-based and requires an authenticated account with contributor-level access or above. The attacker inserts the vulnerable shortcode into a post or page with malicious attribute values. When a subsequent viewer loads the rendered page, the stored payload executes in their browser under the site's origin, allowing cookie theft, forced actions, or redirection to attacker-controlled resources.

No verified public exploit code is available for this vulnerability. Technical details are published in the Wordfence Vulnerability Analysis.

Detection Methods for CVE-2025-5143

Indicators of Compromise

  • Post or page content containing the [tableon_popup_iframe_button] shortcode with attributes holding <script>, onerror=, onload=, or javascript: strings
  • Unexpected outbound requests from editor or administrator browsers to unfamiliar domains after viewing posts created by contributor accounts
  • New or modified WordPress user accounts created shortly after an administrator previewed a contributor-authored post
  • Browser console errors or Content Security Policy violations originating from the site's own origin on pages that embed the shortcode

Detection Strategies

  • Query the wp_posts table for post_content entries containing tableon_popup_iframe_button and inspect attribute values for HTML or JavaScript characters
  • Monitor web server access logs for POST requests to /wp-admin/post.php or /wp-admin/admin-ajax.php from contributor accounts that include encoded < or > characters in shortcode parameters
  • Review audit logs for contributor-authored posts awaiting review that contain unusual shortcode attribute payloads

Monitoring Recommendations

  • Enable WordPress activity logging to track post creation and edits by low-privilege roles
  • Deploy a web application firewall rule to flag or block shortcode attributes containing script-tag patterns or event handler keywords
  • Alert on administrative session anomalies, such as unexpected privilege changes or plugin installations following preview of contributor content

How to Mitigate CVE-2025-5143

Immediate Actions Required

  • Update the TableOn – WordPress Posts Table Filterable plugin to a version later than 1.0.4.1 that incorporates the fix from WordPress Changeset #3315337
  • If no patched release is available, deactivate and remove the plugin until a fixed version ships
  • Audit all posts and pages for existing instances of the tableon_popup_iframe_button shortcode and remove suspicious attribute values
  • Review contributor and author accounts for signs of abuse and rotate credentials for any administrator who previewed suspect content

Patch Information

The vendor addressed the issue in the plugin trunk via WordPress Changeset #3315337. Site administrators should install the latest version available from the WordPress plugin repository and confirm the installed version is greater than 1.0.4.1.

Workarounds

  • Restrict contributor-level registration and limit who can author posts on the affected site
  • Add a web application firewall rule that strips or blocks HTML and JavaScript tokens inside tableon_popup_iframe_button shortcode attributes
  • Deploy a strict Content Security Policy that disallows inline scripts and limits script sources to trusted origins
  • Require editorial review before publishing any post containing the vulnerable shortcode
bash
# Example: locate posts containing the vulnerable shortcode
wp db query "SELECT ID, post_title, post_author, post_status \
  FROM wp_posts \
  WHERE post_content LIKE '%tableon_popup_iframe_button%';"

# Update the plugin once a patched release is available
wp plugin update posts-table-filterable

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.