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-39549 Overview
CVE-2025-39549 is a stored Cross-Site Scripting (XSS) vulnerability in the Most And Least Read Posts Widget WordPress plugin by whiletrue. The flaw affects all versions up to and including 2.5.20. An authenticated attacker with low privileges can inject malicious scripts that execute in the browsers of users who view affected pages. The vulnerability is tracked under CWE-79: Improper Neutralization of Input During Web Page Generation.
Critical Impact
Stored XSS enables persistent script execution in authenticated administrator sessions, potentially leading to account takeover, content manipulation, and privilege escalation across the WordPress site.
Affected Products
- WordPress plugin: Most And Least Read Posts Widget by whiletrue
- Plugin slug: most-and-least-read-posts-widget
- All versions from n/a through 2.5.20
Discovery Timeline
- 2025-04-16 - CVE-2025-39549 published to NVD
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2025-39549
Vulnerability Analysis
The plugin fails to properly neutralize user-supplied input before storing it and rendering it back into web pages. This allows an attacker with low-level authenticated access to persist malicious JavaScript payloads in the application. When another user, typically an administrator, loads the affected widget or configuration page, the stored payload executes in the context of their browser session.
Stored XSS in WordPress plugins commonly leads to session hijacking, forced administrative actions through the REST or admin-ajax endpoints, and injection of backdoor accounts. Because the attack scope is marked as changed in the CVSS vector, the executed script can affect resources beyond the vulnerable component, including the WordPress admin interface. User interaction is required, since a victim must visit the page containing the payload.
The EPSS probability for exploitation currently stands at approximately 0.354%, placing the issue in the lower quartile for near-term exploitation likelihood.
Root Cause
The root cause is missing or insufficient output encoding and input sanitization in widget-related input handlers. Values accepted from authenticated users are reflected into generated HTML without escaping functions such as esc_html(), esc_attr(), or wp_kses_post(). The absence of contextual encoding allows <script> tags and event handler attributes to render as executable code.
Attack Vector
Exploitation requires network access to the WordPress site and valid credentials with permission to configure or interact with the widget. The attacker submits a crafted payload containing JavaScript into an input field processed by the plugin. The payload is stored in the WordPress database and executed when a privileged user renders the affected page. Technical details and proof-of-concept information are documented in the Patchstack Vulnerability Report.
No verified public exploit code is available for this CVE at the time of writing. The vulnerability mechanism follows the standard stored XSS pattern for WordPress widget plugins.
Detection Methods for CVE-2025-39549
Indicators of Compromise
- Unexpected <script> tags, onerror, or onload attributes stored in WordPress wp_options, wp_postmeta, or widget-related tables.
- New administrator accounts created without a corresponding audit trail in WordPress logs.
- Outbound requests from administrator browsers to unfamiliar domains shortly after visiting plugin configuration pages.
Detection Strategies
- Audit the WordPress database for widget configuration fields containing HTML or JavaScript syntax.
- Review web server access logs for POST requests to admin-ajax.php or widget save endpoints with payloads containing script fragments.
- Enable and monitor Content Security Policy (CSP) violation reports to surface unexpected script execution in administrator sessions.
Monitoring Recommendations
- Alert on modifications to WordPress plugin configuration tables performed by low-privileged accounts.
- Monitor administrator session activity for unexpected privilege changes, user creation, or plugin installation events.
- Integrate WordPress audit logs with a centralized SIEM to correlate widget edits with subsequent administrative actions.
How to Mitigate CVE-2025-39549
Immediate Actions Required
- Identify all WordPress sites running the Most And Least Read Posts Widget plugin and determine whether version 2.5.20 or earlier is installed.
- Update the plugin to a version newer than 2.5.20 once the vendor releases a patched release, or deactivate and remove the plugin if no patched version is available.
- Review and revoke sessions for authenticated users who had the ability to configure the widget during the exposure window.
Patch Information
At the time of publication, the advisory indicates the issue affects versions up to and including 2.5.20. Refer to the Patchstack Vulnerability Report for the most current patch status and vendor remediation guidance.
Workarounds
- Deactivate the most-and-least-read-posts-widget plugin until a fixed version is confirmed.
- Restrict widget and plugin configuration privileges to trusted administrator accounts only.
- Deploy a web application firewall rule to block requests containing script tags in widget-related POST parameters.
- Enforce a strict Content Security Policy that disallows inline scripts within the WordPress admin interface.
# Disable the vulnerable plugin via WP-CLI until a patch is applied
wp plugin deactivate most-and-least-read-posts-widget
wp plugin delete most-and-least-read-posts-widget
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

