November 30, 2026

WP Rocket Has a Critical Flaw. Update Now, Attackers Are Already Using It

If your WordPress site uses WP Rocket, stop what you are doing and check its version. A critical flaw in the plugin lets anyone run code on your site with no login at all, and attackers are already doing it on live sites.

This is not a theoretical risk, and it is not a flaw that needs a stolen password or a tricked admin. The attacker needs nothing but your website address. If your site runs a vulnerable version with either of two common settings turned on, it can be taken over in a single request.

The good news is that the fix already exists, and it is simple. Update WP Rocket to version 3.24.2 or later. That is the whole fix for most sites. The rest of this post explains who is affected, how the attack works, how to check whether your site was already hit, and what to do if you cannot update yet.

Watch the Video

What happened

The flaw is tracked as CVE-2026-125812. It is an unauthenticated remote code execution flaw, which means an attacker with no account on your site can run their own code on your server. It is rated 9.8 out of 10, the highest severity band.

It affects WP Rocket versions 3.15 through 3.24.1, but only on sites where at least one of two settings is turned on:

  • LazyLoad for CSS background images
  • Host Fonts Locally, also called Self-host Google Fonts

Both settings are off by default, but both are common on sites that have been tuned for speed, which is exactly what WP Rocket is bought for. WP Rocket is installed on more than 5.5 million WordPress sites, so even a small share of affected sites is a very large number.

The fixed version, 3.24.2, was released on 19 November 2026. That matters, because the fix was already available before the attacks started. The first exploitation attempt Patchstack saw was on 25 November 2026 at 15:27 UTC. Within a day the attacks had turned into automated campaigns, with tens of thousands of blocked attempts on 26 November alone. Patchstack published its report on 27 November.

So the timeline is simple. The fix came out on 19 November. The attacks started on 25 November. Every day a site stays unpatched after that is a day it is being probed by automated tools.

How the attack works, in plain English

WP Rocket runs a small script in your visitors’ browsers. That script measures each page and reports the results back to your site, so WP Rocket can optimise the page. It sends those reports to a public address on your site, the admin-ajax.php endpoint, with an action called rocket_beacon.

The flaw is that WP Rocket does not check those reports strictly enough. An attacker can send a fake report that points to a file on a server the attacker controls. WP Rocket then downloads that file and saves it as a PHP file on your site. PHP is the language WordPress runs on, so a PHP file on your server is code, and the attacker’s code then runs.

Two settings make this possible. The CSS background lazy loading feature and the local hosting of Google Fonts feature both use this same reporting path, so either one being on is enough. Attackers use both paths, sometimes in one request, so whichever feature a site has enabled, one of them fires.

The attackers are not doing this by hand any more. Patchstack reports several independent operators running automated campaigns. Some send one identical payload to site after site. One cluster sent byte-identical requests from four residential IP addresses, which is a sign of a rotating proxy pool. Since 25 November, the ten most active addresses accounted for roughly half of all blocked attempts. They host their payloads on bare IP addresses, on wildcard DNS names such as nip.io, on temporary trycloudflare.com tunnels, and on other WordPress sites that are likely already compromised. Some first check whether a site is vulnerable without revealing their own server.

In short, this is a spray and pray attack at internet scale. It does not target you personally. It targets every WP Rocket site it can find, and it only needs one unpatched site with the right setting on.

Are you affected? Check in two minutes

You do not need a security tool to find out. Do these two checks.

First, check the version. In your WordPress dashboard, go to Plugins, then Installed Plugins, and find WP Rocket. If the version number is 3.24.2 or later, you are not affected by this flaw. If it is 3.24.1 or earlier, you are running a vulnerable version, and the next check decides whether you are exposed.

Second, check the two settings. Go to WP Rocket, then Page Optimization, then Image and Media. On versions before 3.24, open the Media tab instead. Look for LazyLoad for CSS background images and Self-host Google Fonts. If either one is turned on, and your version is below 3.24.2, your site is affected. If both are off, the documented attack paths do not apply to your site, but update anyway, because the fix closes the flaw completely.

If you do not use WP Rocket at all, this flaw does not affect your site. Do not install anything to fix a plugin you do not have.

What to do now: 6 steps

Do these in order. The first three take a few minutes and close the hole. Steps four and five check whether the hole was already used. Step six is for sites that cannot update yet.

1. Back up first, then update

Before you change anything, take a full backup of your site, files and database, and confirm the backup file exists. Then, in your WordPress dashboard, go to Plugins, find WP Rocket, and select Update now. Confirm the installed version is 3.24.2 or later. If you do not see an update, your licence may need renewing, or your site may need to check for updates again. Do not skip the update because the button is missing. That is what step six is for.

Updating is the fix. It closes the flaw so new attacks cannot get in through this path. It is the single most important step in this post.

WP Rocket is also one of the caching plugins that speeds up a slow site. If your site loads slowly as well, our guide to why WordPress sites get slow walks through the 7 causes in order.

2. If you cannot update yet, turn off both settings now

If your WP Rocket licence has expired, or you cannot update for another reason, turn off both settings immediately. Go to WP Rocket, then Page Optimization, then Image and Media. On versions before 3.24, open the Media tab. Turn off LazyLoad for CSS background images and Self-host Google Fonts. Save your changes and confirm that both settings are off.

WP Rocket says turning off both settings stops the documented attack paths at once. Keep them off until you install WP Rocket 3.24.2 or later. Arrange the licence renewal while the workaround is in place, and apply the workaround first, before anything else.

