WP Rocket security advisory and mitigation steps for CVE-2026-125812
The CVE-2026-125812 vulnerability affects websites running WP Rocket versions 3.15 through 3.24.1 where at least one of the following features is enabled:
Under these conditions, an attacker can execute arbitrary code on the affected website without authentication.
Patchstack has reported active automated exploitation attempts targeting vulnerable sites. You can see the Patchstack advisory here.
Note: This issue is fixed in the WP Rocket 3.24.2 version, released on November 19, 2026.
If you have an active license
In your WordPress dashboard, go to Plugins, find WP Rocket, and select Update now. Confirm that the installed version is 3.24.2 or later.
If you don’t see an update, follow our WP Rocket update guide.
If your license has expired or you can’t update it yet
- Open WP Rocket > Page Optimization > Image & Media. On versions before 3.24, open the Media tab.
- Turn off LazyLoad for CSS background images and Self-host Google Fonts.
- Save your changes and confirm that both settings are off on each affected site.
Turning off both settings mitigates the documented attack paths immediately. Keep them off until you install WP Rocket 3.24.2 or later.
If you’d like help renewing your license, contact us. Apply the workaround while you arrange the renewal.
If you manage multiple sites
Use the following mitigation helper plugin to apply the above workaround across your sites.
📥 Download (.zip): WP Rocket | Mitigate CVE-2026-125812
Developers: You can find the code for this plugin on GitHub.
This helper disables the two features involved in the documented attack paths.
Agencies and hosting providers can deploy it in bulk using WP-CLI or their existing deployment tooling. After deployment, verify that both settings are off on each affected site.
wp plugin install ./wp-rocket-mitigate-cve-2026-125812.zip --activate
Please install WP Rocket 3.24.2 or later as soon as you can!
On Multisite
Install the helper plugin once and activate the helper individually on each affected subsite.
With WP-CLI, use this for each site:
wp plugin activate wp-rocket-mitigate-cve-2026-125812 --url=https://example.com/subsite/
And, please install WP Rocket 3.24.2 or later as soon as you can!
If your site was previously exposed
If either setting was enabled while your site was running a vulnerable version, ask your hosting provider or security team to check for signs of compromise. An update or settings change can prevent new exploitation through the documented paths. Any files or accounts an attacker already created require separate investigation.
Please refer to Patchstack’s detection guidance.