Skip to main content
KBY Technologies Logo

WP Rocket CVE-2026-125812 Is Under Attack: Updating Does Not Remove Files Already Planted

Attackers have exploited WP Rocket since 25 November. Version 3.24.2 closes the hole but not planted files.

KBY News Desk7 min read
Closeup of netbook with keyboard and code on screen at table in workplace

Underlined words are defined in the KBY Lexicon. Tap or click one to see what it means.

Attackers have exploited a critical flaw in WP Rocket since Wednesday 25 November. Updating the plugin does not undo a break-in that has already happened. The flaw, CVE-2026-125812, lets an unauthenticated visitor make a WordPress site download code from the attacker’s server and run it. WP Media shipped the fix, version 3.24.2, on Thursday 19 November. Six days passed before the first attack, and any site that updated after that gap needs checking too.

The plugin is a paid caching and speed tool. WP Media says it runs on more than 5.6 million sites. The exposed population is large, even though the flaw needs a specific setting to be switched on.

#Who is exposed, and who can stop reading

Only sites running a version before 3.24.2 are affected. They are also exposed only if either “LazyLoad for CSS background images” or “Host Fonts Locally” is enabled. Both options are off by default, according to Patchstack, the WordPress security firm that tracked the attacks.

That condition is narrower than it sounds. Patchstack’s researchers note that both features are common on sites tuned for speed, which is exactly who buys a caching plugin. If you are not sure which options your site uses, treat it as exposed until you have looked.

You can stop reading if your site does not use WP Rocket. The same goes if you have been on 3.24.2 or later since before Wednesday 25 November. Everyone else should carry on, because the update is only half of the job.

#What the flaw does in plain terms

WP Rocket runs a small script in each visitor’s browser. The script measures the page and reports the results to a public endpoint on the site, which is the standard WordPress admin-ajax.php address. The plugin then uses the reported web addresses to optimise the page.

The plugin does not check those addresses strictly enough. Patchstack explains that a crafted report makes the site fetch content from a server the attacker controls and save it as a PHP file. The attacker’s code then runs on the web server with the site’s own permissions.

No login is needed at any point. That is why the severity score is 9.8 out of 10, and why the attacks moved from hand-typed attempts to automation within a day.

#How fast the attacks grew

Patchstack recorded the first attempt on Wednesday 25 November at 15:27 UTC. The first attacker worked by hand. They tried a payload on a few sites, then retried with encoded variants when the first attempt was blocked.

By the next day the activity had become automated campaigns. Patchstack says it blocked tens of thousands of attempts on 26 November alone. BleepingComputer, reporting on Monday 30 November, put the total at more than 25,000 malicious requests blocked from multiple attackers.

Several operators are working independently. Some send one identical payload to site after site. One cluster sent byte-identical requests from four residential addresses, which Patchstack reads as a rotating proxy pool.

The payloads sit in places that are hard to block wholesale. They include bare IP addresses, wildcard names such as nip.io, temporary trycloudflare.com tunnels, and other WordPress sites that are probably compromised. That last detail matters. It means a hacked site can become a distribution point for the next attack.

#Why the update leaves a gap

An update changes the code on disk, but it does not remove files the attacker added earlier. Patchstack and BleepingComputer both say so directly. Consider a site that ran a vulnerable version with either option on. If that was between 25 November and its update day, it may carry a planted PHP file. The file keeps working after the fix.

Our reading is that this gap is where most of the real damage will happen. The patch is easy to apply, so plenty of administrators will have done it on 28 or 30 November after the news broke. They will then believe the problem is closed. Attackers who landed a file on 26 November will still have access.

We think the six-day wait between fix and attack is the more useful lesson. That is a short window for an owner who updates plugins monthly. For an attacker who reads patch notes, it is a very long one. A plugin that is public and widely installed is read, diffed and exploited within days of its fix. Plan on that timescale, not on the next maintenance slot.

#A check you can run this afternoon

