Flaw in WP Rocket Plugin Exposes WordPress Sites
Attackers are exploiting critical flaw CVE-2026-125812 to run malicious PHP code on sites using the caching plugin.
Updated on Nov. 30, 2026 in Cybersecurity

Live Poll
Do you trust that websites you use are secure from hackers?
Hackers are exploiting critical flaw CVE-2026-125812 in the WP Rocket caching plugin to execute arbitrary PHP code on WordPress sites. WP Media released fixes on November 19, and attacks escalated to automated campaigns by November 26.
Why it matters
WP Rocket is used on more than 5.6 million sites, so the flaw affects a large share of the WordPress ecosystem. Site owners running versions before 3.24.2 with certain options enabled face direct risk of unauthorized code execution.
The flaw stems from insufficient validation of data sent to a public endpoint and affects versions before 3.24.2 when the 'LazyLoad for CSS background images' or 'Host Fonts Locally' options are enabled. Unauthenticated attackers write and run PHP code downloaded from an external source, using both feature paths, sometimes in one request.
The players
WP Media
WP Media is the company behind the WP Rocket caching plugin for WordPress, which it develops and sells to paying customers.
Patchstack
Patchstack is a WordPress security platform that monitors and blocks vulnerability exploitation across sites and observed the attacks on WP Rocket.
The details
Patchstack first observed low-scale, manual exploitation attempts on November 25 at 15:27 UTC, and the attacks escalated to fully automated campaigns the following day. Attackers can use either affected feature path, and sometimes both in a single request, to deploy the exploit.
Timeline
November 19, 2026: WP Media released fixes for the vulnerability.
November 25, 2026 at 15:27 UTC: First low-scale manual exploitation attempts observed.
November 26, 2026: Attacks escalated to fully automated campaigns.
Roadmap
WP Rocket's reach across more than 5.6 million sites makes its security flaws a concern for the broader WordPress ecosystem. This incident shows how a single widely installed plugin can concentrate risk for thousands of site operators at once.
WordPress site owners running WP Rocket should update to version 3.24.2 or later to close the vulnerability. Those who cannot update immediately should disable the 'LazyLoad for CSS background images' and 'Host Fonts Locally' options.
The takeaway
Keeping plugins updated is one of the most direct defenses against this kind of exploit, since fixes were available before the automated attacks began. Site owners should check their WP Rocket version and settings today.
Further reading
For more on attacks targeting web platforms, see Cybersecurity.
Source note: This article includes information reported by Bleeping Computer.
Live Poll
Do you trust that websites you use are secure from hackers?



