🚨 ALERT WordPress: the critical WP Rocket flaw is being exploited — update to 3.24.2
🌐 WordPress — Exploited flaw 🏢 Small businesses & websites

Critical WP Rocket Flaw: Hackers Take Over WordPress Sites — Update to 3.24.2

Do you run a WordPress site for your shop, practice or association? Check whether it uses WP Rocket, a widely used plugin that speeds up page loading. A critical flaw, tracked as CVE-2026-125812, lets an attacker with no login at all run their own code on the site. It has been actively exploited since 25 November 2026. A fix is available: version 3.24.2.
5.6M
Sites using WP Rocket (394,000 customers)
25,000+
Malicious requests blocked by Patchstack
3.24.2
Fixed version, released 19 November 2026

🔓 What happened

According to BleepingComputer (30 November 2026), the flaw comes from insufficient validation of data sent to a public endpoint of the plugin. An unauthenticated attacker can make the site write and then run PHP code downloaded from an external source — in other words, take control of the site.

The developer, WP Media, released the fix on 19 November. But WordPress security firm Patchstack saw the first manual attempts on 25 November at 15:27 UTC, followed by automated campaigns the next day. Its platform blocked more than 25,000 malicious requests from multiple attackers. According to Patchstack, attackers target both vulnerable features, sometimes in a single request, so that whichever option is enabled, the attack works.

🚨 Affected sites (WP Rocket security advisory)
  • WP Rocket versions 3.15 through 3.24.1
  • AND at least one of these options enabled: "LazyLoad for CSS background images" or "Self-host Google Fonts" (called "Host Fonts Locally" by BleepingComputer)
  • Both options are off by default, so not every WP Rocket site is exposed

👥 Who is affected?

Individuals who simply visit websites are not directly affected. It's WordPress site owners who need to act: small businesses, tradespeople, shops, freelancers, associations, bloggers… If a contractor or agency manages your site, send them this article today.

✅ What to do

✅ 1. Update WP Rocket
  • In your WordPress dashboard, open Plugins and update WP Rocket
  • Check that the version shown is 3.24.2 or later
  • If no update shows up (for example with an expired licence), go to step 2
⚠️ 2. Can't update right away? Turn off both options
  • Go to WP Rocket → Page Optimization → Image & Media (the Media tab on versions before 3.24)
  • Turn off "LazyLoad for CSS background images" and "Self-host Google Fonts", save, and check they are really off
  • Keep them off until version 3.24.2 or later is installed
  • For providers managing several sites, WP Rocket offers a small mitigation helper plugin (see the official advisory in the sources)
🚨 3. If either option was enabled on a vulnerable version
  • Updating doesn't clean the site: according to WP Rocket and BleepingComputer, it does not remove files or accounts an attacker may already have created
  • Ask your host or web provider to look for signs of compromise (server logs, unknown PHP files, suspicious outbound connections)
  • As a precaution, we also recommend reviewing the list of WordPress administrator accounts and changing admin passwords
💡 Good habits for your website
  • Turn on automatic plugin updates where possible, or schedule a weekly check
  • Remove plugins you no longer use
  • Keep a recent backup of the site, stored somewhere other than the server
  • Hacked? In France, you can find help and providers at cybermalveillance.gouv.fr
🛡️ Cyber Family recommendation — Small businesses & freelancers
KINLEY AUDIT — vulnerability audit for your Linux & Windows computers and servers
Get a clear picture of the flaws and weaknesses on your workstations and servers so you know what to fix first.

📚 Sources

❓ Frequently asked questions

Only if it uses WP Rocket version 3.15 through 3.24.1 with "LazyLoad for CSS background images" or "Self-host Google Fonts" enabled. Both options are off by default. Without WP Rocket, this flaw doesn't affect you.
It stops new attacks, but doesn't remove anything an attacker already installed. If either option was enabled on a vulnerable version, have your host or web provider check the site.
Turn off both options under WP Rocket → Page Optimization → Image & Media and keep them off until version 3.24.2 or later is installed, as the developer recommends.