Critical WP Rocket flaw exploited six days after patch release

Patchstack reports active exploitation of CVE-2026-125812 (CVSS 9.8) in WP Rocket, which allows unauthenticated code execution. Version 3.24.2 fixes it, but does not clean up sites already compromised.

An IT administrator seen from behind works at dual monitors in a Riyadh office in late afternoon light.

Key points

  • CVE-2026-125812 (CVSS 9.8) affects WP Rocket versions 3.15 through 3.24.1 and allows unauthenticated code execution on the server.
  • Exploitation requires LazyLoad for CSS background images or Self-host Google Fonts to be enabled; both are off by default but often turned on for performance.
  • Version 3.24.2 was released on November 19; exploitation began on November 25 and became automated within a day.
  • Patchstack saw tens of thousands of blocked attempts on November 26 alone, from several independent operators.
  • Updating does not remove files or accounts created by attackers on sites compromised before the patch.

Patchstack, a WordPress security firm, has warned that attackers began exploiting a critical vulnerability in the WP Rocket plugin less than a week after a fix was released. WP Rocket is a premium caching and performance plugin used on more than 5.6 million sites.

What happened

The flaw, CVE-2026-125812 (CVSS 9.8), exists in versions 3.15 through 3.24.1. The plugin did not sufficiently validate URLs reported during page optimization. A crafted report could make the site download attacker-controlled content and save it as a PHP file, which is then executed on the server without authentication.

The issue can only be triggered when LazyLoad for CSS background images or Self-host Google Fonts is enabled. Both are disabled by default but are commonly switched on to improve performance.

Version 3.24.2 was released on November 19. Exploitation started on November 25, and by the next day Patchstack saw automated campaigns with tens of thousands of blocked attempts. Several independent operators are involved, using payloads hosted on bare IP addresses, wildcard DNS names, temporary Cloudflare tunnels and possibly compromised WordPress sites.

What to do

Site owners should update to the latest version and then check for signs of compromise. Updating does not remove files or accounts that attackers created before patching. Where an update is not immediately possible, or the licence has expired, disabling the two affected features closes the attack paths. A mitigation helper plugin is available for organisations managing many sites.

What to do now

  1. Inventory all WordPress sites, including those run by marketing teams and third parties, and identify which use WP Rocket and which version.
  2. Update WP Rocket to the latest version (3.24.2 or later) on every site.
  3. After updating, review sites for unexpected PHP files in the web root and cache directories, and for unrecognised user accounts, especially on sites that were exposed since November 19.
  4. Where updating is delayed or the licence has expired, disable LazyLoad for CSS background images and Self-host Google Fonts until the plugin can be updated.
  5. If compromise is found, treat it as an incident: isolate the site, follow your incident response process and notify as required by your regulator's reporting rules.
  6. Add third-party plugins to your patch management scope with a defined timeline for critical fixes, given exploitation began within days.

How useful was this story?

Related frameworks

Need help acting on this?

Our consultants can assess your exposure and map the change to your controls and evidence.

Talk to an expert

Regulatory updates in your inbox

SAMA, NCA and SDAIA changes and what they mean for your institution — once a month.

E-mails in

We confirm by e-mail; unsubscribe any time. Manage your subscription · Past issues

Schedule a Free Assessment