WP Rocket Flaw CVE-2026-125812: Update to 3.24.2 Now
Share: https://www.ellixorlabs.com/blog/wp-rocket-flaw-cve-2026-125812-update-3-24-2-now (copy URL for iMessage or social)
Published (display in IST)
Updated (IST)

Attackers are exploiting a critical WP Rocket flaw that lets them run code on WordPress sites without logging in. Here is who is affected, how to fix it today and how to check for damage.
Attackers are exploiting a critical flaw in WP Rocket, the WordPress caching plugin, to run code on sites without logging in. It affects versions 3.15 to 3.24.1 when LazyLoad for CSS background images or Self-host Google Fonts is on. Update to WP Rocket 3.24.2 or later, or switch both settings off, then check for planted files.
What is the WP Rocket vulnerability?
CVE-2026-125812 is a path traversal bug scored CVSS 9.8 (critical). WP Rocket builds cache file paths from stylesheet and font URLs without making sure the result stays inside the cache folder, so a crafted request can write a file elsewhere and the site can then run it. No login is needed. The flaw sits in the plugin's cache handling, not in WordPress core.
Is it being exploited right now?
Yes. WP Rocket's own advisory, last updated on 27 November 2026, says a security researcher reported active automated exploitation attempts. Reports put the first attack on 25 November, with tens of thousands of blocked attempts by 26 November. The fix itself shipped earlier, in WP Rocket 3.24.2 on 19 November 2026, so sites that have not updated in the last nine days are exposed.
Not sure whether your WordPress site is patched or already compromised? We will check it free within 24 hours: send us your URL.
Which sites are affected?
Your site is at risk only if both conditions are true:
1. It runs WP Rocket 3.15 through 3.24.1.
2. LazyLoad for CSS background images or Self-host Google Fonts is switched on.
Both settings are off by default, but they are popular on sites tuned for speed and Core Web Vitals. The plugin is installed on millions of sites, so even a small share of vulnerable setups adds up to a lot of targets.
How do I fix it today?
1. In WordPress, open Plugins, find WP Rocket and select Update now. Confirm the version is 3.24.2 or later.
2. If your licence has expired or you cannot update yet, go to WP Rocket, Page Optimization, Image and Media and turn off both LazyLoad for CSS background images and Self-host Google Fonts. Keep them off until you update.
3. If you manage several sites, WP Rocket publishes a helper plugin that switches both settings off in bulk, and you can deploy it with WP-CLI.
4. Clear your caches and confirm both settings show as off on every affected site.
How do I know if my site was already hit?
Updating stops new attacks through the documented paths, but it does not remove anything an attacker already planted. If either setting was on while you ran a vulnerable version since the exploitation began, look for unexpected PHP files in wp-content, wp-content/uploads and the WP Rocket cache folders. Check server logs for odd POST requests to admin-ajax.php and for outbound connections to hosts you do not recognise. Review admin users, scheduled tasks and file modification dates too. If you find a web shell, treat the whole server as compromised: restore from a clean backup, rotate every password and key, and patch before going live again.
What should businesses learn from this?
Speed plugins run with deep access to your files, so they need the same patch discipline as WordPress core. Turn on automatic updates for security releases, keep an inventory of plugins and versions, and remove features you do not use. Our WordPress core flaw guide and our website maintenance guide cover the routine that would have closed this gap in a day. A similar rush of attacks hit Drupal sites this week, as we covered in our Drupal installer flaw report.
Do I need to uninstall WP Rocket? No. Updating to 3.24.2 or later is enough to close the hole. If you cannot update straight away, turn off LazyLoad for CSS background images and Self-host Google Fonts as a temporary measure.
Need help? We secure and maintain WordPress sites for businesses across India and abroad. Contact us or see our web development services for a patch audit and malware check.
FAQ
Is WP Rocket safe to use after the update?
Yes. WP Rocket 3.24.2 fixes the validation problem, and WP Rocket tells users to install that version or later. Update first, then check your site for files left behind by earlier attacks.
Do I need to uninstall WP Rocket?
No. Updating to 3.24.2 or later is enough to close the hole. If you cannot update straight away, turn off LazyLoad for CSS background images and Self-host Google Fonts as a temporary measure.
Which WP Rocket versions are vulnerable to CVE-2026-125812?
WP Rocket's advisory lists versions 3.15 through 3.24.1, and only when LazyLoad for CSS background images or Self-host Google Fonts is enabled. Version 3.24.2, released on 19 November 2026, is fixed.
How do I check if my WordPress site was hacked through a plugin?
Look for unexpected PHP files in wp-content and the uploads folder, review admin users and scheduled tasks, and check server logs for odd requests to admin-ajax.php. If you find a web shell, restore from a clean backup and rotate all passwords and keys.
Talk to Ellixor Labs about this topic.
Source: WP Rocket