Attackers are exploiting a critical flaw in WP Rocket, one of the most popular caching plugins for WordPress, to plant and run their own PHP code on websites. They don't need to log in. The WP Rocket vulnerability, tracked as CVE-2026-125812, is fixed in WP Rocket 3.24.2, so if you use WP Rocket, check your version today.
Below we explain who is affected, what the attackers are doing, and what to do now, based on WP Rocket's own security advisory and changelog, Patchstack's report on the attacks and BleepingComputer's coverage, all checked on November 30, 2026.
Related Articles
- How To Clear WP Rocket Cache
- WordPress 7.1.5 Security Release: What It Fixes And How To Update
- WordPress Security Checklist: 20 Steps To Protect Your Site
WP Rocket Vulnerability At A Glance
| Detail | CVE-2026-125812 |
|---|---|
| Plugin | WP Rocket (paid caching plugin by WP Media) |
| Type | Remote code execution, no login needed |
| Severity | CVSS 9.8, Critical (Patchstack) |
| Affected | Versions 3.15 to 3.24.1, only with LazyLoad for CSS background images or Self-host Google Fonts turned on |
| Fixed in | 3.24.2, released November 19, 2026 |
| First attempt seen by Patchstack | November 25, 2026, 15:27 UTC |
Who Is Affected
According to WP Rocket's advisory, your site is at risk only if all of these are true:
- It runs WP Rocket 3.15 through 3.24.1.
- At least one of two features is turned on: LazyLoad for CSS background images or Self-host Google Fonts. Patchstack calls the second one Host Fonts Locally.
Both features are off by default. But Patchstack notes that both are common on sites tuned for speed. WP Rocket's changelog shows that LazyLoad for CSS background images arrived in version 3.15 on August 31, 2023, which matches where the affected range starts.
The plugin is widely used. BleepingComputer reports that WP Media says WP Rocket runs on more than 5.6 million sites for 394,000 customers.
How The Attack Works
Patchstack explains it in plain terms. WP Rocket runs a small script in visitors' browsers that measures each page and reports back to a public endpoint on your site. WP Rocket then uses the reported addresses to optimize the page, but it doesn't check them strictly enough.
An attacker can send a fake report that makes your site download a file from the attacker's server and save it as a PHP file. That code then runs on your server, which can give the attacker control of the site.
Patchstack says every attempt it has seen goes to the same place: a POST request to /wp-admin/admin-ajax.php with action=rocket_beacon. Some attackers try both features in one request, so whichever one your site uses, the attack has a path in.
What Attackers Are Doing Right Now
Here is how fast this moved:
- November 19: WP Rocket released the fix in version 3.24.2, according to its changelog.
- November 25, 15:27 UTC: Patchstack saw the first attempt, made by hand against a few sites.
- November 26: Patchstack says the activity had become automated campaigns, with tens of thousands of blocked attempts that day alone.
Patchstack says several separate groups are involved. They host their malicious files on bare IP addresses, nip.io addresses, temporary trycloudflare.com tunnels and other WordPress sites that were likely already hacked. Patchstack also published the ten busiest attacking IP addresses in its report.
One detail is easy to miss. The 3.24.2 entry in WP Rocket's changelog lists the fix as a one-line security item, "Improve validation of cached CSS, font and preconnect files", without naming the CVE or saying how serious it was. WP Rocket has since released 3.24.3, on November 26, which also includes the fix.
What To Do Now
Update WP Rocket
If your license is active, go to Plugins, find WP Rocket and click Update now. Then check that the version shows 3.24.2 or later. WP Rocket's advisory points to its update guide if you don't see the update.
If You Can't Update Yet
If your license has expired or you can't update straight away, WP Rocket says to turn off the two features:
- Go to WP Rocket → Page Optimization → Image & 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 keep both off until you've installed 3.24.2 or later.
WP Rocket says turning both off mitigates the documented attack paths immediately. In our view, the small speed cost of turning these features off for a few days is worth it until you can update.
If You Manage Many Sites
WP Rocket offers a downloadable helper plugin, "WP Rocket | Mitigate CVE-2026-125812", that turns off both features. Agencies and hosts can deploy it with WP-CLI, then should check that both settings are off on each site. On Multisite, WP Rocket says to install it once and activate it on each affected subsite. It's a stopgap, so still update WP Rocket as soon as you can.
How To Check If Your Site Was Hit
Updating stops new attacks, but it doesn't remove anything an attacker already planted. If either feature was on while your site ran a vulnerable version, WP Rocket says to ask your host or security team to check for signs of compromise. Patchstack lists what to look for:
- New PHP files in
wp-content/wp-rocket-config/,wp-content/uploads/or directly inwp-content/, such as files namedwp-media-*.php. - rocket_beacon requests in your logs from visitors who never loaded the page they reported on.
- Outbound connections from your server to unfamiliar hosts, nip.io addresses or trycloudflare.com tunnels.
Our advice: if you find anything, treat the site as hacked. Restore a backup from before the attack, or ask your host to clean the site. Patchstack's first sighting was November 25. Earlier attacks can't be ruled out, though, so a backup from before November 19, when the fix came out, is safer. Remove any admin accounts you don't recognize, change all passwords, and update WP Rocket to 3.24.2 or later before the site goes back online. Our security checklist covers the rest.
WP Rocket Vulnerability: FAQs
Is my site safe if I never turned on those two features?
According to WP Rocket's advisory, the flaw only affects sites with LazyLoad for CSS background images or Self-host Google Fonts turned on. Update anyway, because a teammate or a past setup may have turned one on.
Can I get the fix with an expired license?
WP Rocket's advisory gives the Update now steps for sites with an active license. If your license has expired or you can't update yet, it says to turn off the two features and keep them off while you arrange a renewal.
Is CVE-2026-125812 really being exploited?
Yes. Patchstack saw the first attempt on November 25, 2026, and automated campaigns from November 26. WP Rocket's advisory cites Patchstack's report of active, automated exploitation attempts.
Final Thoughts
If you use WP Rocket, update to 3.24.2 or later today, or turn off LazyLoad for CSS background images and Self-host Google Fonts until you can. Then check for planted PHP files if either feature was on. Let us know in the comments if you need help checking your site.
Sources
We checked these sources for this article on November 30, 2026:

