Description
The W3 Total Cache plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'comment' parameter in all versions up to, and including, 2.10.7 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. Exploitation requires that a Pro license was previously active with REST caching enabled and has since become inactive while Disk Enhanced page caching remains configured, and that the attacker holds a previously approved commenter identity.
Published: 2026-10-31
Score: 7.2 High
EPSS: n/a
KEV: No
Impact: Stored XSS allowing arbitrary script execution on cached pages
Action: Immediate Patch
AI Analysis

Impact

The W3 Total Cache plugin contains a stored cross‑site scripting flaw that arises when user content submitted through the comment form is cached as HTML after a Pro license expires. Because the plugin fails to sanitize the comment field and does not escape the output before storing it in disk‑based page cache, an attacker can persist arbitrary JavaScript. When any visitor loads the affected page, the embedded script runs with the privileges of that page, enabling data exfiltration or session hijacking. This injection is a classic stored XSS vulnerability (CWE‑79).

Affected Systems

The flaw affects every installation of the W3 Total Cache WordPress plugin with a version number of 2.10.7 or earlier. It requires that the site had previously enabled REST caching under a Pro license, that license has subsequently expired or been removed, and that Disk Enhanced page caching remains active. The vulnerability is therefore limited to sites using the Pro edition and retaining the enhanced caching option, though the patched fix applies to all affected releases.

Risk and Exploitability

The overall CVSS score is 7.2, classifying it as high severity, but the EPSS score is unavailable, making it difficult to gauge current exploitation probability. The vulnerability can be exploited by any unauthenticated commenter who has been granted an approved commenter identity via the plugin’s moderation workflow. Once injected data is cached, every subsequent visitor to the affected page will execute the script, amplifying the impact. Because the attack does not require privileged credentials and only relies on a cached comment entry, the risk is significant for any site that satisfies the prerequisite conditions. The vulnerability is not yet listed in CISA’s KEV catalog, so there is no known mass exploitation but that may change as the flaw becomes publicly known.

Generated by OpenCVE AI on October 31, 2026 at 08:29 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade W3 Total Cache to the newest release (2.10.8 or later) where the issue is fixed.
  • If an upgrade is not feasible, disable Disk Enhanced page caching to prevent malicious content from being served from the disk cache.
  • Restrict comment posting to authenticated users only or configure comment moderation to require manual approval before comments are stored.

Generated by OpenCVE AI on October 31, 2026 at 08:29 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sat, 31 Oct 2026 07:00:00 +0000

Type Values Removed Values Added
Description The W3 Total Cache plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'comment' parameter in all versions up to, and including, 2.10.7 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. Exploitation requires that a Pro license was previously active with REST caching enabled and has since become inactive while Disk Enhanced page caching remains configured, and that the attacker holds a previously approved commenter identity.
Title W3 Total Cache <= 2.10.7 - Unauthenticated Stored Cross-Site Scripting via Comment Content Cached as HTML after License Expiry
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'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: Wordfence

Published:

Updated: 2026-10-31T06:44:13.577Z

Reserved: 2026-10-15T18:50:32.637Z

Link: CVE-2026-111254

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-31T07:16:34.987

Modified: 2026-10-31T07:16:34.987

Link: CVE-2026-111254

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-31T08:30:13Z

Weaknesses
  • CWE-79

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