Autoptimize, Clearfy Cache, and Speed Optimizer Plugin Vulnerability (CVE-2026-3220)

On this page

Security Alert Summary

The Autoptimize, Clearfy Cache, and Speed Optimizer WordPress plugins are affected by an unauthenticated stored Cross-Site Scripting (XSS) vulnerability (CVE-2026-3220). The issue stems from a predictable replacement hash used during HTML minification combined with a regular expression, which can let an attacker inject arbitrary HTML attributes into the final rendered HTML by anticipating the placeholder format.

CVE Details

  • CVE ID: CVE-2026-3220
  • Affected components: Autoptimize WordPress plugin; Clearfy Cache WordPress plugin; Speed Optimizer WordPress plugin
  • Affected versions: Autoptimize before 3.1.15; Clearfy Cache before 2.4.2; Speed Optimizer before 7.7.9
  • Published: May 18, 2026 at 07:16:12 AM
  • Last modified: May 18, 2026 at 03:16:25 PM
  • CVSS v3.1: Base Score 8.8, Severity HIGH, Vector String: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
  • Authentication / privileges / user interaction: Privileges Required: NONE; User Interaction: REQUIRED; Attack Vector: NETWORK; Attack Complexity: LOW; Scope: UNCHANGED
  • Primary impacts: Confidentiality: HIGH; Integrity: HIGH; Availability: HIGH
  • CWE: CWE-79 (Improper Neutralization of Input During Web Page Generation)

Technical Details

The vulnerability is a stored XSS that occurs during the HTML minification process used by the affected plugins. A predictable replacement hash and a regular expression used to protect or reinsert content during minification can be anticipated by an attacker. By predicting the placeholder format, an attacker can craft input that results in arbitrary HTML attributes being injected into the final HTML output when the placeholder is replaced.

Because the issue is unauthenticated and stored, the malicious input can be saved by the site (for example in a post, comment, or other content area processed by the minifier) and later rendered to visitors. The core weakness is the predictable placeholder/hash approach combined with insufficient validation of the replaced content, which permits attribute injection leading to XSS in the rendered page.

How This Could Impact Your Website

Consider a site with a site owner, internal staff who publish content, and external contributors or contractors who submit content. If a contributor submits content that is processed by the affected minification routine, an attacker could store payloads that inject attributes into rendered HTML. When other users or visitors load the affected pages, those injected attributes could trigger execution in their browsers, potentially exposing session-related data visible to client-side scripts or enabling unwanted client-side behavior.

Practical consequences include exposure of internal user email addresses listed on pages or in author metadata, and an increased risk of targeted phishing or social engineering campaigns against staff who see or manage the affected content. If you’re unsure whether your site is affected or how to assess your current user roles and plugins, it may be worth having a professional review.

Recommended Actions

  • Update the affected plugin as soon as a patched version is available.
  • Review and reduce unnecessary user roles, especially contributor-level accounts that can submit content.
  • Enforce strong passwords and enable two-factor authentication for editors and administrators.
  • Remove unused or unmaintained plugins that increase your attack surface.
  • Monitor site activity and logs for unusual behavior, such as unexpected content changes or new stored inputs that contain HTML-like patterns.

If you’d like help reviewing your plugins, user roles, or overall WordPress security posture, our team at Freshy is happy to help.


References