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-6387 Overview
CVE-2025-6387 is a Stored Cross-Site Scripting (XSS) vulnerability in the WP Get The Table plugin for WordPress. The flaw affects all versions up to and including 1.5. It stems from insufficient input sanitization and output escaping on the url parameter. Authenticated users with Contributor-level privileges or higher can inject arbitrary web scripts into pages. The injected scripts execute in the browser context of any visitor who accesses an affected page. The issue is tracked under CWE-79.
Critical Impact
Authenticated contributors can plant persistent JavaScript payloads that execute against site administrators and visitors, enabling session theft, forced administrative actions, and site defacement.
Affected Products
- WP Get The Table plugin for WordPress
- All versions up to and including 1.5
- WordPress sites allowing Contributor-level account registration
Discovery Timeline
- 2025-07-24 - CVE-2025-6387 published to the National Vulnerability Database (NVD)
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2025-6387
Vulnerability Analysis
The WP Get The Table plugin accepts user-supplied data through the url parameter without applying proper input sanitization. The plugin also fails to escape this value during HTML output rendering. These two gaps combine to produce a Stored XSS condition.
An attacker authenticates with at least Contributor privileges and submits a crafted payload through the vulnerable parameter. The payload persists in the WordPress database. When any user later renders the affected page, the browser parses and executes the injected JavaScript.
Stored XSS payloads can hijack session cookies, perform actions on behalf of the viewing user, and modify DOM content. If an administrator views the page, the attacker gains the ability to execute privileged actions through the admin's browser session. This can escalate into full site compromise through plugin installation or theme editing.
Root Cause
The root cause is twofold. First, the plugin does not sanitize the url parameter using WordPress helpers such as esc_url_raw() or sanitize_text_field() before storing user data. Second, the plugin outputs the stored value without applying context-appropriate escaping functions like esc_url() or esc_attr(). This violates the WordPress plugin security guidance for handling untrusted input.
Attack Vector
Exploitation requires network access to the WordPress site and an authenticated account at the Contributor role or above. No user interaction from a victim is required beyond visiting the injected page. The scope is changed because the executed script runs in the browser of a different user, potentially an administrator.
The vulnerability can be chained with WordPress registration abuse. Sites that allow open contributor registration expose this attack surface to any internet user. Technical details on the fix are available in the WordPress Plugin Changeset and the Wordfence Vulnerability Report.
Detection Methods for CVE-2025-6387
Indicators of Compromise
- Database entries in wp_posts or plugin-specific tables containing <script>, javascript:, or event handler attributes within the url field
- Unexpected outbound requests from administrator browsers to attacker-controlled domains after viewing plugin-rendered pages
- New administrator accounts or modified user roles created shortly after an authenticated contributor session
- Modified theme or plugin files timestamped after contributor-level activity
Detection Strategies
- Scan WordPress database content for HTML tags and JavaScript protocol handlers within fields processed by the WP Get The Table plugin
- Review WordPress audit logs for post or page edits made by Contributor-role accounts that include the plugin shortcode
- Monitor web server access logs for POST requests to wp-admin/post.php or REST API endpoints containing suspicious url parameter values
Monitoring Recommendations
- Deploy a Web Application Firewall (WAF) rule that inspects submissions to WP Get The Table parameters for script tags and encoded JavaScript
- Alert on contributor account creation events paired with immediate post publishing or editing activity
- Track Content Security Policy (CSP) violation reports to identify unexpected inline script execution
How to Mitigate CVE-2025-6387
Immediate Actions Required
- Update the WP Get The Table plugin to a version newer than 1.5 once a patched release is published
- Audit all WordPress accounts with Contributor privileges or higher and remove unused or untrusted accounts
- Disable open user registration or restrict new registrations to the Subscriber role
- Review existing posts and pages created or modified by non-administrator users for injected script content
Patch Information
The vendor committed a fix in the plugin repository, documented in the WordPress Plugin Changeset. Administrators should verify the installed plugin version against the latest release listed on the WP Get The Table Plugin Info page and apply updates through the WordPress admin dashboard.
Workarounds
- Deactivate and remove the WP Get The Table plugin until a patched version is installed
- Enforce a strict Content Security Policy that disallows inline scripts and limits script sources to trusted origins
- Apply WAF signatures that block Stored XSS payloads targeting WordPress plugin parameters
- Temporarily restrict contributor-level accounts from publishing content containing plugin shortcodes
# Content Security Policy header example for WordPress
Header set Content-Security-Policy "default-src 'self'; script-src 'self'; object-src 'none'; base-uri 'self'; frame-ancestors 'self'"
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

