CVE-2025-32561 Overview
CVE-2025-32561 is a reflected cross-site scripting (XSS) vulnerability in the WP_DEBUG Toggle WordPress plugin developed by plugins.club. The flaw affects all versions of enable-wp-debug-toggle from initial release through version 1.1. The plugin fails to properly neutralize user-supplied input during web page generation, allowing attackers to inject malicious scripts that execute in the victim's browser. Exploitation requires user interaction, typically by tricking an authenticated administrator into clicking a crafted link. Successful exploitation can lead to session hijacking, credential theft, or arbitrary actions performed under the targeted user's privileges. The vulnerability is classified under [CWE-79].
Critical Impact
Attackers can execute arbitrary JavaScript in an administrator's browser, leading to account takeover or persistent site compromise through privileged actions.
Affected Products
- plugins.club WP_DEBUG Toggle plugin (enable-wp-debug-toggle) versions through 1.1
- WordPress installations with the vulnerable plugin activated
- Administrative sessions interacting with crafted plugin URLs
Discovery Timeline
- 2025-04-17 - CVE-2025-32561 published to NVD
- 2026-04-23 - Last updated in NVD database
Technical Details for CVE-2025-32561
Vulnerability Analysis
The WP_DEBUG Toggle plugin provides administrators with a convenient interface to toggle WordPress debug mode without editing wp-config.php directly. The vulnerability stems from improper sanitization of input parameters reflected back into HTTP responses generated by the plugin. An attacker crafts a URL containing JavaScript payloads in vulnerable parameters. When a logged-in WordPress administrator clicks this link, the payload executes in the context of the WordPress admin domain. The reflected nature of the XSS means the payload is delivered through the request and immediately echoed in the response without persistent storage.
Root Cause
The root cause is the absence of proper output encoding and input validation in the plugin's request-handling logic. User-controlled values flow from HTTP request parameters into HTML output without escaping functions such as esc_html(), esc_attr(), or wp_kses(). This violates the WordPress secure coding guidelines for plugin development and aligns with [CWE-79] weaknesses.
Attack Vector
The attack is network-based and requires user interaction. An attacker delivers a crafted link through phishing email, social engineering, or a malicious referrer. When a WordPress administrator with the plugin installed clicks the link, the injected script executes in their browser session. The scope change indicates the payload can affect resources beyond the vulnerable component, including the WordPress admin context. Attackers can leverage this to steal authentication cookies, perform CSRF actions, install backdoors, or pivot to further plugin or theme compromise.
No verified public proof-of-concept code is available. See the Patchstack Vulnerability Report for additional technical context.
Detection Methods for CVE-2025-32561
Indicators of Compromise
- HTTP requests to WordPress admin URLs containing enable-wp-debug-toggle parameters with <script>, javascript:, or HTML event handlers such as onerror= or onload=
- Unusual outbound requests from administrator browser sessions immediately after visiting plugin pages
- Unexpected plugin installations, user role changes, or modifications to wp-config.php following admin session activity
Detection Strategies
- Inspect web server access logs for query strings targeting the enable-wp-debug-toggle plugin paths with encoded or raw script tags
- Deploy a Web Application Firewall (WAF) rule that flags reflected parameter values containing JavaScript syntax in WordPress admin requests
- Correlate referrer headers pointing to external domains with WordPress admin actions to identify potential phishing-driven exploitation
Monitoring Recommendations
- Enable WordPress audit logging to track administrator session activity, plugin changes, and user account modifications
- Monitor browser security events such as Content Security Policy (CSP) violations originating from WordPress admin domains
- Track the installed version of enable-wp-debug-toggle across managed WordPress sites and alert on versions at or below 1.1
How to Mitigate CVE-2025-32561
Immediate Actions Required
- Deactivate and remove the WP_DEBUG Toggle plugin until a patched release is verified by the vendor
- Force password resets and invalidate active sessions for all WordPress administrator accounts
- Review installed plugins, themes, and user accounts for unauthorized changes that may indicate prior exploitation
Patch Information
At the time of NVD publication, the vendor advisory referenced in the Patchstack Vulnerability Report indicates the issue affects versions through 1.1. Administrators should monitor the plugin repository for an updated release and apply it immediately when published.
Workarounds
- Restrict WordPress admin access using IP allowlisting at the web server or firewall layer to limit exposure to crafted links
- Implement a strict Content Security Policy (CSP) that blocks inline script execution within the /wp-admin/ path
- Train administrators to avoid clicking unverified links targeting WordPress admin endpoints, particularly those received via email or chat
# Example: remove the vulnerable plugin via WP-CLI
wp plugin deactivate enable-wp-debug-toggle
wp plugin uninstall enable-wp-debug-toggle
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

