Secure Steps

Cybersecurity assessments, insights, and clear remediation.

Category:

Critical WP Rocket Flaw Under Active Attack: Is Your Site at Risk?

WP Rocket CVE-2026-125812 actively exploited

If your WordPress site uses the WP Rocket plugin to speed up its pages, this alert concerns you directly.

What happened?

On 27 November 2026, Patchstack disclosed a critical vulnerability tracked as CVE-2026-125812. It lets an unauthenticated attacker write and execute PHP code on the site. It affects WP Rocket versions before 3.24.2 on sites that have either LazyLoad for CSS background images or Host Fonts Locally turned on. Patchstack rates it 9.8 out of 10. Both features are off by default.

Is it being exploited?

Yes. Patchstack recorded the first attack attempt on 25 November. Within a day it had turned into automated campaigns, with tens of thousands of blocked attempts on 26 November alone, coming from several separate attacker groups.

How does it work?

The plugin stored URLs sent by visitors without enough validation. The two features above then fetched the content at that URL and saved it in the cache folder with a .php extension, turning it into a backdoor that runs on the server.

What should you do now?

  1. Update WP Rocket immediately to version 3.24.2 or later. Version 3.24.3 followed on 26 November.
  2. If you can’t update right away, turn off both LazyLoad for CSS background images and Host Fonts Locally.
  3. Check your site: look for unexpected PHP files, such as files named wp-media-*.php under wp-content, and review your logs.
  4. If you find signs of compromise, updating is not enough. Change passwords and the keys in wp-config, and restore a clean backup.

Bottom line

Performance plugins are part of your attack surface like any other plugin. Turn on automatic updates for critical plugins, and review which features are enabled on a regular basis.

Need help checking your site? Contact the Secure Steps team.

Sources: Patchstack