Critical WP Rocket Flaw: Hackers Take Over WordPress Sites — Update to 3.24.2
🔓 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.
- 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
- 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
- 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)
- 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
- 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
📚 Sources
- BleepingComputer — Hackers exploit critical WordPress WP Rocket flaw to breach sites (30 November 2026)
- WP Rocket — Security advisory and mitigation steps for CVE-2026-125812 (updated 27 November 2026)