Skip to content
Montavio Group

WP Rocket critical flaw (CVE-2026-125812): update to 3.24.2, it is already under attack

An unauthenticated vulnerability (CVSS 9.8) in the WP Rocket caching plugin may affect more than 5.5 million WordPress sites. Attacks began on November 25, 2026. Here is how to check whether you are affected and what to do.

Montavio expert team5 min read
A dark code editor with program code on a laptop screen

Photo: Nemuel Sereti / Pexels (cropped) · illustration

In brief

The flaw in the WP Rocket WordPress plugin, identified as CVE-2026-125812, allows unauthenticated remote code execution (CVSS 9.8). The fix is version 3.24.2, released on November 19, 2026. According to Patchstack, the first attack attempt was detected on November 25 at 15:27 UTC, and by November 26 tens of thousands of attempts had already been blocked. The flaw can only be exploited if the “LazyLoad for CSS background images” or “Self-host Google Fonts” feature is turned on; both are off by default. The update does not remove files that have already been planted, so it is worth checking for suspicious PHP files as well. According to BleepingComputer and SecurityWeek, the plugin is used on more than 5.6 million sites.

What happened?

WP Rocket is one of the best-known caching and speed plugins for WordPress. Its developer, WP Media, released version 3.24.2 on November 19, 2026, which fixes a critical flaw. Patchstack described the flaw in detail on November 27, including the fact that it is already under attack.

The flaw's identifier is CVE-2026-125812, and its severity is CVSS 9.8 (critical). It can be exploited without authentication, that is, without logging in, and allows remote code execution: the attacker can write PHP code to the site's server and run it.

A hiba legfontosabb adatai
AdatValue
IDCVE-2026-125812
SeverityCVSS 9.8, kritikus (Patchstack, SecurityWeek)
TypeUnauthenticated remote code execution
Affected versionsAccording to the vendor, 3.15–3.24.1; according to Patchstack and BleepingComputer, all versions before 3.24.2
Fixed version3.24.2 (2026. november 19.)
Condition“LazyLoad for CSS background images” or “Self-host Google Fonts” is turned on (both are off by default)
First detected attack2026. november 25., 15:27 UTC (Patchstack)
UsersMore than 5.6 million sites (BleepingComputer, SecurityWeek); “5.5M+” (Patchstack)

How does the attack work?

According to Patchstack, a public AJAX endpoint of the plugin does not properly validate the web addresses sent to it. With a fake report, an attacker can trick a site into downloading content from the attacker, saving it as a PHP file and running that file.

The observed attacks were POST requests with the rocket_beacon action sent to wp-admin/admin-ajax.php. The malicious files were downloaded from bare IP addresses, nip.io names and trycloudflare.com tunnels, and possibly from compromised WordPress sites as well.

Both affected features are turned off by default, so not every WP Rocket site is vulnerable. However, if you turned either of them on for speed, your site is exposed.

Are you affected? How to check

Two conditions must be met: the WP Rocket version you are running is older than 3.24.2, and at least one of the two affected features is turned on.

  • In the WordPress admin, check the Plugins page to see which version of WP Rocket you are running. If it is 3.24.2 or newer, you are already protected against this flaw.
  • Open WP Rocket > Page Optimization > Image & Media (in versions before 3.24, on the “Media” tab) and check whether “LazyLoad for CSS background images” or “Self-host Google Fonts” is turned on.
  • If your license has expired, the update may not be available: in that case, turning off the two features is the temporary workaround recommended by the vendor.
  • Do you manage several sites (multisite)? The vendor released a helper plugin that turns off the two features, and it can also be installed with WP-CLI.

What to do now, in order

The goal is to close the flaw first, then check whether any damage has already been done.

  • Update to WP Rocket 3.24.2 or newer. This is the only real fix.
  • If you cannot update immediately, turn off the “LazyLoad for CSS background images” and “Self-host Google Fonts” settings, save, and verify that both are really turned off. This reduces the risk but does not fix the plugin.
  • Make a backup before updating, especially if your site is important to your business.
  • Check the site for the signs below, even if you have already updated.
  • If Patchstack or another security tool provides virtual patching, you can use it temporarily, but it does not replace the update.

How can you tell whether you have already been hacked?

The update does not remove files or accounts that the attacker planted before the update. Both Patchstack and the vendor warn that you need to check afterward as well.

  • Look for files named wp-media-*.php in wp-content/wp-rocket-config/, wp-content/uploads/ and wp-content/.
  • Watch the server's outgoing connections: traffic to nip.io or trycloudflare.com is suspicious.
  • Check the logs for POST /wp-admin/admin-ajax.php requests with the rocket_beacon action, from November 25 onward.
  • Review the users: is there an administrator you did not create?
  • If anything looks suspicious, follow the first-60-minutes steps in our article on a hacked WordPress site: take the site offline, save the logs, clean it or restore it from a clean backup, and change all passwords and keys.

What does this case teach?

The fix was released on November 19 and the first attack came on November 25: according to Patchstack and SecurityWeek, six days passed. With a flaw like this, you have days, not weeks.

In practice this means three things: have someone who tracks security updates, have a recent backup, and have regular maintenance, not only when something is wrong. Most WordPress sites are not broken into by rare, complex attacks, but by flaws that were fixed but never patched.

Frequently asked questions

Mi a CVE-2026-125812?
A critical (CVSS 9.8) security flaw in the WP Rocket WordPress plugin that allows unauthenticated remote code execution. The fix is version 3.24.2.
Which WP Rocket version is safe?
3.24.2 and newer versions. According to the vendor, versions 3.15–3.24.1 are affected; according to other sources, all versions before 3.24.2.
Is the WP Rocket flaw already being attacked?
Yes. According to Patchstack, the first attack attempt was detected on November 25, 2026 at 15:27 UTC, and on November 26 tens of thousands of attempts were blocked.
What should I do if I cannot update WP Rocket immediately?
Turn off the “LazyLoad for CSS background images” and “Self-host Google Fonts” settings on WP Rocket's Image & Media page, and verify that both are turned off. This reduces the risk but does not fix the plugin, so the update should be done as soon as possible.
Is updating enough if the site has already been hacked?
No. The update does not remove files or accounts that the attacker planted earlier. Check for suspicious PHP files named wp-media-*.php in the wp-content directories, as well as the logs and the users.

WordPress maintenance at Montavio

Updates, supervision and verified maintenance for your WordPress site.

See WordPress maintenance

Sources and further reading

Montavio newsletter

Build a better website.
One useful email a month.

Practical tips on websites, SEO, security and online growth, without the noise.

Double opt-in confirmation is required. Privacy notice