CVE-2026-5032CWE-200

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

High · published April 2, 2026

CVSS v3.1
7.5
EPSS
3%
Percentile
85.6
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
7.5 · HIGH
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
CVSS v4.0
Not supplied
EPSS
0.02659 · 85.6th percentile
Weakness
CWE-200 · Exposure of Sensitive Information to an Unauthorized Actor
Published
2026-04-02T07:39Z
EPSS history
Timeline
  • 02 APR 07:39Z
    W3 Total Cache <= 2.9.3 - Unauthenticated Security Token Exposure via User-Agent Header
    cvelistv5