Attackers are actively exploiting a critical flaw in WP Rocket, one of the most widely used caching plugins for WordPress. The bug, tracked as CVE-2026-125812 and rated 9.8 out of 10 for severity, lets an attacker with no login plant and run PHP code on a vulnerable site, which can mean a full takeover.
WP Rocket says its plugin runs on more than 5.5 million WordPress sites. The fix arrived in version 3.24.2, released on November 19, 2026, so any site that has not updated since then may be exposed.
Which Sites Are at Risk
According to Patchstack, whose researcher reported the flaw, every WP Rocket version before 3.24.2 is affected, but only when one of two optional features is switched on:
- LazyLoad for CSS background images
- Host Fonts Locally
Both settings are off by default. They are, however, popular on sites tuned for speed, which is exactly the audience WP Rocket serves.
How the Attack Works
To optimize pages, WP Rocket loads a small script in visitors’ browsers that measures each page and reports the results back to the site through a public endpoint. The plugin did not check the web addresses in those reports carefully enough. An attacker can send a fake report that tricks the site into downloading content from a server the attacker controls and saving it as a PHP file that can later be run.
Patchstack says the first exploitation attempt it saw came on November 25, and that attacks jumped to tens of thousands of blocked attempts the next day. Wordfence has also reported blocking attacks against the flaw, according to The Hacker News.
What Site Owners Should Do Now
- Update WP Rocket to 3.24.2 or later. Check Plugins in your WordPress dashboard and confirm the version number.
- Can’t update today? Turn off both LazyLoad for CSS background images and Host Fonts Locally until you can.
- Look for planted files. Updating blocks new attacks but does not remove files an attacker already dropped. Check
wp-content/,wp-content/uploads/andwp-content/wp-rocket-config/for unexpected PHP files, such as ones namedwp-media-*.php. - Review your logs. Patchstack advises looking for requests to
admin-ajax.phpwithaction=rocket_beaconfrom visitors who never loaded the page they reported on, and for outbound connections from your server to unfamiliar hosts, includingnip.ionames andtrycloudflare.comtunnels. - If you find something, restore from a clean backup taken before November 25, change all admin passwords and secret keys, and ask your host to scan the server.
A Busy Month for Website Flaws
WP Rocket joins a string of serious bugs in popular website software this autumn. Drupal sites faced a similar rush of attacks after a critical installer flaw, as we explained in our guide for Drupal site owners. The lesson is the same for both platforms: turn on automatic updates where you can, and treat performance and caching plugins as part of your security surface, not just your speed toolkit.
Sources
Featured image: Representative photo via Unsplash





