Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
Lifecycle Timeline
4DescriptionCVE.org
The W3 Total Cache plugin for WordPress is vulnerable to information exposure in all versions up to, and including, 2.9.3. This is due to the plugin bypassing its entire output buffering and processing pipeline when the request's User-Agent header contains "W3 Total Cache", which causes raw mfunc/mclude dynamic fragment HTML comments - including the W3TC_DYNAMIC_SECURITY security token - to be rendered in the page source. This makes it possible for unauthenticated attackers to discover the value of the W3TC_DYNAMIC_SECURITY constant by sending a crafted User-Agent header to any page that contains developer-placed dynamic fragment tags, granted the site has the fragment caching feature enabled.
AnalysisAI
W3 Total Cache plugin for WordPress exposes security tokens to unauthenticated remote attackers through User-Agent header manipulation. Versions up to 2.9.3 bypass output buffering when requests contain 'W3 Total Cache' in the User-Agent, leaking W3TC_DYNAMIC_SECURITY tokens embedded in dynamic fragment HTML comments. With CVSS 7.5 (AV:N/AC:L/PR:N/UI:N) indicating trivial exploitation requiring no authentication, attackers can extract these tokens from any page using fragment caching, enabling potential security bypass or escalation attacks. Patch available in version 2.9.4+ per upstream changeset.
Technical ContextAI
W3 Total Cache is a WordPress performance optimization plugin (CPE: cpe:2.3:a:boldgrid:w3_total_cache) that implements fragment caching through mfunc/mclude dynamic tags and protects these fragments with a W3TC_DYNAMIC_SECURITY constant. The vulnerability (CWE-200: Information Exposure) occurs in the Generic_Plugin.php output buffering logic where the plugin prematurely terminates processing when detecting its own User-Agent string. This implementation flaw causes raw HTML comments containing security tokens to reach the browser unprocessed. The fragment caching feature uses these tokens as authentication mechanisms for rendering dynamic content within cached pages, making token exposure a critical security control failure that undermines the entire dynamic fragment security model.
RemediationAI
Upgrade W3 Total Cache plugin to version 2.9.4 or later, which addresses the User-Agent bypass vulnerability per the upstream changeset at https://plugins.trac.wordpress.org/changeset/3495959/w3-total-cache. WordPress administrators should access the Plugins dashboard and update through the standard update mechanism. As an interim mitigation for sites unable to immediately patch, disable fragment caching functionality through W3 Total Cache settings (Performance > Fragment Cache) to eliminate token exposure risk, though this reduces caching effectiveness. Web application firewalls can be configured to block requests containing 'W3 Total Cache' in User-Agent headers from non-administrative IP ranges. Comprehensive vulnerability details and affected code analysis available at https://www.wordfence.com/threat-intel/vulnerabilities/id/a65eb62d-847b-4f3a-848b-1290e3118c01?source=cve. Post-patching, consider rotating or regenerating W3TC_DYNAMIC_SECURITY constants if prior exposure is suspected.
More in W3 Total Cache
View allThe W3 Total Cache plugin for WordPress is vulnerable to Information Exposure in all versions up to, and including, 2.8.
pub/sns.php in the W3 Total Cache plugin before 0.9.4 for WordPress allows remote attackers to read arbitrary files via
The W3 Total Cache plugin before 0.9.4.1 for WordPress does not properly handle empty nonces, which allows remote attack
The W3 Total Cache WordPress plugin before 2.1.5 was affected by a reflected Cross-Site Scripting (XSS) issue within the
The W3 Total Cache WordPress plugin before 2.1.4 was vulnerable to a reflected Cross-Site Scripting (XSS) security vulne
Unauthenticated arbitrary code execution affects the W3 Total Cache WordPress caching plugin in all versions up to and i
The W3 Total Cache WordPress plugin before 2.1.3 did not sanitise or escape some of its CDN settings, allowing high priv
Cross-site scripting (XSS) vulnerability in the W3 Total Cache plugin before 0.9.4.1 for WordPress, when debug mode is e
Stored Cross-Site Scripting in W3 Total Cache (WordPress plugin) versions up to and including 2.10.5 allows unauthentica
Stored cross-site scripting in W3 Total Cache WordPress plugin (all versions through 2.10.3) allows unauthenticated atta
Path traversal in W3 Total Cache WordPress plugin (versions ≤ 2.10.2) enables remote unauthenticated attackers to manipu
W3 Total Cache for WordPress (versions through 2.9.1) exposes Author-role users to administrative plugin functions due t
Same weakness CWE-200 – Information Exposure
View allSame technique Information Disclosure
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-18136