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-5800 Overview
CVE-2025-5800 is a stored Cross-Site Scripting (XSS) vulnerability in the Testimonial Post type plugin for WordPress. The flaw affects all versions up to and including 1.2.1 and stems from insufficient input sanitization and output escaping on the auto_play parameter. Authenticated users with Contributor-level access or higher can inject arbitrary JavaScript that executes when any visitor loads an affected page. The weakness is categorized under CWE-79: Improper Neutralization of Input During Web Page Generation.
Critical Impact
Authenticated contributors can inject persistent JavaScript that executes in the browser of every subsequent page visitor, enabling session theft, administrative action abuse, and site defacement.
Affected Products
- WordPress Testimonial Post type plugin versions 1.2.1 and earlier
- WordPress sites allowing Contributor-level or higher user registration
- Any WordPress deployment using the vulnerable testimonial-post-type plugin
Discovery Timeline
- 2025-07-18 - CVE-2025-5800 published to the National Vulnerability Database
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2025-5800
Vulnerability Analysis
The Testimonial Post type plugin processes a shortcode attribute named auto_play without applying sufficient sanitization before rendering it into page markup. The plugin accepts the value, stores it with the post content, and later echoes it into the browser response. Because the value is not escaped on output, an attacker can supply JavaScript that becomes part of the rendered HTML.
Stored XSS flaws like this one differ from reflected variants because the payload persists in the database. Every subsequent visitor to the affected page executes the injected script in the context of the WordPress site. Payloads can target administrator sessions, exfiltrate authentication cookies, or trigger authenticated API calls on behalf of the viewer.
Root Cause
The root cause is missing input sanitization and output escaping on the auto_play shortcode attribute in testimonial-post-type.php. WordPress provides functions such as sanitize_text_field() for input and esc_attr() or esc_html() for output, but these controls are not applied to this parameter. The relevant code path can be reviewed in the plugin source on WordPress Trac.
Attack Vector
Exploitation requires an authenticated account with Contributor privileges or higher. The attacker publishes or edits a post containing the plugin's shortcode and supplies a crafted auto_play value containing an HTML attribute breakout and inline script. When an editor, administrator, or site visitor loads the page containing the testimonial, the browser parses and executes the injected JavaScript. See the Wordfence vulnerability analysis for additional context.
Detection Methods for CVE-2025-5800
Indicators of Compromise
- Testimonial post content containing shortcode attributes with <script>, onerror=, onload=, or javascript: substrings in the auto_play value
- Unexpected outbound requests from editor or administrator browser sessions when previewing testimonial pages
- New or modified WordPress user accounts created shortly after an administrator views a testimonial page
- Contributor accounts publishing or editing posts that embed the testimonial shortcode
Detection Strategies
- Query the wp_posts table for post content containing the testimonial shortcode and inspect auto_play attribute values for HTML or script tokens
- Deploy a Web Application Firewall rule to flag shortcode submissions whose attributes contain angle brackets, event handlers, or javascript: URIs
- Review WordPress audit logs for Contributor-level accounts creating or updating posts containing the plugin shortcode
Monitoring Recommendations
- Enable a WordPress activity logging plugin to capture post creation, edits, and user role changes
- Monitor web server access logs for anomalous POST requests to /wp-admin/post.php from low-privilege accounts
- Alert on Content Security Policy violation reports indicating inline script execution on testimonial pages
How to Mitigate CVE-2025-5800
Immediate Actions Required
- Audit the installed version of the Testimonial Post type plugin and confirm whether it is 1.2.1 or earlier
- Review all existing testimonial posts for suspicious auto_play attribute values and remove any containing script content
- Restrict Contributor-level and higher account provisioning to trusted users until a patched version is deployed
- Rotate administrator credentials and invalidate active sessions if evidence of exploitation exists
Patch Information
At the time of publication, consult the WordPress plugin page for the latest release and changelog. Update to a version greater than 1.2.1 once the maintainer publishes a fix that applies sanitize_text_field() on input and esc_attr() on output for the auto_play parameter. If no patched version is available, consider removing or replacing the plugin.
Workarounds
- Deactivate and uninstall the Testimonial Post type plugin until a fixed release is available
- Apply a Content Security Policy that disallows inline script execution on pages rendering testimonial content
- Downgrade existing Contributor accounts or require editorial review before publishing posts that include the testimonial shortcode
- Deploy a WAF rule that strips or blocks HTML metacharacters in shortcode attributes submitted to /wp-admin/
# Example WordPress CLI commands to inventory and disable the plugin
wp plugin get testimonial-post-type --field=version
wp plugin deactivate testimonial-post-type
wp plugin uninstall testimonial-post-type
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

