WP Rocket Vulnerability CVE-2026-125812: Update to 3.24.2 and Check Your Site
If your WordPress site uses WP Rocket, this one is worth ten minutes today. A critical WP Rocket vulnerability, tracked as CVE-2026-125812, is being used in real attacks. The fix has been available since November 19, 202
If your WordPress site uses WP Rocket, this one is worth ten minutes today. A critical WP Rocket vulnerability, tracked as CVE-2026-125812, is being used in real attacks. The fix has been available since November 19, 2026, so for most sites the answer is a quick update plus a short check that nothing was left behind.
What happened
WP Rocket is a premium caching plugin that the company says runs on more than 5.5 million WordPress sites. Versions before 3.24.2 contain a flaw rated 9.8 out of 10 (critical). It lets someone with no login make the site download content from a place they control, save it as a PHP file and then run it.
The weak spot sits in a small script that measures each page and reports the results back to the site. The plugin did not check the reported addresses strictly enough, so a crafted report could be turned into code running on the server.
According to Patchstack, the first attempts were seen on November 25, six days after the patch came out, and tens of thousands of attempts were blocked on November 26 alone. Those are blocked requests, not confirmed hacked sites, but they show how quickly attackers move once a fix is public.
Is your site affected?
Two things have to be true. Your WP Rocket version is older than 3.24.2, and at least one of these settings is on: LazyLoad for CSS background images, or Host Fonts Locally (some reports call it Self-host Google Fonts). Both settings are off by default, but many performance-tuned sites turn them on.
What to do: Open Plugins in your dashboard and check the WP Rocket version. Then open WP Rocket settings and note whether either option above is enabled.
Step 1: Update WP Rocket
What to do: Update to 3.24.2 or later. If your license has expired or you cannot update right now, switch off both LazyLoad for CSS background images and Host Fonts Locally until you can. Patchstack says this closes the attack paths.
Step 2: Look for files that should not be there
Updating stops new attacks, but it does not remove anything an attacker already placed on your server. Treat patching and checking as two separate jobs.
What to do: Look in these folders for PHP files you do not recognize, especially names that start with wp-media- and end in .php:
- wp-content/wp-rocket-config/
- wp-content/uploads/
- wp-content/
A healthy uploads folder normally holds images and documents, not PHP files, so anything like that deserves a closer look.
Step 3: Read your logs
What to do: If you can reach your access logs, search for requests named rocket_beacon that come from visitors who never loaded the page they claim to be measuring. Also look at outbound connections from your server. Researchers mention unfamiliar hosts, nip.io names and temporary trycloudflare.com tunnels as signs worth a second look.
If you find anything, change your WordPress admin passwords, check the user list for accounts you did not create, and restore from a clean backup if you have one.
Step 4: Keep the basics tight
This is the third time in a few weeks that a fast-moving plugin problem has made the news, and it will not be the last. A few habits help every time:
- Turn on automatic updates for plugins you trust where that fits your setup
- Keep a recent backup stored away from the server
- Remove plugins and features you do not use
- Use a security plugin or firewall that can add protection while you update
Quick checklist
- Check the WP Rocket version, aim for 3.24.2 or later
- Review the LazyLoad for CSS background images and Host Fonts Locally settings
- Look for unexpected wp-media-*.php files in the three folders above
- Search logs for rocket_beacon requests from clients that did not load the page
- Make sure a fresh backup exists
- Review admin users and reset passwords if anything looks off
The good news is that the fix is simple and already out. A short check today puts you well ahead of the attackers who are scanning for sites that have not updated yet. If you would like a hand with an update, a clean-up check or ongoing site care, you can find me at expertwebdeveloper.in and growsmartwithai.com.
Sources
- The Hacker News, Hackers target critical WP Rocket flaw
- SecurityWeek, Critical WP Rocket vulnerability exploited days after patching
- GBHackers, Hackers exploit critical WP Rocket vulnerability
Also published on
Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.