, ,

WP Rocket flaw under attack: update to 3.24.2 now

Browser window listing WordPress plugins with an update button, a speed gauge, a red warning sign and a green 3.24.2 version badge

If your WordPress site uses WP Rocket to speed it up, please check it today. Attackers are actively exploiting a critical flaw in the plugin, tracked as CVE-2026-125812 and rated 9.8 out of 10. On an affected site, it lets someone with no login at all put their own PHP code on your server and run it. WP Media, the company behind WP Rocket, fixed it in version 3.24.2, released on 19 November 2026.

Here’s what’s going on in plain English, how to tell whether your site is at risk, and what to do about it. I’ve also included a short note on a separate plugin backdoor scare from the same week.

What is WP Rocket, and what went wrong?

WP Rocket is a popular paid caching plugin. It makes pages load faster by storing ready-made copies of them, tidying up CSS and loading images only when they’re needed. According to BleepingComputer, WP Media says it’s used on more than 5.6 million sites.

To work out how to optimise each page, WP Rocket runs a small script in your visitors’ browsers. The script measures the page and sends a report back to your site. Patchstack, the security company that found the attacks, explains that WP Rocket then uses the web addresses in that report, but didn’t check them strictly enough. An attacker can send a fake report that makes your site download a file from the attacker’s own server and save it as a PHP file. Once that file is on your server, the attacker’s code runs.

Because those reports have to come from ordinary, anonymous visitors, the part of your site that receives them is public. That’s why no username or password is needed to attack it.

Which sites are affected?

This is the important bit, because not every WP Rocket site is at risk. Your site is only exposed if both of these are true:

  • It runs an older version of WP Rocket. WP Rocket’s own advisory lists versions 3.15 to 3.24.1 as vulnerable. Patchstack describes it as every version before 3.24.2, so if you’re on anything older than 3.24.2, treat your site as affected.
  • At least one of two speed settings is switched on: LazyLoad for CSS background images or Self-host Google Fonts (sometimes called Host Fonts Locally).

Both settings are off by default. But as Patchstack points out, they’re common on sites that have been tuned for good PageSpeed scores, so if you or your web designer spent time making your site faster, it’s well worth checking.

Is this being exploited?

Yes. Patchstack saw the first attempt on 25 November 2026 at 15:27 UTC. At first it was one attacker working by hand. Within a day it had turned into automated campaigns, with tens of thousands of blocked attempts on 26 November alone. BleepingComputer reports that Patchstack had blocked more than 25,000 malicious requests from multiple attackers, and The Hacker News notes that Wordfence has been blocking attacks too.

In other words, this isn’t a theoretical risk. Bots are scanning for vulnerable sites right now, and small business sites are just as likely to be hit as big ones, because the attacks are automated.

What to do now

  1. Check your WP Rocket version. In your WordPress dashboard, go to Plugins and find WP Rocket. If it says 3.24.2 or higher, the fix is installed.
  2. If it’s older, update it. Click Update now next to WP Rocket, then check the version number has changed. Because WP Rocket is a paid plugin, updates need an active licence. If you don’t see an update, check your licence in the WP Rocket settings.
  3. If you can’t update straight away (for example, your licence has expired), turn off the two risky settings. WP Rocket says to go to WP Rocket, then Page Optimization, then Image & Media (on versions before 3.24, the Media tab), switch off LazyLoad for CSS background images and Self-host Google Fonts, and save. Keep them off until you’ve updated.
  4. If you look after several sites, WP Media has published a small helper plugin that switches both settings off, which can be rolled out in bulk with WP-CLI. It’s linked from their advisory.

Turning the settings off will make some pages a little slower, but that’s a small price for keeping your site safe. You can turn them back on once you’re on 3.24.2 or later.

Already updated? Check you weren’t hit first

This is the part people often miss. Updating stops new attacks, but it doesn’t remove anything an attacker has already planted. If your site ran an old version with either setting switched on, especially after 25 November, it’s worth a closer look. Patchstack suggests checking for:

  • Unexpected PHP files in wp-content/wp-rocket-config/, wp-content/uploads/ or directly in wp-content/, for example files named like wp-media-*.php.
  • Requests in your server logs to admin-ajax.php with action=rocket_beacon that look odd, such as ones from visitors who never actually loaded the page.
  • Your web server making connections to unfamiliar addresses, including nip.io names or temporary trycloudflare.com tunnels.

You can look at files using your hosting control panel’s File Manager, or ask your host to check for you. A security plugin’s malware scan is also a good idea. If you find anything suspicious, don’t just delete it and move on: change your WordPress and hosting passwords, check for admin accounts you don’t recognise, and consider restoring from a clean backup.

Also this week: six plugins backdoored, but blocked in time

In a separate incident, Wordfence reports that on 22 November someone pushed backdoored versions of six plugins by the developer WP connect to WordPress.org. They include Air WP Sync, WP Sync for Notion and Add-on Brevo for Gravity Forms, with more than 3,600 active installations between them. The hidden code could let an attacker take full control of a site.

The good news is that WordPress.org’s release safeguards held the releases back before automatic updates picked them up, so the backdoored versions never reached sites through the normal update route, and all six plugins were closed the same evening. If you use any WP connect plugins, check you’re not running one of the versions Wordfence lists. There’s no patched version yet, so Wordfence’s advice is to remove the plugin and run a malware scan.

Keep the rest of your site up to date too

Caching plugins sit very close to the heart of your site, which is why flaws in them are so serious. Earlier this month I wrote about a LiteSpeed Cache data leak, another popular speed plugin. It’s a good reminder to keep every plugin updated, not just WordPress itself.

On that note, if you haven’t yet installed the WordPress 7.1.5 security release, do that at the same time. WordPress 7.2 is currently planned for 8 December, so it’s also a good week to make sure your backups are working before the next big update. My round-up of WordPress 7.1.4 and the plugin flaws from early November has more on why regular updates matter.

Sources

Need help?

I look after WordPress sites for small businesses in Milton Keynes and across the UK, including updates, security checks and clean-ups. If you’re not sure whether your site is affected, get in touch.

Related posts