If you run a WordPress site with WP Rocket, update it today. Attackers are exploiting a critical flaw in the popular caching plugin, tracked as CVE-2026-125812 (CVSS 9.8), that lets them run their own code on a site without logging in.
The fix is in WP Rocket 3.24.2, released on November 19. Exploitation started six days later and quickly turned into automated campaigns, according to WordPress security firm Patchstack.
What is the WP Rocket vulnerability?
WP Rocket runs a small script in visitors’ browsers that measures each page and reports back to the site so the plugin can optimise it. In affected versions, the plugin did not check those reported URLs strictly enough.
An attacker can send a fake report that makes the site download content from the attacker’s server and save it as a PHP file. That file then runs on the server, which can mean full control of the website.
Only sites with one of these two optimisation features switched on can be attacked:
- LazyLoad for CSS background images
- Self-host Google Fonts (Patchstack calls it “Host Fonts Locally”)
Both are off by default, but many site owners enable them to improve speed scores.
Key facts
| CVE | CVE-2026-125812 |
|---|---|
| Severity | Critical (CVSS 9.8) |
| Login needed? | No |
| Affected | Versions before 3.24.2 with one of the two features above enabled |
| Fixed in | 3.24.2 (November 19, 2026); latest is 3.24.3 |
| First attack seen | November 25, 2026 |
| Sites using WP Rocket | More than 5 million |
How bad are the attacks?
Patchstack says the first attacker worked by hand on November 25. Within a day, the activity had become automated, with tens of thousands of blocked attempts on November 26 alone. Several independent groups are involved, and they host their payloads on bare IP addresses, temporary Cloudflare tunnels and other WordPress sites that were likely hacked earlier. SecurityWeek also reported the campaign.
What to do now (step by step)
- Update WP Rocket to 3.24.2 or later. In your dashboard go to Plugins and click Update under WP Rocket. Check the version number afterwards on the official changelog.
- Can’t update? (For example, your licence has expired.) Go to WP Rocket settings and turn off both LazyLoad for CSS background images and Self-host Google Fonts. This closes both attack paths until you can update.
- Look for planted files. The update stops new attacks but does not remove anything an attacker already added. Check
wp-content/,wp-content/uploads/andwp-content/wp-rocket-config/for unfamiliar PHP files, such as files named likewp-media-*.php. Your host’s file manager or an SFTP app works for this. - Check your users. In Users, delete any admin account you don’t recognise.
- Change passwords for WordPress admins, hosting and the database if you find anything suspicious, and restore a clean backup from before November 25 if needed.
- Ask your host for help. Most hosts can scan for malware and review logs for requests to
admin-ajax.phpwithaction=rocket_beacon.
Why this matters even for small blogs
Automated attacks don’t care how big your site is. A hacked blog can be used to host malware, send spam or redirect visitors to scam pages, and Google may flag it as dangerous, which wipes out your traffic and any ad or affiliate income. If you build WordPress sites for clients as a freelancer, check every site you manage today. Our guide to the best freelancing sites for beginners covers how to win that kind of work.
Plugins are not the only weak spot. Make sure your admin email is secure too: here is how to check if your email has been compromised.
FAQ
I use the free version of another caching plugin. Am I affected?
No. This flaw is specific to WP Rocket, which is a paid plugin. Keep every plugin updated anyway.
I updated after November 25. Am I safe?
New attacks are blocked, but if one of the two features was on before you updated, check for planted files and unknown admin users as described above.
Sources: Patchstack, SecurityWeek, WP Rocket changelog.
