A Critical WP Rocket Flaw Is Being Attacked: Two Settings Decide If You Were at Risk
Blog · 1 December 2026 · 7 min readA critical WP Rocket flaw has been under attack since 25 November. Only sites with two particular settings switched on were exposed. How to check yours.

WP Rocket, one of the most widely used speed plugins for WordPress, has had a critical security flaw, and attackers began using it on 25 November. The reassuring part, and for most sites it is genuinely reassuring, is that only sites with one of two particular settings switched on were ever exposed, and both of those settings are off unless somebody deliberately turned them on. Here is how to work out which camp your site sits in, and what to do either way.
What happened, in plain English
Part of how WP Rocket makes a site faster is by watching what a page actually does in a real visitor’s browser. A small script measures the page, then reports back to your website so the plugin knows what is worth optimising. Think of a delivery driver ringing the warehouse to say which items really turned up on the van.
The trouble was that your website trusted those phone calls a little too readily. A carefully faked report could point your site at a file sitting on somebody else’s server. Your site would fetch that file and save it as a PHP file, and a PHP file is something your server will happily run. That is about as serious as a website flaw gets, because it needs no password, no account and no help from you.
It is recorded as CVE-2026-125812 and scored 9.8 out of 10. The formal CVE record classifies it as a path traversal problem. Patchstack, whose researcher programme found it, describes the practical result as unauthenticated remote code execution, which is the wording that matters if you own the site.
The two settings that decide whether you were exposed
This is the bit worth reading twice. The flaw could only be reached on sites where one of these two WP Rocket options was enabled:
- LazyLoad for CSS background images
- Host Fonts Locally
Both are optional extras rather than defaults. If nobody has been through your WP Rocket settings turning on everything that sounded promising, there is a fair chance neither was ever on, and your site was never reachable through this particular hole. We would far rather tell you that than talk you into a panic.
That said, plenty of sites do have one of them on, often switched on years ago by whoever was chasing a better PageSpeed score at the time. So it is worth five minutes of your attention rather than none.
How to check your own site
Log in to WordPress and go to Settings, then WP Rocket. The lazy loading options sit on the Media tab. Look for “LazyLoad for CSS background images” and note whether it is ticked. Then find the “Host Fonts Locally” option among the font and optimisation settings and do the same.
While you are in there, look at the version number on the WP Rocket dashboard. You want 3.24.2 or newer. At the time of writing, 3.24.3 is the current release, so that is the number to aim for. If you are on anything in the 3.23 range or earlier, update now, whatever those two settings say.
If your site is on a maintenance plan with a WordPress developer, this is exactly the sort of thing that should already have been handled for you. A quick email asking “are we on 3.24.2 or later?” is a perfectly fair question to ask.
The dates matter, and they are not the ones you would expect
There are two separate dates here and it is easy to muddle them.
The fix itself shipped first. WP Rocket 3.24.2 was released on 19 November 2026, and its changelog mentions improved validation of cached CSS, font and preconnect files without naming a vulnerability. Anyone who updated promptly was protected before the problem was public, without knowing it.
The public disclosure came later. The CVE record went live on 25 November 2026, and Patchstack published its advisory on 27 November 2026, by which point the attacks were well underway. Patchstack logged its first exploitation attempt at 15:27 UTC on 25 November, the same day the record appeared, and tens of thousands of blocked attempts on 26 November alone.
So the gap between “the world finds out” and “somebody tries it on your site” was hours, not weeks. That is the honest reason we are tedious about updates. It is not that every plugin update is urgent. It is that you cannot tell which one was urgent until afterwards.
If those settings were on, do not just update and move on
Updating closes the door. It does not tidy up anything that walked in while the door was open. If one of those two options was enabled on your site and you were running an older version during the past fortnight, it is worth having someone look properly.
For whoever maintains your site, the things worth checking are unexpected PHP files in wp-content/wp-rocket-config/, in wp-content/uploads/, or sitting loose in wp-content/ itself. Patchstack reports planted files using names in the style of wp-media-*.php. Server logs showing POST requests to admin-ajax.php with the rocket_beacon action, especially from addresses that never loaded a page first, are the other signal. So are outbound connections from your web server to hosts nobody recognises.
If any of that turns something up, the job is no longer an update. It is a clean up, and a password and key rotation alongside it. This is also where decent hosting earns its money, because good backups and sensible file permissions turn a frightening morning into a dull one.
What this says about plugins generally
Every plugin you install is code someone else wrote, running on your website, with your customers’ data within reach. That is not an argument against plugins. We build with them every week. It is an argument for keeping the list short, keeping it current, and knowing who is responsible for doing that.
The sites that came through this week untroubled were not the ones with the cleverest security plugin. They were the ones that had been updated in the past fortnight. We wrote about the same pattern when attackers started targeting the WordPress update process itself, and the lesson has not changed.
If you have inherited a site and genuinely do not know what is installed or when it was last touched, that is worth sorting out. It is usually a short job to audit and a much longer one to recover from.
Not sure where your site stands?
We look after WordPress and WooCommerce sites for businesses across Sale, South Manchester and well beyond, and checking a plugin version is not the kind of thing we make a fuss about. If you would like someone to confirm your site is on a safe version of WP Rocket and nothing odd has been left behind, our WordPress team can take a look.
Get in touch and we will check it for you.
FAQ
I do not use WP Rocket. Do I need to do anything?
Not for this one. The flaw is specific to WP Rocket, so if it is not in your plugin list you are unaffected. It is still worth taking two minutes to look at your plugins page and update anything sitting there with a pending update, because the same story plays out with a different plugin every few weeks.
How would I know if my site had already been broken into?
The usual signs are new files you did not create, admin accounts nobody recognises, pages appearing that you never wrote, or your host getting in touch about spam. None of those are guaranteed, which is why a proper look at the file system and server logs beats guessing from the front end of the site.
Will updating WP Rocket break my site or slow it down?
Very unlikely, and the update does not change your settings. As with any update on a site that earns you money, taking a backup first is simply good manners to your future self. If your site is heavily customised, having someone update it on a staging copy first is the careful way to do it.
Should I just turn those two settings off and leave them off?
Once you are on 3.24.2 or later there is no need. Both features are legitimate and can genuinely help your loading times. If you cannot update straight away for some reason, then yes, turning both off is the sensible holding position until you can.
Whose job is it to keep plugins updated?
Whoever your arrangement says it is, which is worth checking rather than assuming. Some sites are on a maintenance plan where updates and monitoring are handled for you. Others were built, handed over and are now nobody’s responsibility in particular, which is the situation that tends to end badly.
Photo by Ilya Pavlov on Unsplash


