If your WordPress site uses the WP Rocket caching plugin, please check it today. A critical security flaw, tracked as CVE-2026-125812, lets an attacker run arbitrary code on an affected site without needing to log in. Security firm Patchstack reports that automated attacks targeting this vulnerability are already underway, so this isn’t one to leave until next week.
Who’s affected
Your site is at risk if both of these are true:
- It’s running WP Rocket version 3.15 up to and including 3.24.1.
- At least one of two features is turned on: LazyLoad for CSS background images or Self-host Google Fonts.
If you’re on an affected version but neither feature has ever been enabled, the documented attack paths don’t apply to you. We’d still recommend updating.
The fix: update to WP Rocket 3.24.2 or newer
WP Rocket released version 3.24.2 on November 19, 2026, which closes the hole. If your license is active, log in to your WordPress dashboard, go to Plugins, and click Update now under WP Rocket. Then confirm that the version number shows 3.24.2 or higher.
Can’t update right away?
If your WP Rocket license has expired, or you need a little time before updating, you can block the known attack paths by turning off the two vulnerable features:
- In WordPress, go to WP Rocket → Page Optimization → Image & Media (on versions older than 3.24, this is the Media tab).
- Switch off both LazyLoad for CSS background images and Self-host Google Fonts.
- Save, then double-check that both settings are still off.
Leave them disabled until you’ve installed 3.24.2 or later. This is a stopgap. Updating the plugin is still the real fix.
Managing several sites?
WP Rocket has published a small helper plugin that switches off both features automatically, which is handy if you look after many WordPress installs. It can be deployed in bulk with WP-CLI:
wp plugin install ./wp-rocket-mitigate-cve-2026-125812.zip --activate
On WordPress Multisite, install it once and then activate it on each affected subsite. You’ll find the download link and Multisite instructions in WP Rocket’s official advisory.
What if my site was already exposed?
Updating or changing settings stops new attacks, but it won’t undo anything an attacker may have already done. If either feature was enabled while your site ran a vulnerable version, it’s worth checking for signs of compromise, such as unfamiliar admin users, unexpected files, or modified plugin and theme code. Patchstack has published detection guidance that walks through what to look for.