XOtavo

Blog › Security

Security

WordPress Sites Using WP Rocket: Update to 3.24.2 Now

By XOtavo · November 29, 2026 · 2 min read

If your business website runs on WordPress and uses the WP Rocket caching plugin, it is worth checking it today. A flaw in WP Rocket, CVE-2026-125812, lets an attacker run their own code on a website without logging in. WP Rocket fixed it in version 3.24.2, released November 19. Security firm Patchstack reports that attacks began on November 25 and quickly turned into automated campaigns, with tens of thousands of blocked attempts on November 26 alone.

The short version: update WP Rocket to 3.24.2 or later. If you can't update right away, turn off two settings, LazyLoad for CSS background images and Self-host Google Fonts, and ask your web team to check the site for files nobody added.

What the flaw does

WP Rocket speeds up WordPress sites. Patchstack explains that the plugin runs a small script in visitors' browsers that measures each page and reports back to the site, and the site does not check those reports strictly enough. A crafted report can make the site download a file from the attacker's server and save it as code that then runs on the server. Patchstack rates it 9.8 out of 10 (critical).

Who is at risk

  • WordPress sites running WP Rocket 3.15 through 3.24.1, according to WP Rocket's advisory.
  • Only when at least one of two features is turned on: LazyLoad for CSS background images or Self-host Google Fonts. Patchstack notes both are off by default but are common on sites tuned for speed.
  • Sites with an expired WP Rocket license may not be getting updates automatically, so they are worth a closer look.

What to do this week

  1. Find out whether your site uses WP Rocket. Ask your web developer or hosting company if you are not sure.
  2. Update the plugin. In the WordPress dashboard, go to Plugins, find WP Rocket, select Update now, and confirm the version is 3.24.2 or later.
  3. If you can't update yet, turn off the two features. WP Rocket's advisory says to open WP Rocket > Page Optimization > Image & Media (the Media tab on versions before 3.24), turn off LazyLoad for CSS background images and Self-host Google Fonts, and save. Keep them off until the update is in.
  4. Check for signs of tampering. Updating stops new attacks but does not remove anything an attacker already planted. Patchstack suggests looking for unexpected PHP files in wp-content/wp-rocket-config/, wp-content/uploads/ or directly in wp-content/ (for example files named wp-media-*.php), and for rocket_beacon requests in the site's logs.

Questions to ask your web team

  1. Does our website use WP Rocket, and which version is installed now?
  2. Are LazyLoad for CSS background images or Self-host Google Fonts turned on?
  3. Has anyone checked the site for files that were added since November 25?
Sources2 sources for this pageSee this page’s sources  ·  All sources & credits

Not sure whether your website uses WP Rocket, whether it has been updated, or whether anything was planted on it? We can check it, coordinate the update with your web team, and look for signs of tampering. Call 713.980.2000 or send us a note.

Let's Talk →
← All posts  ·  Prepared by XOtavo