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. This requires HTML Minify to be enabled with the default 'mfunc' entry present in the ignored-comment stems list, and exploitation depends on the attacker predicting the md5(time()) placeholder namespace by reading the server clock via the HTTP Date response header within the applicable time window.
Published: 2026-10-31
Score: 5.4 Medium
EPSS: n/a
KEV: No
Impact: Stored Cross‑Site Scripting (XSS)
Action: Immediate Patch
AI Analysis

Impact

The vulnerability allows an unauthenticated attacker to embed arbitrary JavaScript in a comment, which is later stored by the WordPress plugin and rendered through the HTML minifier. Because the minifier replaces placeholders using an md5(time()) namespace that can be predicted through the HTTP Date header, the attacker can craft a comment that survives sanitization and is executed in any browser that views the page. This can lead to theft of session cookies, defacement, or other client‑side attacks.

Affected Systems

The flaw exists in the W3 Total Cache plugin for WordPress (BoldGrid) for all releases up to and including 2.10.7. Any WordPress site that has this plugin installed and either uses the default ignored‑comment stems list or has HTML Minify enabled is susceptible.

Risk and Exploitability

The CVSS score of 5.4 indicates moderate severity. There is no EPSS data available and the vulnerability is not listed in the CISA KEV catalog. Exploitation requires the ability to post an unauthenticated comment and to predict the placeholder namespace, which can be done by reading the server’s HTTP Date header within the relevant time window. Thus the attack is feasible on sites that expose the comment interface to the public and have Minify enabled.

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

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the W3 Total Cache plugin to 2.10.8 or a later patch release that removes the vulnerable placeholder logic.
  • If upgrading is not immediately possible, disable the HTML Minify feature or modify the ignored‑comment stems list to remove the default 'mfunc' entry that allows scripts to survive the minification process.
  • Deploy input validation or a web application firewall rule to strip or neutralize JavaScript from user‑submitted comment content before storage.

Generated by OpenCVE AI on October 31, 2026 at 08:27 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. This requires HTML Minify to be enabled with the default 'mfunc' entry present in the ignored-comment stems list, and exploitation depends on the attacker predicting the md5(time()) placeholder namespace by reading the server clock via the HTTP Date response header within the applicable time window.
Title W3 Total Cache <= 2.10.7 - Unauthenticated Stored Cross-Site Scripting via Comment Content via Predictable Minify Placeholder
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 5.4, 'vector': 'CVSS:3.1/AV:N/AC:H/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:16.137Z

Reserved: 2026-10-30T18:04:06.025Z

Link: CVE-2026-120019

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

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

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

Link: CVE-2026-120019

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')