What happened with WP Rocket?
WP Rocket is a paid plugin that speeds up WordPress sites: it caches pages, minifies files and delays image loading. According to Patchstack, it runs on more than 5.5 million sites.
To optimize each page, the plugin runs a small script in visitors’ browsers that measures the page and reports the result back to the site. The problem is that the plugin did not validate that data strictly enough. An attacker can send a fake report that makes the site download a file from the attacker’s server and save it as PHP. From then on, that code runs on your server as if it were part of the site (Patchstack).
Running code on the server is the worst case: the attacker can create admin users, add redirects to scam sites, steal form data or use your site to attack others.
Is my site affected?
It is if both conditions are true:
- You run WP Rocket in a version older than 3.24.2.
- You have at least one of these two options turned on: “LazyLoad for CSS background images” or “Host Fonts Locally”.
Both options are off by default, but they are very common on sites where someone worked on speed. If you don’t know who set up your site, assume they may be on.
Since when is it being attacked?
The fixed version came out on November 19, 2026. Patchstack recorded the first attack attempt on November 25 and, the next day, there were already automated campaigns with tens of thousands of blocked attempts in a single day. Attackers try both paths at once and go from site to site without picking targets.
It is the usual pattern: between a patch and the first attacks there are days, sometimes hours. A site that gets updated “whenever someone remembers” is exposed right in that window.
What should I do now?
- Update WP Rocket to version 3.24.2 or later from the WordPress dashboard (Plugins) or from your WP Rocket account if updates don’t show up.
- If you can’t update right now, turn off the two options above in the plugin settings until you can.
- Take a full backup before and after updating.
- Check the list of administrator users and delete any you don’t recognize.
Is updating enough?
Not always. The update stops new attacks, but it does not remove files an attacker planted earlier. If your site ran a vulnerable version with either option on after November 25, check:
- Unexpected PHP files in wp-content/wp-rocket-config/, wp-content/uploads/ or directly in wp-content/, for example with names like wp-media-something.php.
- In the server logs, requests to admin-ajax.php with the rocket_beacon action coming from addresses that never loaded the page.
- Outbound connections from the server to odd domains, such as nip.io addresses or trycloudflare.com tunnels.
If you find any of this, the site is compromised: deleting the file is not enough. Change every password (WordPress, database, FTP, hosting), review the rest of the files and, if needed, restore a clean backup.
Why does this happen so often with plugins?
Because that is where almost all of a WordPress site’s code lives. More than 12,000 WordPress vulnerabilities were published in 2026 up to November 21, and 90% were in plugins; WordPress core accounts for less than 1% (WPVulnerability).
It doesn’t mean WordPress is insecure. It means every plugin is third-party software with its own flaws, and a site’s security depends on how many you have, who maintains them and how fast they are updated.
How to avoid the next scare
- Install only the plugins you use and delete deactivated ones: a disabled plugin can still have vulnerable files.
- Turn on automatic updates for security and caching plugins, or make someone responsible for checking them every week.
- Keep WordPress up to date: version 7.1.5, released November 18, fixed more than a dozen security flaws (WordPress.org).
- Use a supported PHP version. Versions older than 8.2 no longer get security patches.
- Keep daily backups stored off the server, and test at least once that they can be restored.
- Use a web application firewall (from your host, Cloudflare or a specialized service) that blocks known attacks while you update.
We cover these practices in more depth in PHP vulnerabilities: how to protect your website. At AiDo Creative, maintenance, backups and updates for the sites we host are defined within our hosting and maintenance service.
In short
- WP Rocket before 3.24.2 has a critical flaw (CVE-2026-125812) that allows running code without a password.
- It only applies if lazy loading of CSS backgrounds or local font hosting is turned on.
- It has been exploited since November 25, 2026 in automated attacks.
- Updating stops new attacks, but it does not remove files already planted: you need to check.
Frequently asked questions
How do I know which WP Rocket version I have?
In the WordPress dashboard, go to Plugins and find WP Rocket: the version appears under its name. You can also see it in the plugin's own menu, on the main dashboard tab.
Can I deactivate WP Rocket until I update?
Yes. The site will load more slowly, but it is no longer exposed to this flaw. It is better to turn off only the two affected options, if you know where they are.
I use another caching plugin. Am I safe?
This flaw is specific to WP Rocket. Still, make sure all your plugins are up to date, because others also release security fixes often.
Does my hosting provider protect me?
It depends. Some providers run firewalls that block known attacks, but they don't replace the update. Ask your provider whether they have rules for CVE-2026-125812, and update anyway.
Answers from the AiDo Creative teamHosting
Web hosting, VPS and dedicated servers, and n8n hosting with no per-execution fees.



