Skip to content

W3 Total Cache

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

CVE-2026-5032Published 2 Apr 2026, 07:39 UTC

Real-world risk

8.0/ 10High

Patch this week; within 48 h if Internet-facing

PreliminaryFrom the CVSS vector only · confidence low

CVSS

7.5

scored by the vendor (CNA), CVSS 3.1

In plain words

No plain-language summary yet. The original description is below.

Original description (from Wordfence)

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.

Am I affected?

ProductAffected versions (from the sources)Fixed in
W3 Total CacheNiche<= 2.9.3—

What to do

Check the vendor advisory in the references below for fixed versions and workarounds.

Why this score

FactorValueEvidence×
ImpactMajor data exposureReads secrets, credentials, databases, arbitrary filesFrom the CVSS vector0.80
Attacker positionInternetAnyone on the Internet can reach a typical deploymentFrom the CVSS vector1.00
Privileges neededNoneNo accountFrom the CVSS vector1.00
Victim interactionNoneNothingFrom the CVSS vector1.00
ConfigurationDefaultOut-of-the-box installs are vulnerableFrom the CVSS vector1.00
ReliabilityReliableDeterministic: injection, logic bug, path traversalFrom the CVSS vector1.00

Threat level T4: Weaponized (× 1.00)

A Metasploit module, a Nuclei template, or a verified Exploit-DB entry

  • Nuclei scanner template (link)

EPSS 3.3% chance of exploitation in 30 days (percentile 89), as of 2026-12-02.

The arithmetic
  1. Prerequisites multiplied together1.000
  2. Threat T4: Weaponized1.000
  3. 10 × impact 0.8 × prerequisites 1 × threat 18.000
  4. Rounded to one decimal between 0.1 and 108.0

How the score works

Exploitation and evidence timeline

  1. 2 Apr 2026 Published
  2. 3 Dec 2026 Nuclei scanner template first seen
  3. 3 Dec 2026 Risk 8.0 (cvss fallback)

Weakness

CWE-200

References

Get alerts for W3 Total Cache

Free email or text alerts when a vulnerability in W3 Total Cache reaches risk 8 or higher. Nothing else.