CVE-2026-1666 Overview
The Download Manager plugin for WordPress is vulnerable to Reflected Cross-Site Scripting (XSS) via the redirect_to parameter in all versions up to, and including, 3.3.46. This vulnerability stems from insufficient input sanitization and output escaping on the redirect_to GET parameter in the login form shortcode. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that execute if they can successfully trick a user into performing an action such as clicking on a malicious link.
Critical Impact
Unauthenticated attackers can inject malicious JavaScript code that executes in the context of a victim's browser session, potentially leading to session hijacking, credential theft, or unauthorized actions on behalf of authenticated WordPress users.
Affected Products
- WordPress Download Manager Plugin versions up to and including 3.3.46
- WordPress sites using the [wpdm_login_form] shortcode
Discovery Timeline
- 2026-02-18 - CVE-2026-1666 published to NVD
- 2026-02-18 - Last updated in NVD database
Technical Details for CVE-2026-1666
Vulnerability Analysis
This Reflected Cross-Site Scripting vulnerability exists in the WordPress Download Manager plugin's login form functionality. The vulnerability is classified under CWE-79 (Improper Neutralization of Input During Web Page Generation). The attack requires user interaction—specifically, a victim must click a crafted malicious link—but can be executed by unauthenticated attackers over the network.
The vulnerability allows attackers to inject scripts that execute in the victim's browser with the same privileges as the logged-in user. In a WordPress context, this could allow attackers to perform administrative actions, steal session cookies, modify content, or redirect users to malicious sites.
Root Cause
The root cause of this vulnerability is insufficient input sanitization and output escaping in the redirect_to GET parameter handling within the login form shortcode implementation. According to the WordPress Download Manager Login Code, the parameter value is not properly sanitized before being reflected back to the page, allowing malicious scripts to be injected and executed.
Attack Vector
The attack vector involves crafting a malicious URL that includes JavaScript code in the redirect_to parameter. When a victim clicks this link, the plugin renders the login form with the unsanitized parameter value, causing the injected script to execute in the victim's browser. This is a network-based attack that requires no authentication but does require user interaction (clicking a malicious link).
An attacker would typically distribute the malicious URL through phishing emails, social media, or compromised websites. When a user visits the crafted URL, the JavaScript payload executes within the context of the WordPress site, potentially allowing the attacker to steal session cookies, perform actions as the authenticated user, or redirect the user to a phishing page.
Detection Methods for CVE-2026-1666
Indicators of Compromise
- Unusual URL patterns in web server logs containing the redirect_to parameter with encoded JavaScript payloads (e.g., %3Cscript%3E or javascript:)
- Reports from users about unexpected redirects or browser behavior when accessing login pages
- Web Application Firewall (WAF) alerts for XSS patterns in request parameters
Detection Strategies
- Implement WAF rules to detect and block requests containing XSS patterns in the redirect_to parameter
- Review WordPress plugin versions using wp-cli plugin list command and flag installations of Download Manager 3.3.46 or earlier
- Configure web server access logs to alert on suspicious URL encoding patterns commonly associated with XSS attacks
Monitoring Recommendations
- Enable detailed access logging on WordPress sites and monitor for requests containing suspicious JavaScript patterns in query parameters
- Deploy browser-based Content Security Policy (CSP) violation reporting to detect script injection attempts
- Regularly audit installed WordPress plugins for known vulnerabilities using security scanning tools
How to Mitigate CVE-2026-1666
Immediate Actions Required
- Update the WordPress Download Manager plugin to the latest patched version immediately
- Review web server logs for evidence of exploitation attempts targeting the redirect_to parameter
- Implement Content Security Policy headers to mitigate the impact of successful XSS attacks
Patch Information
The vulnerability was addressed in versions released after 3.3.46. The fix involves proper sanitization and escaping of the redirect_to parameter before it is rendered in the login form output. The patch details can be reviewed in the WordPress Changeset Comparison. Additional vulnerability details are available in the Wordfence Vulnerability Report.
Workarounds
- If immediate patching is not possible, consider temporarily disabling the Download Manager plugin or removing the [wpdm_login_form] shortcode from pages until the update can be applied
- Deploy a Web Application Firewall rule to filter requests containing potentially malicious content in the redirect_to parameter
- Implement strict Content Security Policy headers with script-src 'self' to prevent inline script execution
# WordPress plugin update command
wp plugin update download-manager
# Verify plugin version after update
wp plugin list --name=download-manager --format=table
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.