If you manage many sites, WP Rocket has published a free helper plugin that turns off both settings across your sites. It is on GitHub, and agencies and hosts can deploy it in bulk with WP-CLI. After deploying it, verify that both settings are off on each affected site. The helper is a workaround, not a replacement for the update. Install WP Rocket 3.24.2 or later as soon as you can.

3. Check that the update actually took

After updating, go back to Plugins and confirm the version number reads 3.24.2 or higher. Do not assume the update worked because you clicked the button. A failed update leaves you exactly where you started, and you would not know it. While you are there, check that your site still loads normally, and that the pages you care about look right. WP Rocket is a caching plugin, so clear its cache after the update if your pages look stale.

4. Check whether your site was already hit

This is the step people skip, and it is the one that matters most after the update. Updating stops new attacks. It does not remove files an attacker already planted, and it does not remove accounts an attacker already created. If your site ran a vulnerable version with either setting on, and it had no protection in front of it, assume it may have been probed, and check.

Patchstack lists three things to look for:

  • Requests to the rocket_beacon endpoint from visitors who never loaded the page they are reporting on, or reports that contain full URLs where WP Rocket expects bare domains. Your host or security plugin logs will show these.
  • Outbound requests from your web server to unfamiliar hosts, nip.io names, or trycloudflare.com tunnels.
  • Unexpected PHP files in wp-content/wp-rocket-config/, in wp-content/uploads/, or directly in wp-content/, for example files named wp-media-something.php.

Also check for new admin accounts you do not recognise, for plugins or files you did not install, and for changes to your site you did not make. If you find any of these, do not just delete the one file and move on. Ask your hosting provider or your security team to check for signs of compromise. An update or a settings change can prevent new exploitation through the documented paths. Any files or accounts an attacker already created need separate investigation, and a clean restore from a backup made before the attack is often faster than cleaning a hacked site by hand.

Our guide How to Tell If Your WordPress Site Is Hacked (7 Warning Signs) walks through the same checks in detail. It publishes on Friday 4 December 2026, so the link goes in when it is live.

5. Turn on two-factor authentication and review your admins

A site that can be taken over through a plugin flaw is a site whose admin accounts are also worth protecting. Turn on two-factor authentication for every WordPress admin account, not just your own. Remove accounts you do not recognise, and give each real user only the role they need. Our guide How to Share Google Authenticator Codes With Someone (or Move Them to a New Phone) explains how authenticator apps work.

This step does not fix CVE-2026-125812. It limits what an attacker can do next time a different flaw appears, which is the point. Most WordPress hacks this year, including the WordPress 7.1.5 flaws in post #9 and the hidden backdoor in six plugins in post #11, follow the same pattern: a known flaw, a site that had not updated yet, and an attacker who moved fast.

Read our guides: WordPress 7.1.5 Is Out: A Security Update You Should Not Skip and Six WordPress Plugins Carried a Hidden Backdoor.

6. Do not rely on a firewall alone

If you use a security plugin or a firewall service, it may have blocked these attacks already. Patchstack, for example, had a mitigation rule live more than two days before the first attack arrived, and it blocked tens of thousands of attempts on 26 November. That protection is real, and it is worth having, but it is not a substitute for the update. A rule blocks the attacks it recognises. The update removes the flaw itself. Do both, and do the update first.

Frequently asked questions

I do not use WP Rocket. Am I safe from this flaw?

Yes, from this flaw. It only affects sites running WP Rocket versions 3.15 through 3.24.1 with one of the two settings on. If you do not have the plugin installed, there is nothing to update. The lesson still applies to every plugin you do run: check for updates regularly, and apply security updates the same day.

I updated to 3.24.2. Is my site clean?

Not necessarily. The update stops new attacks through this flaw, but it does not remove anything an attacker already planted. If your site was vulnerable and exposed before the update, check for unexpected PHP files, new admin accounts, and strange outbound requests, as described in step 4. If you find anything, get help checking the site properly.

Both settings are off on my site. Do I still need to update?

Yes. With both settings off, the documented attack paths do not apply, but the flaw is still in your code, and attackers may find other ways to reach it. Update to 3.24.2 or later, and keep updating promptly in future. The update is free if your licence is active.

My WP Rocket licence expired. What should I do?

Turn off both settings now, using the steps in step 2. That stops the documented attacks at once. Then arrange the licence renewal and update to 3.24.2 or later as soon as you can. Do not leave the settings on while you wait.

How do I know if my site was attacked?

Look for rocket_beacon requests from visitors who never loaded the reported page, outbound requests to unfamiliar hosts or trycloudflare.com tunnels, and unexpected PHP files in wp-content/wp-rocket-config/, wp-content/uploads/, or wp-content/. Your host can help you read the logs if you are not sure what you are looking at.

Is WP Rocket a bad plugin now?

No. WP Rocket is a widely used caching plugin, on more than 5.5 million sites, and it fixed this flaw quickly, releasing 3.24.2 on 19 November, six days before the first attack was seen. Every popular plugin has flaws from time to time. What matters is how fast the fix comes out, and how fast site owners apply it. This post exists because too many sites still have not applied it.

A note on who we are

Intellectual Era Solutions builds WordPress websites, online shops, and custom software for startups and small businesses, and our website maintenance service covers updates, backups, and security checks. We wrote this alert because a flaw rated 9.8, in a plugin on more than 5.5 million sites, that is being exploited right now, is news every WordPress site owner needs to hear today, not next week. If you need help updating your site, turning on two-factor authentication, or checking whether it was compromised, contact us through the contact page.

The update itself is free if your licence is active, and the fixed version is listed above, so if you have a developer, send them this post and ask them to update today.

Related guides

Leave a Reply

Your email address will not be published. Required fields are marked *