Description
The W3 Total Cache plugin for WordPress is vulnerable to Stored Cross-Site Scripting via Comment Content via Output-Buffer Regex Rewrite in all versions up to, and including, 2.10.6 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 'Remove query strings from static resources' option is enabled in W3 Total Cache, as mutate_url() must strip the '?' delimiter and everything following it — including the closing quote of the outer attribute — to break the attribute boundary.
Published: 2026-10-02
Score: 7.2 High
EPSS: < 1% Very Low
KEV: No
Impact: Stored Cross‑Site Scripting via comment content
Action: Patch Now
AI Analysis

Impact

The vulnerability is a stored XSS flaw in the W3 Total Cache WordPress plugin caused by insufficient sanitization and escaping of comment content processed by the output‑buffer regex rewrite. Unauthenticated users can insert malicious scripts into comments, and those scripts are stored and executed every time the comment is rendered on a page. The flaw is the only known way for an attacker to inject code under the affected plugin configuration.

Affected Systems

The issue affects the BoldGrid W3 Total Cache plugin for WordPress versions up to and including 2.10.6. Any WordPress site running those vulnerable releases is at risk.

Risk and Exploitability

The CVSS score of 7.2 indicates a high impact with potential for widespread compromise of visitor browsers once the comment is displayed. Although the EPSS score is not available, the flaw can be exploited by unauthenticated users due to the plugin setting 'Remove query strings from static resources' being enabled; this option triggers the regex rewrite that allows the attribute boundary to be broken. The vulnerability is not listed in CISA KEV, but an attacker can still easily insert malicious payloads in free or public sites.

Generated by OpenCVE AI on October 2, 2026 at 10:22 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update W3 Total Cache to version 2.10.7 or newer to remove the flaw.
  • If an immediate update is not possible, disable the 'Remove query strings from static resources' option in the plugin’s settings to prevent the regex from rewrit­ing URLs in a way that allows script injection.
  • Delete any existing comments that contain suspicious or malicious content.

Generated by OpenCVE AI on October 2, 2026 at 10:22 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 02 Oct 2026 15:15:00 +0000

Type Values Removed Values Added
First Time appeared Boldgrid
Boldgrid w3 Total Cache
Wordpress-extensions
Wordpress-extensions w3 Total Cache
Vendors & Products Boldgrid
Boldgrid w3 Total Cache
Wordpress-extensions
Wordpress-extensions w3 Total Cache

Fri, 02 Oct 2026 09:30:00 +0000

Type Values Removed Values Added
Description The W3 Total Cache plugin for WordPress is vulnerable to Stored Cross-Site Scripting via Comment Content via Output-Buffer Regex Rewrite in all versions up to, and including, 2.10.6 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 'Remove query strings from static resources' option is enabled in W3 Total Cache, as mutate_url() must strip the '?' delimiter and everything following it — including the closing quote of the outer attribute — to break the attribute boundary.
Title W3 Total Cache <= 2.10.6 - Unauthenticated Stored Cross-Site Scripting via Comment Content
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

Boldgrid W3 Total Cache
Wordpress-extensions W3 Total Cache
cve-icon MITRE

Status: PUBLISHED

Assigner: Wordfence

Published:

Updated: 2026-10-02T09:25:56.153Z

Reserved: 2026-09-09T16:02:41.405Z

Link: CVE-2026-87920

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Deferred

Published: 2026-10-02T10:17:08.857

Modified: 2026-10-02T13:18:55.613

Link: CVE-2026-87920

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-02T14:45:14Z

Weaknesses
  • CWE-79

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