W3 Total Cache <= 2.9.3 - Unauthenticated Security Token Exposure via User-Agent Header

2026-04-01 19:07
wesley (wcraft)

Strategic Overview

Status
Patched in 2.9.4
Affected PluginW3 Total Cache
Affected Version<= 2.9.3
CVSS7.5High
CVECVE-2026-5032
View all W3 Total Cache vulnerabilities

Vulnerability Overview

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. With the leaked W3TC_DYNAMIC_SECURITY token, an attacker can craft valid mfunc tags to execute arbitrary PHP code on the server, achieving remote code execution.

Technical Analysis

REMEDIATION: Update to version 2.9.4, or a newer patched version --- IDENTIFIER: CWE-200 (Exposure of Sensitive Information to an Unauthorized Actor) The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.

External References

Vulnerability data © Defiant, Inc., provided under the Wordfence Intelligence T&C