WP Rocket Flaw Exploited to Take Over WordPress Sites

Hands resting on a laptop keyboard at the counter of a small shop, the screen showing a blurred website dashboard, with shelves of goods out of focus in daylight

If your business website runs on WordPress and someone once set it up to load faster, there is a fair chance WP Rocket is installed. Right now, attackers are scanning the web for sites running an older copy of it. On the sites they find, a single crafted request can make the website download the attacker’s own code and run it, with no password and no login.

Once someone can run code on your web server, they own the site in practice. They can add hidden admin accounts, slip card-skimming scripts into a checkout page, redirect your visitors to scam pages or quietly use your server to attack other sites. The fix has been out since 19 November. The problem is the many sites that haven’t installed it, including plenty whose WP Rocket licence has lapsed.

Is your site in the danger zone?

WP Rocket is a paid caching plugin from WP Media, and security firm Patchstack lists it on more than 5.5 million sites. According to WP Media’s own security advisory, a site is exposed only if both of these are true:

  • it runs WP Rocket 3.15 through 3.24.1, and
  • at least one of two optional features is switched on: LazyLoad for CSS background images or Self-host Google Fonts (Patchstack calls it “Host Fonts Locally”).

Both features are off by default. But they are exactly the kind of setting people turn on when chasing a better page-speed score, and Patchstack says both are common on performance-tuned sites. If a developer or agency built your site, don’t assume either way. Check.

How a speed feature became a way in

WP Rocket runs a small script in visitors’ browsers that measures each page and reports back to the site, so the plugin knows which images and fonts to optimise. In its write-up of the attacks, Patchstack explains that the plugin didn’t check those reports strictly enough. A fake report can tell the site to fetch a file from a server the attacker controls and save it as a PHP file, which the server then runs.

The flaw is tracked as CVE-2026-125812 and rated 9.8 out of 10 for severity. That score reflects how little an attacker needs: no account, no user interaction, just a web request to a public address every WordPress site has.

A week from patch to mass attacks

  • 19 November: WP Media releases WP Rocket 3.24.2 with the fix.
  • 25 November, 15:27 UTC: Patchstack records the first exploitation attempt. It was a hands-on attacker trying a few sites and retrying with disguised versions when blocked.
  • 26 November: the activity turns into automated campaigns, with tens of thousands of blocked attempts that day alone.
  • 27 November: Patchstack publishes its warning; WP Media follows with its advisory over the weekend.
  • 30 November: BleepingComputer reports that Patchstack has blocked more than 25,000 malicious requests from several different attackers.

Patchstack says the attackers fire at both vulnerable features, sometimes in the same request, so that whichever one a site has enabled, the attack lands. Several independent groups are involved, so this is not a single campaign that will die down quickly.

Fix it in ten minutes

If your licence is active

  1. Log in to your WordPress dashboard and open Plugins.
  2. Find WP Rocket and check the version number under its name. Anything from 3.15 up to 3.24.1 needs updating.
  3. Click Update now and confirm the version reads 3.24.2 or later. If no update appears, WP Media has an update guide linked from its advisory.

If your licence has expired

This is the group most likely to be caught out, because the plugin keeps running after a licence lapses, but the updates stop arriving. WP Media’s advice is to switch off the two risky features until you can update:

  1. Go to WP Rocket > Page Optimization > Image & Media (on versions before 3.24, it’s the Media tab).
  2. Turn off LazyLoad for CSS background images and Self-host Google Fonts.
  3. Save, then reload the page to confirm both are off.

WP Media says this shuts the known attack routes straight away. Your pages may score slightly lower on speed tests in the meantime, which is a small price. Agencies and hosts looking after many sites can use a helper plugin WP Media published that switches both features off in bulk.

Updating doesn’t clean up a site that was already hit

This is the part people skip. The update stops new attacks. It does nothing about files an attacker planted before you got to it, and those can keep working long after the hole is closed. If your site ran a vulnerable version with either feature on at any point since 25 November, treat it as possibly compromised until checked.

Patchstack’s detection advice, in plain terms:

  • Look for PHP files you don’t recognise in wp-content/wp-rocket-config/, wp-content/uploads/ or directly in wp-content/, for example files named like wp-media-*.php.
  • Ask your host to search access logs for POST requests to /wp-admin/admin-ajax.php with action=rocket_beacon that report full web addresses instead of plain domain names.
  • Watch for your server making outbound connections to unfamiliar addresses, including names ending in nip.io or temporary trycloudflare.com tunnels.
  • Check Users in WordPress for administrator accounts nobody on your team created.

If you aren’t comfortable digging through server folders, that is normal. Send this list to your web host or developer and ask them to check. WP Media itself recommends bringing in your host or a security team if either setting was on while you were running a vulnerable version.

If something turns up

Don’t just delete the odd file and move on. Restore the site from a clean backup taken before 25 November if you have one, then update WP Rocket before bringing it back online. Change WordPress admin, hosting control panel and database passwords afterwards. Our guide to backup software for small businesses covers setting up backups you can actually restore from, if this exposes a gap.

If your site handles customer accounts or payments, a break-in may mean personal data was exposed. In the UK, organisations generally have 72 hours to report a personal data breach to the ICO once they know about it, unless it is unlikely to pose a risk to people. In the US, notification rules vary by state, so it is worth a quick call to a lawyer or your cyber insurer. Elsewhere, check with your national data protection authority.

Plugins are the soft spot

WordPress itself gets a lot of scrutiny. Plugins are where much of the risk sits, and a site with a dozen of them depends on a dozen separate developers getting things right. Last week we covered six WordPress plugins that were backdoored before release, and a PHP update fixing seven critical flaws sits underneath all of them.

The habits that protect you are boring but effective. Keep paid plugin licences current or replace the plugin. Turn on automatic updates where you can. Remove plugins you no longer use. And make sure someone, whether you, a staff member or your developer, actually owns the job of looking after the site, because attackers are not waiting for anyone to get round to it.

Similar Posts

Leave a Reply

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