CVE-2026-18109

W3 Total Cache <= 2.10.3 - Unauthenticated Stored Cross-Site Scripting via Comment Author Name

Published Aug 14, 2026 CVSS 3.1 · 7.2 High EPSS < 1% KEV · Not listed
Description
The W3 Total Cache plugin for WordPress is vulnerable to Stored Cross-Site Scripting via Comment Author Name in all versions up to, and including, 2.10.3 due to insufficient input sanitization and output escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. This vulnerability is only exploitable when the Lazy Load Images feature of W3 Total Cache is enabled, as the unsafe re-emission occurs exclusively within the LazyLoad mutator's img tag rewriting step.

Analysis

AI-generated

Technical impact

The vulnerability exists because the plugin does not properly sanitize or escape the comment author name input. The stored comment data is later reused during the Lazy Load images processing, allowing an attacker to inject arbitrary JavaScript. Unauthenticated users can submit a malicious comment, and any visitor to the affected page will execute the injected script, enabling defacement, cookie theft or execution of arbitrary code in the attacker’s browser context.

Affected Systems

This flaw affects the BoldGrid W3 Total Cache WordPress plugin versions up to and including 2.10.3. Any WordPress site that has installed one of those releases and has the Lazy Load Images feature turned on is vulnerable. The issue does not affect other plugins or core WordPress.

Risk and Exploitability

The CVSS score of 7.2 reflects a high risk impact. The EPSS is not available, but the vulnerability is not listed in the CISA KEV catalog. Exploitation requires only an unauthenticated comment submission and the Lazy Load feature, making it relatively easy to trigger. Once exploited, the script runs in the context of any user who views the page, potentially giving attackers the ability to perform client‑side attacks such as session hijacking or site defacement.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest available update for W3 Total Cache to version 2.10.4 or newer, which removes the insecure code path.
  • If an update is not possible immediately, disable the Lazy Load Images feature in the plugin settings to prevent the unsafe re‑emission of comment data.
  • Configure comment moderation or implement server‑side filtering to remove or neutralize suspicious characters in comment author names before storage.
  • Continuously monitor the site for unusual script injection patterns in comments and consider disabling or replacing the plugin if it cannot be updated in a timely manner.

Generated by OpenCVE AI on August 14, 2026 at 04:23 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Boldgrid
Boldgrid w3 Total Cache
Wordpress
Wordpress wordpress
Vendors & Products Boldgrid
Boldgrid w3 Total Cache
Wordpress
Wordpress wordpress
Type Values Removed Values Added
Description The W3 Total Cache plugin for WordPress is vulnerable to Stored Cross-Site Scripting via Comment Author Name in all versions up to, and including, 2.10.3 due to insufficient input sanitization and output escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. This vulnerability is only exploitable when the Lazy Load Images feature of W3 Total Cache is enabled, as the unsafe re-emission occurs exclusively within the LazyLoad mutator's img tag rewriting step.
Title W3 Total Cache <= 2.10.3 - Unauthenticated Stored Cross-Site Scripting via Comment Author Name
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 7.2, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N'}

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
Wordfence
Published
Updated
Aug 14, 2026, 10:45 AM
Reserved
Jul 28, 2026, 5:58 PM
Status
Deferred
Published
Aug 14, 2026, 3:16 AM
Modified
Aug 14, 2026, 7:09 PM