WP Rocket Under Attack: How to Check Your Version, Settings and Site
WP Rocket is one of the most popular ways to speed up a WordPress site. Its developer, WP Media, says it runs on more than 5.6 million sites. If yours is one of them, there's a short check worth doing today.
A critical flaw in the plugin, CVE-2026-125812, has been under attack since 25 November 2026. Patchstack reports that the first attempts were made by hand that afternoon, and that within a day they had become automated campaigns, with tens of thousands of attempts blocked on 26 November alone. On a vulnerable site, an attacker who isn't logged in can write PHP code onto your server and run it. In practice, that means they can take the site over.
The good news is that the fix has been out since 19 November, and the check takes a few minutes. This article walks you through it, and through what to do if you find something wrong.
Key takeaways
- Your site is at risk if it runs WP Rocket 3.15 to 3.24.1 and has either LazyLoad for CSS background images or Self-host Google Fonts switched on.
- Update to WP Rocket 3.24.2 or later. If you can't (for example, because your licence has expired), switch both settings off until you can.
- Updating stops new attacks. It doesn't remove anything an attacker already put on your site, so if your site was exposed, check for signs of a break-in as well.
- 9.8CVSS score, critical
- 0logins needed to attack
- 19 Novfixed version 3.24.2 released
- 25 Novfirst attacks seen
What the flaw is, in plain English
To make pages load faster, WP Rocket can measure how a page looks in visitors' browsers and send the results back to your site, which then prepares optimised files. According to SecurityWeek, in versions 3.15 to 3.24.1 the plugin didn't check those reports carefully enough. A faked report can make the site download content from an attacker's server and save it as a PHP file, which then runs on your server.
Two settings are involved: LazyLoad for CSS background images and Self-host Google Fonts (Patchstack calls the second one "Host Fonts Locally"). Both are off when you first install WP Rocket, but Patchstack notes that both are common on sites that have been tuned for speed. If either one is on, the site is exposed.

Why the timing matters
The fix came out on 19 November and the first attack came on 25 November, six days later. That gap is typical: once a fix is public, attackers can compare the old and new code and work out what changed. Sites that update within a day or two are usually ahead. Sites that wait for a quiet week often aren't.
Patchstack also found that attackers try both settings at once, sometimes in a single request, so that whichever one your site has switched on, the attack works.
Step 1: check your WP Rocket version
Log in to WordPress and go to Plugins. Find WP Rocket in the list: the version number is shown under its description. Then compare it with this table.
| Your WP Rocket version | What it means |
|---|---|
| 3.24.2 or later | Fixed. Still read the section on signs of a break-in if you updated after 25 November with either setting on. |
| 3.15 to 3.24.1 | Vulnerable if either of the two settings is on. Update now, or switch both settings off straight away. |
| Older than 3.15 | Not listed as affected by this flaw in WP Rocket's advisory, but that old a version will be missing other fixes. Plan an update. |
If you look after several sites, check every one. It's easy to update the main site and forget the old landing page or the staging copy that's still online.
Step 2: check the two risky settings
In your WordPress dashboard, open Settings > WP Rocket, then follow WP Rocket's own advisory:
- On version 3.24 or later, open Page Optimization, then Image & Media. On versions before 3.24, open the Media tab.
- Look for LazyLoad for CSS background images and Self-host Google Fonts.
- Note whether either was switched on. You'll need to know this for the last step, even after you've fixed the problem.
If both were off the whole time, your site wasn't exposed through the paths described so far. Update anyway, because a setting can be switched on later by you, a colleague or a developer working on speed.
Step 3: update to 3.24.2 or later
With an active licence, this is the usual plugin update. WP Rocket's advice is to go to Plugins, find WP Rocket and select Update now, then confirm that the installed version is 3.24.2 or later. If no update appears, WP Rocket points you to its update guide.
As with any update on a site that brings in business, take a backup first and check your key pages afterwards: the homepage, a product or service page, and your contact form. Our guide to plugin updates explains why it's worth doing this every time.
If your licence has expired
WP Rocket is a premium plugin, so updates come through your licence. If it has lapsed, the update may not appear. Both WP Rocket and SecurityWeek give the same advice for this case: switch off LazyLoad for CSS background images and Self-host Google Fonts, save, and check both settings really are off on every affected site.

