| Nombre del plugin | Download Manager |
|---|---|
| Tipo de vulnerabilidad | Scripting entre sitios (XSS) |
| Número CVE | CVE-2026-1666 |
| Urgencia | Medio |
| Fecha de publicación de CVE | 2026-02-18 |
| URL de origen | CVE-2026-1666 |
Urgent: CVE-2026-1666 — Reflected XSS in WordPress Download Manager (≤ 3.3.46) — What Site Owners Must Do Now
TL;DR
A reflected Cross‑Site Scripting (XSS) vulnerability (CVE‑2026‑1666) affects the WordPress Download Manager plugin versions ≤ 3.3.46. The flaw is triggered via the redirect_to parameter. A third‑party CVSS assessment rates this at 7.1 (Medium). A fixed release, 3.3.47, is available and should be installed immediately.
If you cannot update immediately, implement virtual patching via a WAF rule to block malicious payloads in redirect_to, strengthen headers and input validation (for example, a restrictive Content Security Policy), scan for indicators of compromise, and review logs for suspicious requests. This advisory explains the vulnerability, exploitation scenarios, detection and remediation steps, and example WAF rules for immediate mitigation.
Antecedentes — qué sucedió y por qué es importante
On 2026‑02‑18 a reflected XSS vulnerability (CVE‑2026‑1666) in the popular Download Manager plugin was disclosed. Root cause: the plugin accepts a redirect_to parameter and reflects it back into an HTTP response without proper validation or output encoding, allowing an attacker to craft a URL that injects script into a victim’s browser when visited.
Por qué esto es importante:
- The vulnerability is exploitable without authentication; an attacker only needs a victim to click a malicious link.
- Reflected XSS can enable theft of session cookies, CSRF tokens, forced redirects to phishing domains, or execution of arbitrary JavaScript in your site’s context.
- Attackers often target high‑privilege users (administrators, editors) to escalate access after initial compromise.
El autor del plugin lanzó la versión 3.3.47 with a fix. Many sites delay updates — attackers move faster. Virtual patching and monitoring are essential while you update.
Technical summary (what the vulnerability actually does)
- Vulnerable versions: Download Manager plugin ≤ 3.3.46
- Fixed in: 3.3.47
- Tipo: Cross‑Site Scripting (XSS) reflejado
- CVE: CVE‑2026‑1666
- CVSS: 7.1 (AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L)
- Origin: unsanitised reflection of
redirect_toparameter in an HTTP response - Exploitation: crafted URL containing script payload in
redirect_to— victim visits the URL and payload executes in their browser context
Example attack vector:
https://example.com/?redirect_to=<payload>
Si el plugin refleja el redirect_to value into a page without encoding, the browser executes injected JavaScript.
Example proof of concept (PoC) — what attackers might use
Below is a sanitized example payload for defensive testing only — do not use against sites without explicit authorization.
https://your-site.example/?redirect_to=%3Cscript%3Ealert%28%27xss%27%29%3C%2Fscript%3E
URL‑decoded form:
https://your-site.example/?redirect_to=<script></script>
When the vulnerable plugin reflects the parameter without encoding, the script executes in the visitor’s browser. Real attackers will obfuscate payloads and combine with social engineering to target privileged users.
Real‑world impact and exploitation scenarios
- Stealing authentication cookies or tokens: a logged‑in admin clicking a malicious link can expose session cookies unless protected (HttpOnly/SameSite).
- Unauthorized actions via CSRF combined with XSS: attacker runs JavaScript that performs actions in the admin UI under the admin’s session.
- Credential capture: a fake login overlay can be presented to capture credentials and forward them to an attacker server.
- Forced redirects: attackers can redirect users to drive‑by downloads or malicious domains.
- Content injection: modify page HTML to insert ads, defacement or persistent javascript backdoors.
Because this is reflected XSS, an attacker must convince a victim to follow a crafted link — targeting high‑privilege users increases the risk of severe impact.
Detection — how to find if you were targeted or exploited
-
Registros de acceso / servidor web
Look for requests with suspiciousredirect_tovalues. Search for URL-encoded script markers such as%3Cscript,javascript:,onerror=,<svg, or long encoded strings.grep -i "redirect_to" /var/log/apache2/access.log | egrep "%3Cscript| -
WAF / firewall logs
Check for blocked requests containing XSS signatures againstredirect_toor similar parameters. -
Application/plugin logs
Review any plugin-specific logs for anomalous redirect attempts or unexpected input values. -
Browser reports / admin complaints
If admins report popups, unexpected redirects, or altered pages, investigate those sessions immediately. -
File system and database scans
Run malware scans to detect injected files, backdoors, or modified theme/plugin files. -
User sessions
Inspect active sessions for unusual logins; consider invalidating sessions if compromise is suspected.
Immediate mitigation steps (what to do right now)
- Update the plugin. Primary action: update Download Manager to 3.3.47 or later immediately. This fixes the underlying code issue.
-
If you cannot update immediately — virtual patching. Deploy targeted WAF rules to block suspicious payloads in
redirect_to(examples below). Configure rules to challenge or block requests containing script tags,javascript:URIs, event handlers, or encoded equivalents. -
Harden session cookies. Ensure cookies are set with
HttpOnly,Secure, andSameSite=StrictorLaxto reduce theft via script. -
Implement Content Security Policy (CSP). Add a restrictive CSP to limit where scripts can be loaded/executed. Example:
Content-Security-Policy: default-src 'self'; script-src 'self'; object-src 'none'; base-uri 'self';Note: CSP requires testing as it can break legitimate functionality if too strict.
-
Scan and monitor. Run a full site malware scan. Monitor logs and set alerts for repeated attempts with
redirect_toor XSS patterns. - Communicate internally. Notify site administrators and operations teams about the vulnerability and the actions taken. Avoid public disclosure of technical details until mitigations are in place.
- Consider temporary access changes. If you suspect admin accounts were exposed, rotate passwords, invalidate sessions and enforce 2‑factor authentication for admin users.
WAF rules and virtual patching — ready‑to‑use examples
Example rules to add to your WAF or server config. Test in detection/log mode first before blocking in production.
ModSecurity example (detection mode recommended first)
# Block obvious script tags inside "redirect_to" parameter (URL encoded or raw)
SecRule ARGS:redirect_to "@rx (?i)(%3Cscript|
Nginx (ngx_http_rewrite_module) example
if ($arg_redirect_to ~* "(%3Cscript|
WordPress-level pseudo-rule (use in a custom mu-plugin or site-specific plugin)
add_action('init','block_malicious_redirect');
function block_malicious_redirect() {
if ( isset($_REQUEST['redirect_to']) ) {
$r = urldecode($_REQUEST['redirect_to']);
if ( preg_match('/(
Advanced ideas:
- Normalize and decode parameter before applying regex.
- Block long base64 or long encoded payloads that are rarely legitimate in redirect URLs.
- Rate limit repeated attempts from the same IP address.
Important: Avoid overly broad rules that block legitimate redirect URLs. Start in logging/detection mode to tune false positives before enforcing blocks.
Incident response checklist (if you suspect exploitation)
- Isolate and contain: Enable stricter WAF rules. Temporarily disable the plugin if updating is not immediate and doing so will not break critical functionality.
- Assess scope: Check for new admin users, changed content, and modified files. Review recent admin activity.
- Revoke and rotate: Force password resets for admin accounts, revoke stale API keys and invalidate sessions for high‑risk accounts.
- Clean and restore: Remove malicious files and revert altered files from trusted backups. Consider restoring from a known good backup if compromise is extensive.
- Report and document: Keep records of indicators, logs and remediation steps for compliance or legal needs.
- Post‑mortem & improvement: Identify gaps and implement longer‑term mitigations (CSP, secure headers, stricter update workflows).
Hardening checklist — reduce XSS exposure across WordPress
- Keep WordPress core, themes and plugins up to date.
- Enforce least privilege: grant admin capabilities only to those who need them.
- Use strong, unique passwords and enforce 2‑factor authentication for admin users.
- Harden cookies: set
HttpOnly,SecureandSameSiteattributes. - Use Content Security Policy to mitigate script execution from untrusted origins.
- Sanitize and encode user input in custom plugins/themes: never reflect raw input into HTML.
- Audit third‑party plugins for security posture and update cadence before installing.
- Schedule regular vulnerability scans and site integrity checks.
How a modern WAF helps
A Web Application Firewall provides rapid, effective mitigation while you apply permanent fixes:
- Virtual patching: WAF rules block exploitation attempts at the edge, buying time to update or test patches.
- Behavioural detection: Advanced rules can catch obfuscated payloads, encoded payloads, polyglots and event handlers.
- Fine‑grained policies: Apply rules to specific paths/parameters (for example, block
redirect_tocontaining suspicious patterns). - Logging and alerting: WAF logs provide indicators of active exploitation attempts, including geolocation and frequency.
- Progressive enforcement: Apply rules in monitor mode to tune false positives, then escalate to challenge or block.
If you operate a WAF, configure a targeted rule for this vulnerability with progressive enforcement: monitor → challenge (CAPTCHA) → block.
Developer guidance — how plugin authors should fix this class of bug
-
Never reflect raw parameters into HTML or JavaScript without encoding.
Use appropriate escaping functions for HTML, attributes and JavaScript contexts. For WordPress, useesc_html(),esc_attr(),esc_url(),wp_kses_post()as appropriate. -
Validate redirects strictly.
When acceptingredirect_to, ensure it only redirects to whitelisted internal paths or domains. Only allow relative paths or URLs that match the site’s hostname; disallowjavascript:anddata:schemes. -
Avoid unsafe output contexts.
Do not place untrusted input inside<script>tags or event handler attributes. -
Sanitise and canonicalise input.
Decode input, then validate against expected formats. -
Use automated testing.
Include XSS tests and input fuzzing in CI pipelines. -
Follow OWASP guidelines.
Apply least privilege and treat all input as untrusted.
Detection signatures and SIEM rules (for deeper logging)
Add these patterns to SIEM or log monitoring to create alerts:
- Regex for URL‑encoded script tags:
%3Cscript|%3Csvg|%3Ciframe|%3Cimg|%3Con|%3Csvg - Unsafe URI schemes:
javascript:|data:|vbscript: - Event handler attributes:
onload=|onerror=|onclick=|onmouseover= - Long, high‑entropy parameters (possible obfuscated payloads): alert if
redirect_tolength > 200 or contains high entropy
SIEM rule pseudocode:
IF request.param.name == "redirect_to" AND (
matches(request.param.value, "%3Cscript|