blog

WP Rocket has a critical flaw that's being used in attacks, and it won't update itself

If your WordPress site uses WP Rocket, the paid caching plugin, log in today and check it's on version 3.24.2 or later. A critical flaw fixed on 19 November is now being used in attacks, and WP Rocket doesn't install its own updates.

So if nobody has clicked the button since the 19th, your site is still on the old version.

What happened

The flaw is CVE-2026-125812, rated 9.8 out of 10. It was reported through Patchstack's bug bounty programme, and WP Rocket fixed it in version 3.24.2 on 19 November. The changelog describes it modestly, as improving "validation of cached CSS, font and preconnect files".

On 27 November Patchstack published an update saying the flaw is under active attack. It first saw attempts at 15:27 UTC on 25 November, and blocked tens of thousands of them on 26 November alone.

In plain English, a stranger with no login can send WP Rocket a crafted request and get it to fetch a file from their server and save it on yours as PHP. Once that file is on your site, they can run it. That's a full takeover.

Does it affect you?

You're in scope if your site runs any version of WP Rocket before 3.24.2.

Patchstack says the attack only works if one of two settings is switched on: LazyLoad for CSS background images or Host Fonts Locally. Both are off by default. That's good news, but I wouldn't lean on it. ZeroPath's analysis says the public information doesn't settle which setups are exposed, and suggests treating the version number as the only reliable test. I agree. Update regardless.

Two things make this one easy to miss.

It doesn't auto-update. WP Rocket's own docs say "We have decided not to allow automatic updates to be enabled", on the grounds that updates are best done by hand. That's a fair choice for a caching plugin, which can break a site in odd ways. It does mean that if your site updates everything else automatically, this one has been sitting there waiting.

It needs a current licence. WP Rocket's page on what happens when a licence expires lists plugin updates among the things you lose. If someone bought it for you years ago and the renewal lapsed, the update won't appear in your dashboard at all. You'll need to renew, or switch the plugin off.

What to do this week

1. Check the version. In WordPress, go to Plugins and look at WP Rocket. If you have shell access, this does it in one line:

wp plugin get wp-rocket --field=version

Anything below 3.24.2 needs updating now. The current release is 3.24.3, from 26 November.

2. Update it. From the Plugins page, or with wp plugin update wp-rocket. If the update isn't offered, check the licence in your WP Rocket account.

3. If you can't update today, switch off the two settings. Patchstack's interim advice is to turn off LazyLoad for CSS background images and Host Fonts Locally until you can. Or deactivate the plugin altogether. Your site will be a bit slower for a day, which beats being someone else's site.

4. Look for files that shouldn't be there. This is the step people skip. Patchstack is clear that updating stops new attacks but doesn't remove anything already planted. It suggests looking for unexpected PHP files in wp-content/, wp-content/uploads/ and wp-content/wp-rocket-config/, and gives wp-media-*.php as an example name.

From the root of your site, something like this lists PHP files changed since the fix came out:

find wp-content -name '*.php' -newermt 2026-11-19 -not -path '*/plugins/*' -not -path '*/themes/*' -ls

The uploads folder should hold images and documents, not PHP, so anything there deserves a proper look. Bear in mind wp-rocket-config normally holds a PHP config file for your domain, so look for anything you don't recognise rather than deleting the lot.

5. If you find something, treat the site as hacked. Patching doesn't undo it. Take a copy for evidence, change your passwords and keys, and clean up properly rather than deleting the one file you spotted. I went through what that looks like in my post on the Rank Math PRO malware.

The bigger point

Six days from fix to attacks is about what I'd expect now. Dev Partners wrote recently about how AI can turn a security patch into an attack, and that gap keeps shrinking.

The quieter lesson is about paid plugins. Free plugins from wordpress.org can update themselves. Paid ones often can't, or stop getting updates when a card expires. It's worth making a list of every paid plugin on your site, who holds the licence, and when it renews. That ten-minute job would have caught this one.

If your site has grown past a few plugins and you're wondering whether WordPress is still the right fit, Dev Partners have a good piece on when WordPress is perfect and when it isn't.

And if you'd rather someone else kept an eye on the updates that don't happen on their own, that's what my support retainers are for.