Using WP Rocket? Update now to stay safe
If you use WP Rocket, we recommend you update your WordPress plugins as soon as you can.
A new critical security flaw in the popular WordPress plugin WP Rocket is being actively exploited. If you’re running a WordPress site with WP Rocket, you should update the plugin immediately.
Am I affected?
The vulnerability, officially listed as CVE-2026-125812 lets unauthenticated attackers write and execute PHP code on sites using WP Rocket versions 3.24.1 or lower. The exploit abuses two of the plugin’s optimisation features: LazyLoad for CSS background images and local hosting of Google Fonts. Whether you use these features or not, we recommend everyone using WP Rocket updates the plugin.
The vulnerability was patched on November 19, 2026, with the release of version 3.24.2. If you’ve already updated WP Rocket since then you’ll already be protected.
Update plugin version ASAP
If you’re using WP Rocket for your WordPress site, the best thing you can do is update the plugin to version 3.24.2 or later.
If you use WordPress Hosting, Web Hosting, or any other cPanel hosting service, follow these steps to update WP Rocket.
- Log in to cPanel.
- Navigate to the WordPress Management page.
- Select Plugins from the WP Toolkit menu.
- Find and tick WP Rocket from your plugins list.
- Select Update.
If you can't update today
If you've got WP Rocket installed but you have good reasons to not want to update the plugin, or your WP Rocket license has expired, then there is a workaround to mitigate the vulnerability.
- Open the WP Rocket plugin.
- Turn off LazyLoad for CSS background images and Self-host Google Fonts.
- Save your changes, and confirm both settings are off on all your websites.
- Keep these settings switched off until you are able to update WP Rocket to 3.24.2 or later.
WP Rocket has detailed mitigation instructions and the latest information about the vulnerability on their website.
Keep your website safe
WP Rocket is a popular WordPress plugin used for caching improvements and speeding up website performance. If you use WP Rocket, or are unsure, we encourage you to update your WordPress plugins to keep yourself protected.