CVE-2026-5032 PUBLISHED

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

Assigner: Wordfence
Reserved: 27.03.2026 Published: 02.04.2026 Updated: 02.04.2026

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.

Metrics

CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
CVSS Score: 7.5

Product Status

Vendor boldgrid
Product W3 Total Cache
Versions Default: unaffected
  • affected from 0 to 2.9.3 (incl.)

Credits

  • wesley finder

References

Problem Types

  • CWE-200 Exposure of Sensitive Information to an Unauthorized Actor CWE