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

7.5
Exposure of Sensitive Information to an Unauthorized Actor
CVE CVE-2026-5032
CVSS 7.5 (High)
Publicly Published April 1, 2026
Last Updated April 3, 2026
Researcher wesley (wcraft)

Description

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.

References

Share

Vulnerability Details for W3 Total Cache

Software Type Plugin
Software Slug w3-total-cache (view on wordpress.org)
Patched? Yes
Remediation Update to version 2.9.4, or a newer patched version
Affected Version
  • <= 2.9.3
Patched Version
  • 2.9.4

Recent vulnerabilities in W3 Total Cache

# Title CVE ID CVSS Researchers Date
1 W3 Total Cache <= 2.10.2 - Unauthenticated Path Traversal CVE-2026-66695 5.3 Mykel Nelson July 31, 2026
2 W3 Total Cache <= 2.9.4 - Unauthenticated Arbitrary File Read via 'f_array[]' Parameter CVE-2026-9282 7.5 snr July 10, 2026
3 W3 Total Cache <= 2.9.4 - Unauthenticated Arbitrary Code Execution CVE-2026-57623 8.1 Ananda Dhakal June 29, 2026
4 W3 Total Cache <= 2.9.1 - Missing Authorization CVE-2026-39595 4.3 Muhammad Sharief March 12, 2026
5 W3 Total Cache <= 2.9.1 - Unauthenticated Arbitrary Code Execution CVE-2026-27384 9.8 CODE WHITE GmbH February 24, 2026
6 W3 Total Cache <= 2.8.12 - Unauthenticated Command Injection CVE-2025-9501 8.1 wesley (wcraft) October 27, 2025
7 W3 Total Cache <= 2.8.1 - Authenticated (Subscriber+) Missing Authorization to Server-Side Request Forgery CVE-2024-12365 8.5 villu164 January 13, 2025
8 W3 Total Cache <= 2.8.1 Missing Authorization to Unauthenticated Plugin Deactivation and Extensions Activation/Deactivation CVE-2024-12006 5.3 villu164 January 13, 2025
9 W3 Total Cache <= 2.8.1 Information Exposure via Log Files CVE-2024-12008 5.3 villu164 January 13, 2025
10 W3 Total Cache <= 2.7.5 - Sensitive Credentials Stored in Plaintext CVE-2023-5359 3.7 Ivan Kuzymchak September 23, 2024

Did you know Wordfence Intelligence provides free personal and commercial API access to our comprehensive WordPress vulnerability database, along with a free webhook integration to stay on top of the latest vulnerabilities added and updated in the database? Get started today!

Learn more

Want to get notified of the latest vulnerabilities that may affect your WordPress site?
Install Wordfence on your site today to get notified immediately if your site is affected by a vulnerability that has been added to our database.

Get Wordfence

The Wordfence Intelligence WordPress vulnerability database is completely free to access and query via API. Please review the documentation on how to access and consume the vulnerability data via API.

Documentation