Using WP Rocket? Update plugin now to stay safe

If you use WP Rocket, we recommend you update the WordPress plugin as soon as you can.

/
Date

Simple icons for a padlock, alert symbol and a shield sit in front of a grey/bue background. The SiteHost logo sits in front of the shield.

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 installed, you should update the plugin immediately.

Am I affected?

The vulnerability, listed as CVE-2026-125812 lets unauthenticated attackers write and execute PHP code on sites using WP Rocket version 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.

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.

The vulnerability was patched on November 19, 2026, with the release of version 3.24.2. You’re already protected if you’ve updated WP Rocket since then.

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 WordPress site safe

WP Rocket is a popular WordPress plugin used for caching and improving website performance. If you use WP Rocket, we encourage you to update your WordPress plugins to keep yourself protected.