AI, Development & Tech News

Attackers target critical security vulnerability in WordPress plugin WP Rocket

261128 wp rocket security vulnerability update cover image
Skip to table of contents
Contents 4 sections
  1. How does the attack work?
  2. How do you get the update?
  3. What this means for you
  4. Sources

The security company Patchstack registered the first attempt to exploit a vulnerability in WP Rocket on November 25, 2026, at 4:27 p.m. German time. The caching plugin is supposed to make WordPress sites load faster. The flaw, tracked as CVE-2026-125812, reaches a critical 9.8 out of 10 points on the CVSS scale for the severity of security vulnerabilities.

According to Patchstack, versions before 3.24.2 are affected on websites that use LazyLoad for CSS background images or deliver Google Fonts from their own server. Both features are off by default, but are common on sites with optimized load times. Updating to 3.24.2 or newer fixes the flaw.

How does the attack work?

WP Rocket runs a small script in visitors' browsers that collects measurements on every page and reports them back to your website. The old versions do not check the reported addresses strictly enough. With a forged report, an attacker therefore gets the server to load a foreign file, save it as a PHP file, and execute its code.

According to the Patchstack report, the first attacker was still working by hand on a few websites. Within a day, automated waves of attacks were already running, and on November 26 alone the company blocked tens of thousands of attempts. The report does not say how many websites were actually taken over.

The secured version 3.24.2 has been available since November 19. However, the WP Rocket changelog only states under "Security" that cached files for CSS, fonts, and pre-established server connections (preconnect) are now checked better. A severity rating or a CVE number is missing, so you cannot tell the urgency from it.

The CVE entry also lists all versions before 3.24.2 as affected and does not limit the flaw to the two features. It is therefore best to install the update even if both features are switched off on your site.

How do you get the update?

WordPress's automatic plugin updates do not apply to WP Rocket, because the program code of version 3.24.1 disables them for its own plugin. Under Plugins, you trigger the update yourself if you have a valid license, and WP Rocket must be active for this.

If no update notice appears, you have WordPress check for updates again in the Dashboard menu under Updates. As another route, the update instructions mention the ZIP file from your customer account, which you install by hand. It is best to export your settings beforehand.

With an expired license, according to the help page on license expiration, you no longer receive plugin updates, but WP Rocket keeps running. Your website then stays on the vulnerable version until you renew the license.

What this means for you

It is best to check under Plugins today which version is installed on each of your websites, even if your host handles maintenance. For client projects, you tackle the sites with an expired license first.

WP Rocket: Your next step
Version and license determine what you do first now
What applies to your website?
  • Version before 3.24.2, license validUpdate immediately
  • Version before 3.24.2, license expiredRenew the license and update, until then switch off both features
  • Old version has been running since November 25Check folders and server logs for traces
The restriction to two features comes from Patchstack, not from the CVE entry
Sources: Patchstack, WP Rocket, CVE Program

As long as the update is not possible, Patchstack advises switching off both features. You will find the switches in the WP Rocket settings on the "Media" page; in the German translation they are called "Für CSS-Hintergrundbilder aktivieren" and "Google Fonts selbst hosten".

According to the company, the update does not remove files that have already been injected. On every website that has been running an old version since November 25, you should therefore search three folders for unknown PHP files, for example matching the pattern wp-media-*.php:

  • wp-content
  • wp-content/uploads
  • wp-content/wp-rocket-config

It's best not to delete anything hastily, because WP Rocket itself creates PHP files: advanced-cache.php in wp-content and a file named after your domain in wp-rocket-config. Patchstack also classifies connections from your server to unknown machines as suspicious, such as to addresses under nip.io or trycloudflare.com. If you find something, it's best to bring in your hosting provider.

A lesson in the WordPress course explains how you can keep themes and plugins up to date.

Patchstack published the report on the ongoing attacks on November 27, 2026.

Sources

Comments

Register and comment.

Continue reading

You might also like

View all articles →