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

CVE-2025-58655: Category Featured Images Stored XSS Flaw

CVE-2025-58655 is a stored cross-site scripting vulnerability in the Category Featured Images WordPress plugin affecting versions up to 1.1.8. Attackers can inject malicious scripts that execute in user browsers. This article covers technical details, affected versions, security impact, and remediation strategies.

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

CVE-2025-58655 is a stored Cross-Site Scripting (XSS) vulnerability in the Mat Category Featured Images WordPress plugin (category-featured-images). The flaw affects all plugin versions up to and including 1.1.8. It stems from improper neutralization of user-supplied input during web page generation, allowing authenticated attackers with high privileges to inject persistent JavaScript payloads. When other users load the affected pages, the malicious script executes in their browsers under the site's origin. The vulnerability is tracked under CWE-79 and was disclosed via Patchstack.

Critical Impact

Authenticated attackers can inject persistent JavaScript into WordPress pages, enabling session theft, administrative action hijacking, and defacement across all visitors.

Affected Products

  • Mat Category Featured Images plugin for WordPress
  • All versions from n/a through 1.1.8
  • WordPress sites with the category-featured-images plugin installed and active

Discovery Timeline

  • 2025-09-22 - CVE-2025-58655 published to NVD
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2025-58655

Vulnerability Analysis

The Category Featured Images plugin fails to sanitize input data before storing it and later rendering it inside HTML output. An attacker with high-privilege access — typically an administrator or editor with category management permissions — can submit crafted input containing HTML or JavaScript. The payload persists in the WordPress database and executes whenever a user loads a page that renders the tainted category data.

Because the attack requires user interaction and results in a scope change, the injected script runs in a different security context than the vulnerable component. This makes it effective for pivoting against site visitors, lower-privileged authors, or unauthenticated readers viewing category pages.

Root Cause

The root cause is missing or insufficient output escaping in the plugin's category rendering logic. Input passed through category configuration fields is not filtered with WordPress sanitization APIs such as wp_kses_post(), esc_html(), or esc_attr() prior to being echoed into the DOM. This classifies the flaw under CWE-79: Improper Neutralization of Input During Web Page Generation.

Attack Vector

Exploitation proceeds over the network against the WordPress admin interface. An authenticated attacker submits a malicious payload through the plugin's category image or metadata fields. The stored payload triggers on any page that renders the affected category output. Refer to the Patchstack advisory for further technical context. No public proof-of-concept exploit is currently listed, and the vulnerability is not present on the CISA Known Exploited Vulnerabilities catalog.

Detection Methods for CVE-2025-58655

Indicators of Compromise

  • Unexpected <script>, onerror=, onload=, or javascript: strings stored in WordPress wp_termmeta or plugin-specific option tables
  • Category pages returning HTML containing inline JavaScript that references external domains
  • Administrative accounts modifying category metadata outside of routine content workflows
  • Browser console errors or Content Security Policy violations originating from category archive pages

Detection Strategies

  • Query the WordPress database for term metadata containing HTML tags or event handler attributes
  • Compare rendered category page output against a known-good baseline to detect injected markup
  • Monitor WordPress audit logs for category edits by accounts that do not typically manage taxonomy
  • Review web server access logs for POST requests to wp-admin/edit-tags.php and plugin AJAX endpoints correlated with subsequent script inclusions

Monitoring Recommendations

  • Enable a Web Application Firewall (WAF) with XSS signatures tuned for WordPress admin traffic
  • Deploy Content Security Policy headers to alert on inline script execution violations
  • Aggregate WordPress activity logs into a centralized SIEM for correlation across category and taxonomy changes
  • Alert on new outbound connections from client browsers to unrecognized domains after visiting category pages

How to Mitigate CVE-2025-58655

Immediate Actions Required

  • Deactivate the Category Featured Images plugin until a patched release is available and verified
  • Audit all WordPress accounts with manage_categories or higher privileges and remove unnecessary access
  • Review category metadata for stored payloads and remove any injected HTML or script content
  • Force password resets for administrator and editor accounts if suspicious category edits are detected

Patch Information

At the time of this writing, no fixed version beyond 1.1.8 has been published in the NVD entry. Monitor the Patchstack advisory and the plugin's WordPress.org page for release updates. Apply the vendor patch immediately once available, and validate the fix in a staging environment before promoting to production.

Workarounds

  • Remove the category-featured-images plugin from all WordPress installations pending an official fix
  • Restrict category management capabilities to a minimum set of trusted administrators
  • Deploy a WAF rule to block requests containing HTML tags or JavaScript event handlers in category form parameters
  • Enforce a strict Content Security Policy that disallows inline scripts on public-facing pages
bash
# Disable the vulnerable plugin using WP-CLI
wp plugin deactivate category-featured-images
wp plugin delete category-featured-images

# Audit term metadata for suspicious content
wp db query "SELECT term_id, meta_key, meta_value FROM wp_termmeta WHERE meta_value LIKE '%<script%' OR meta_value LIKE '%onerror=%' OR meta_value LIKE '%javascript:%';"

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.