Attackers are exploiting a critical WP Rocket vulnerability that lets them run their own PHP code on WordPress sites without logging in. WordPress security firm Patchstack said in its November 27 advisory that the flaw, tracked as CVE-2026-125812 and rated 9.8 out of 10, affects WP Rocket versions before 3.24.2. BleepingComputer reported on November 30 that attacks have moved from a few manual attempts to automated campaigns.

WP Rocket is one of the most common caching plugins on business WordPress sites. Its developer, WP Media, says it runs on more than 5.6 million sites, according to BleepingComputer. The fix has been out since November 19, so this is a patching race the site owner can win with one update and a short check.

We’re treating it as a same-day job for every WordPress site we look after that runs WP Rocket. Update first, then look for anything the attackers may have left behind, because the update closes the door but doesn’t clean the room.

What changed

Patchstack says the bug sits in a small script WP Rocket runs in visitors’ browsers to measure each page. The script reports results to a public endpoint, and WP Rocket didn’t check those reports strictly enough. A crafted report can make the site download a file from a server the attacker controls and save it as PHP, which then runs on the server.

Two settings open the path: LazyLoad for CSS background images and Host Fonts Locally. Both are off by default, but Patchstack points out they’re common on sites that have been tuned for speed. A site with neither turned on isn’t exposed to this flaw.

The timeline, from Patchstack and the WP Rocket changelog:

  • November 19: WP Rocket 3.24.2 ships with improved validation of cached CSS, font and preconnect files.
  • November 25, 15:27 UTC: Patchstack sees the first exploitation attempt.
  • November 26: attacks turn automated, with tens of thousands of blocked attempts that day alone.
  • November 27: Patchstack publishes its advisory and attacker IP addresses.

Patchstack says every attempt so far goes to admin-ajax.php with the action rocket_beacon. Attackers often target both settings in one request, and they host their payloads on bare IP addresses, nip.io names, temporary trycloudflare.com tunnels and other WordPress sites that were likely hacked.

What it means for your business

If your site runs WP Rocket older than 3.24.2 with either setting on, assume someone has already tried it. A successful attack gives the attacker code running on your server, which can mean spam pages, redirects that hurt your search rankings, stolen form data or a site your host suspends.

The tricky part is that a patched site can still be compromised. Patchstack and BleepingComputer both stress that updating doesn’t remove files an attacker planted before the update. Sites that ran an older version with either setting on between November 25 and the day they updated need a check, even if everything looks normal from the front end.

Sites that don’t use WP Rocket, or that use it with both settings off, can relax about this one. Agencies and freelancers who manage many sites should check them all, since automated scans don’t care how small a site is.

What we’d do this week

  1. Update WP Rocket to 3.24.2 or later today. The current release is 3.24.3. Confirm the version number on the Plugins screen afterward, especially on sites where automatic updates are off or held back by the host.
  2. Turn the two settings off if you can’t update right away. In WP Rocket’s settings, open the Media tab and switch off LazyLoad for CSS background images and the option to host Google Fonts locally. WP Media has also released a helper plugin for people managing several sites.
  3. Look for planted files. Patchstack suggests checking wp-content/wp-rocket-config/, wp-content/uploads/ and the top of wp-content/ for PHP files you don’t recognize, such as names starting with wp-media-.
  4. Read your logs. Search access logs for POST requests to admin-ajax.php with action=rocket_beacon since November 25, and check for outbound connections from your server to nip.io, trycloudflare.com or unfamiliar IP addresses.
  5. Block the known attacker addresses. Patchstack has published the IP addresses behind most of the blocked attempts. Add them to your firewall or security plugin.
  6. If you find anything, clean properly. Restore from a backup taken before November 25, change admin and hosting passwords, rotate database credentials and API keys stored in wp-config.php, then update before the site goes back online.

For more on WordPress speed settings, see our guide to speeding up a WordPress site. For the last WordPress core patch, see our WordPress 7.1.5 brief.

If you’d rather not do the checks yourself, our website maintenance team can update the plugin, scan for planted files and review logs, and our WordPress development team can rebuild anything that needs replacing. Start with a free audit if you want us to look at the whole site.