WP Rocket: Critical Flaw Under Attack, Update to 3.24.2
WP Rocket, a widely used WordPress caching plugin, has a critical flaw that attackers are already exploiting. According to Patchstack, it lets someone without an account run code on the site's server. It affects versions before 3.24.2, released on November 19, 2026, and only when certain options are turned on.
What we know
- What it is: according to Patchstack's advisory of November 27, 2026, it is an unauthenticated remote code execution flaw (CVE-2026-125812) with a CVSS score of 9.8 out of 10, rated critical. An attacker with no user account on the site can make the server save and run a file of their choosing.
- When it applies: Patchstack says it only affects versions before 3.24.2 that have one of two options enabled: lazy loading of CSS background images, or hosting Google Fonts locally. Both are off by default, though Patchstack notes they are common on sites tuned for speed.
- The fix: WP Rocket's official changelog dates version 3.24.2 to November 19, 2026 and lists a security item: improved validation of the cached CSS, font and preconnect files. It does not name the CVE. The latest version is 3.24.3, from November 26.
- Active attacks: Patchstack saw the first attempt on November 25, 2026 at 15:27 UTC. According to its advisory, within a day it turned into automated campaigns, with tens of thousands of blocked attempts on November 26 alone.
- Reach: WP Rocket says on its press page that it is used by more than 5.5 million websites. There is no public figure for how many have either option enabled.
- What is not known: the sources reviewed do not say who discovered the flaw or how many sites have been compromised.
What changes and what doesn't
The flaw is in the WP Rocket plugin, not in WordPress itself or the server. If your site does not use WP Rocket, it is not affected.
If it does and it is already on 3.24.2 or later, the flaw is fixed. But Patchstack makes an important point: updating stops new attacks, it does not remove files an attacker has already planted. That is why it matters whether your site ran an older version with either option on at any time since November 25.
WP Rocket is a paid plugin that is not distributed through the wordpress.org directory. A site with an expired licence or without automatic updates can stay on an old version without anyone noticing, so it is worth checking even if your dashboard shows no warning.
How to check if you are affected
- Check the version. In your WordPress dashboard, go to Plugins and find WP Rocket. If it shows a version before 3.24.2, update today to the latest one. Take a backup first if your site does not do so automatically.
- If you cannot update right away, Patchstack recommends turning off both options in the WP Rocket settings: lazy loading for CSS background images ("LazyLoad for CSS background images") and hosting Google Fonts locally (Patchstack calls it "Host Fonts Locally"; the plugin changelog calls it "Self-Host Google Fonts").
- Check whether you were exposed. If your site ran an older version with either option on after November 25, open your hosting file manager and look for
.phpfiles you do not recognise inwp-content,wp-content/uploadsandwp-content/wp-rocket-config. Patchstack mentions names starting withwp-media-. There should be no PHP files in the uploads folder. - If you find anything odd, do not delete it blindly. This is advice from this article, not from the advisory: ask your host or whoever manages the site for a security review, change the administrator passwords and check for admin users you do not know.
- If someone else manages your site, ask them: "Which WP Rocket version is my site on, is its licence active, and were CSS background lazy loading or locally hosted Google Fonts turned on?"
Related: LiteSpeed Cache: Two XSS Flaws, Update to 7.9.4
Sources
- Patchstack, "Critical WP Rocket RCE (CVE-2026-125812) Under Active Attack", November 27, 2026
- WP Rocket, official plugin changelog
- WP Rocket, press page
- The Hacker News, "Hackers Target Critical WP Rocket Flaw…", December 1, 2026
Updates: if WP Rocket publishes its own advisory or there is new data on the attacks, it will be added here with a link.