Start with the version. In the WordPress admin, open Plugins and confirm WP Rocket shows 3.24.2 or later. If it does not, update first and then do the rest of the checks, because the checks matter more once the door is shut.

Then look for files that should not be there. Patchstack points to three folders:

  • wp-content/wp-rocket-config/
  • wp-content/uploads/, where PHP files have no legitimate reason to exist
  • wp-content/ itself, for example files named like wp-media-*.php

Next, read your web server logs back to 25 November. Patchstack says to look for two signs. The first is rocket_beacon requests from clients that never loaded the page they claim to report on. The second is requests that report full web addresses where WP Rocket expects a bare domain.

Finally, check outbound traffic from the web server. A caching plugin has no reason to contact nip.io names or trycloudflare.com tunnels. If your host or firewall logs outbound requests, search for them. A match is strong evidence that someone used the flaw on your site.

#If you cannot update today

Turn off both vulnerable options. BleepingComputer gives the path as WP Rocket, then Page Optimization, then Image and Media, then the Media tab. Switching off both options closes both routes. Attackers aim at both, sometimes in a single request.

People who manage many sites have a second option. BleepingComputer reports that the vendor has shared a helper plugin to apply the mitigation across a whole estate. Patchstack also sells a mitigation rule for its own customers, which it says was live more than two days before the first attack arrived.

If you find a planted file, do not just delete it and move on. Assume the attacker may have done more with the access, and rebuild from a known good where you can. Change the WordPress administrator passwords and the database credentials in wp-config.php. Review the user list for accounts you do not recognise.

#What this means for a small business site

Many UK small businesses run a WordPress site that a freelancer built and nobody has looked at since. Those sites are the likeliest to be running WP Rocket with the speed options switched on, and the likeliest to be on an old version.

Ask whoever looks after the site three questions this week. Which version of WP Rocket is installed, and when was it updated? Which of the two options are on? Has anyone checked the folders above and the logs since 25 November? If the answer to the last one is no, that is the job for today.

If the site takes payments or holds customer details, a compromise is more than an embarrassment. It is worth asking whether the break-in touched personal data, and who in the business would decide whether it needs to be reported. Our guide to Cyber Essentials covers the patching habits that would have shortened this window. Our note on security keys for a small team shows how to protect the administrator accounts you will be resetting.

#What is still not known

Public reporting does not say how many sites were taken over. Patchstack counts blocked requests, not successful ones, and those figures describe only the sites it protects. The scale of real compromise is unknown.

The reports also do not say what the attackers installed once their code ran. We would expect a mix of the usual outcomes for this kind of access: backdoors for later use, spam pages, and redirects. That is our expectation, not something the researchers have reported. If Patchstack or WP Media publish more detail on the payloads, it will tell administrators what else to look for.

What would prove us wrong is simple. If sites that updated early turn out clean in large numbers, the damage is smaller than we fear. If administrators who updated late keep finding planted files, our warning about the gap was right.

Evidence trail

Sources and verification

Primary documentation and external technical references used in this article.

  1. 01Patchstack: Critical WP Rocket RCE (CVE-2026-125812) Under Active Attackpatchstack.com
  2. 02BleepingComputer: Hackers exploit critical WordPress WP Rocket flaw to breach sitesbleepingcomputer.com
  3. 03ITdaily: Hackers exploit critical flaw in WordPress plugin WP Rocketitdaily.com

About this page

Credited to

Dates

Published

Corrections

No corrections are listed for this page. Some review sweeps corrected pages without naming each one; those are in the corrections log.

Found this useful? Follow KBY for more like it.

Reader Interaction

Comments

Add a thoughtful note on WP Rocket CVE-2026-125812 Is Under Attack: Updating Does Not Remove Files Already Planted. Comments are checked for spam and held for moderation before appearing.

Loading comments...

Get new fixes by email.

For IT teams: new runbooks, configuration traps and fixes, and the Microsoft and Apple deadlines coming up, about twice a week.