WP Rocket says this blocks the documented attack paths straight away, and to keep both settings off until you're on 3.24.2 or later. Your pages may load a little slower in the meantime. That's a fair trade.
Don't leave it there. A switched-off setting can be switched back on by anyone with access to the dashboard, and an expired licence means you'll miss the next security fix too. Renew, or replace the plugin. Our article on what happens when a plugin licence expires covers the options.
If you manage many sites, WP Rocket also offers a small helper plugin, "WP Rocket | Mitigate CVE-2026-125812", which switches off both features. It's linked from the advisory.
Signs your site was hit
If your site ran a version between 3.15 and 3.24.1 with either setting on, and especially if that was still true on or after 25 November, check whether anyone got in. Patchstack has published what to look for.
Unexpected PHP files
Look for PHP files that shouldn't be there, in three places:
- directly inside
wp-content/ - inside
wp-content/wp-rocket-config/ - inside
wp-content/uploads/
Patchstack gives wp-media-*.php as an example name, meaning any file that starts with wp-media- and ends in .php. Be careful: attackers can use other names too, and the uploads folder of a normal WordPress site should hold images and documents, not PHP. If you aren't sure what a file is, don't open it in a browser. Ask your host or developer to look.

Suspicious requests in the logs
Every attempt Patchstack has seen goes to /wp-admin/admin-ajax.php with action=rocket_beacon. That's the same address WP Rocket uses for its normal measurements, so seeing it isn't proof of an attack. Patchstack's advice is to look for rocket_beacon requests from visitors that never loaded the page they're reporting on, or that send full web addresses where WP Rocket expects a plain domain.
Your server calling out
Patchstack also lists outbound requests from your web server to unfamiliar addresses, including names ending in nip.io or trycloudflare.com. Your host can usually check this for you. BleepingComputer's advice is the same: review logs for suspicious requests and outbound connections.
Accounts you don't recognise
Both WP Rocket and SecurityWeek mention accounts as well as files. Go to Users and check for administrators you don't recognise. Our WordPress security checklist has more on keeping accounts tidy.
Why updating isn't the end of it
This is the part that catches people out. Updating WP Rocket closes the door. It doesn't remove anyone who has already come through it. Patchstack puts it plainly: "The update stops new attacks, but it does not remove files an attacker already planted." WP Rocket's advisory says the same about files and accounts, and asks owners whose sites were exposed to have their host or security team check for signs of compromise.
A planted PHP file is a backdoor. It sits quietly in a folder and gives the attacker a way back in whenever they like, whatever version of WP Rocket you're running. That's why a site can be fully up to date and still be compromised.
If you find something, treat the site as compromised. Don't just delete the one file and move on. There may be others, and the attacker may have changed passwords, users or other files. Bring in your host or a WordPress specialist, restore from a clean backup taken before 25 November if you have one, change every password and secret key, and only then put the fixed version of WP Rocket back in place. A backup someone is responsible for restoring makes this a much shorter job.
A quick checklist
- Check the version under Plugins. Is it 3.15 to 3.24.1?
- Check the two settings under Page Optimization > Image & Media (or the Media tab before 3.24). Was either on?
- Update to 3.24.2 or later, after taking a backup.
- Can't update? Switch both settings off, save, and confirm they stay off until you can.
- If the site was exposed, look for unexpected PHP files in
wp-content,wp-content/wp-rocket-configandwp-content/uploads, oddrocket_beaconrequests and outbound connections, and unfamiliar admin users. - Found something? Get help, and assume there's more than one thing to clean up.
Security problems like this one are rarely about a single plugin. They're about how quickly updates are applied, whether someone is watching the site, and whether there's a clean backup when it counts. If you'd rather not run through this list every time a plugin makes the news, ongoing security monitoring is the habit that makes the difference.
Sources
- Critical WP Rocket RCE (CVE-2026-125812) under active attack (Patchstack, 27 November 2026)
- WP Rocket security advisory and mitigation steps for CVE-2026-125812 (WP Rocket, updated 27 November 2026)
- Hackers exploit critical WordPress WP Rocket flaw to breach sites (BleepingComputer, 30 November 2026)
- Critical WordPress WP Rocket Vulnerability Exploited Days After Patching (SecurityWeek, 1 December 2026)
Published 5 December 2026. This article describes CVE-2026-125812 as reported up to 1 December 2026.


