If your WordPress site uses WP Rocket, update it today. A critical flaw in the popular caching plugin, tracked as CVE-2026-125812, lets attackers run their own code on a site without logging in. Security firm Patchstack says attacks started on 25 November 2026 and turned into automated campaigns within a day.
WP Rocket says it is used on more than 5.6 million sites.
What happened
WP Media, the company behind WP Rocket, released a fix in version 3.24.2 on 19 November 2026. It later published a security advisory after Patchstack reported active, automated exploitation.
According to the vendor advisory, Patchstack and BleepingComputer:
- The flaw is an unauthenticated remote code execution bug. The attacker does not need an account on the site.
- It comes from weak checks on data sent to a public endpoint. Patchstack says this is the AJAX endpoint used by WP Rocket’s measurement beacon (
admin-ajax.phpwithaction=rocket_beacon). - Attackers use it to make the site download a PHP file from an outside server and save it. That file then gives them control of the site.
- Patchstack rates it CVSS 9.8 (Critical).
Patchstack saw the first attempt on 25 November 2026 at 15:27 UTC. It says the attacker was blocked, tried again with encoded variants, and that several groups then launched automated attacks. It recorded tens of thousands of blocked attempts on 26 November alone.
Who is affected
Your site is at risk only if both of these are true:
- It runs a WP Rocket version before 3.24.2. The vendor advisory lists versions 3.15 through 3.24.1.
- At least one of these two settings is turned on: “LazyLoad for CSS background images” or “Self-host Google Fonts” (Patchstack calls it “Host Fonts Locally”).
Both settings are off by default. But many site owners turn them on to speed up their pages, so don’t assume you are safe. Check.
What to do now
- Update WP Rocket to 3.24.2 or later. In WordPress, go to Plugins and update WP Rocket. If you have a web designer or agency, ask them to confirm it is done on every site they manage.
- If you can’t update today, turn off both settings. Go to WP Rocket > Page Optimization > Image & Media (on versions before 3.24 it is the Media tab). Turn off “LazyLoad for CSS background images” and “Self-host Google Fonts”. The vendor says this blocks the known attack paths right away. For many sites, WP Media also offers a small helper plugin that turns both off.
- Check for planted files. Updating stops new attacks but does not remove anything already planted. Patchstack says to look for unexpected PHP files, such as names starting with
wp-media-, inwp-content/wp-rocket-config/,wp-content/uploads/andwp-content/. - Check your logs. Look for
rocket_beaconrequests, and for your server connecting out to unfamiliar hosts,nip.ioaddresses ortrycloudflare.comtunnels. Patchstack has published a list of attacker IP addresses you can block. - If you find anything, treat the site as hacked. WP Rocket says any files or accounts an attacker already created need separate investigation. Ask your host or a security specialist to check, look for new admin users, change all passwords, and restore from a clean backup if needed. Our incident response plan template can help you work through it.
This is a good reminder to keep plugins on automatic updates where you can, and to keep a recent, tested backup. See our backup strategy guide and our simple monthly patch process.
Frequently asked questions
I use WP Rocket but never changed those two settings. Am I safe? The sources say both settings are off by default, and the attack needs at least one of them on. Still, check the settings to be sure, and update to 3.24.2 anyway.
I updated. Do I need to do anything else? Yes, if your site ran a vulnerable version with one of those settings on. The update does not remove files an attacker may have already planted. Check the folders listed above or ask your host to scan the site.
How do I check which version I have? In WordPress, open Plugins > Installed Plugins and find WP Rocket. The version number is shown under its name. Anything below 3.24.2 needs updating.
Sources: WP Rocket security advisory for CVE-2026-125812 (updated 27 Nov 2026), Patchstack (27 Nov 2026), BleepingComputer (30 Nov 2026).

