Have a web emergency? We'll fix your site free! →

WP Rocket Vulnerability: What the RCE Attacks Mean for Your Site

A critical WP Rocket vulnerability is under active attack. Learn who is at risk, how to patch or switch off the risky features, and how to check for a break-in.

Nick Stafford, Chief Executive Officer 7 min read
WP Rocket Vulnerability: What the RCE Attacks Mean for Your Site Security

A critical WP Rocket vulnerability is under active attack, and the fix has been out since November 19. The flaw, tracked as CVE-2026-125812 with a CVSS score of 9.8, lets an attacker run their own PHP code on a WordPress site without logging in. Patchstack saw the first exploit attempt on November 25 and automated campaigns the next day. If your site runs WP Rocket, update to version 3.24.2 or later today, then check whether anyone got in before you did.

The bug itself is serious. The bigger story is the six days between the patch and the first attack, and the sites that still cannot install the fix because their license has expired. In our experience, that gap is where WordPress sites get hacked.

What the WP Rocket vulnerability does

WP Rocket is one of the most widely used paid caching plugins for WordPress. Patchstack lists it at more than 5.5 million installs. To tune pages for speed, the plugin runs a small script in each visitor’s browser that reports page measurements back to the site through a public AJAX endpoint.

According to Patchstack’s write-up, the plugin did not check the URLs in those reports strictly enough. A crafted report can make the server download content from an attacker and save it as a PHP file, which then runs. That is remote code execution, the worst class of WordPress bug, because whoever controls that file controls the site.

WP Rocket’s own advisory confirms the core facts:

  • Affected versions: 3.15 through 3.24.1.
  • Fixed version: 3.24.2, released November 19, 2026.
  • Conditions: the site must have at least one of two features turned on, LazyLoad for CSS background images or the option to self-host Google Fonts.
  • Impact: in WP Rocket’s words, “an attacker can execute arbitrary code on the affected website without authentication.”

Both features are off by default. Patchstack notes they are common on sites that have been tuned for performance, which describes many of the sites that buy WP Rocket in the first place.

How fast the attacks started

Patchstack logged the first exploit attempt at 15:27 UTC on November 25. The first attacker appeared to work by hand, retrying with encoded payloads after being blocked. By November 26, automated campaigns were running, and Patchstack says it blocked tens of thousands of attempts that day alone. Cyber Security News points out that this figure counts blocked attempts and says nothing about how many sites were hacked. None of the reports we reviewed include a count of compromised sites.

Patchstack also reports several separate operators at work. One group sent identical requests from four residential IP addresses, which suggests a rotating proxy service. Attackers hosted their payloads on bare IP addresses, wildcard DNS names, temporary tunnels and what Patchstack describes as likely compromised WordPress sites.

Six days is a short window. It is also typical. Once a fix ships, anyone can compare the old and new code to find the bug. The release notes become a map for attackers, and sites that wait a week or two to update are the ones that get hit.

Why the off-by-default argument falls short

Some will read “both features are off by default” and relax. That would be a mistake. People pay for WP Rocket to make their sites faster, and lazy loading background images and hosting fonts locally are standard speed advice. Agencies often switch them on as part of a site launch checklist. Many owners have no idea which boxes were ticked years ago.

The honest answer to “am I exposed?” is that you should check the settings and the version, and you should assume yes until you have.

The expired license problem

This is where the WP Rocket vulnerability turns into a wider debate about paid plugins. WP Rocket is sold outside the WordPress.org plugin directory. Updates come through the vendor, tied to an active license. WP Rocket’s advisory has a separate section for people with an expired license or who cannot update yet. For them, the advice is to turn off the two risky features by hand and keep them off.

That is a reasonable stopgap, and WP Rocket deserves credit for publishing it, along with a small helper plugin that switches both features off across many sites. It also shows the trade site owners make when a premium plugin’s license lapses. The plugin keeps running on the site. The security fixes stop arriving.

We have written about this pattern before. The Rank Math PRO backdoor showed how paid plugins can become a single point of failure. The WordPress core vulnerability fixed in 7.1.4 showed how fast attackers move once a patch is public. A popular plugin with a lapsed license is the same risk with a slower fuse.

Our stance is simple. If a plugin runs on your site, it needs a working update path. A paid plugin with an expired license should be renewed, replaced or removed. Leaving it installed and unpatched invites exactly the kind of attack now hitting WP Rocket sites.

What to do right now

Work through these steps in order. Most sites can finish them in under an hour.

1. Update WP Rocket

Go to Plugins in your WordPress dashboard and confirm WP Rocket shows version 3.24.2 or later. If no update appears and your license is active, WP Rocket’s advisory points to its update guide. Confirm the version number after the update finishes.

2. If you cannot update, turn off the two features

WP Rocket’s advisory says to open WP Rocket, then Page Optimization, then Image and Media (the Media tab on versions before 3.24). Turn off LazyLoad for CSS background images and the Google Fonts self-hosting option, then save. The vendor says this “mitigates the documented attack paths immediately.” Keep them off until you can update.

3. Look for signs of a break-in

Updating closes the hole. It does not remove anything an attacker already planted. Both Patchstack and WP Rocket say exposed sites need a separate check. Patchstack suggests looking for:

  • Unexpected PHP files in wp-content/wp-rocket-config/, wp-content/uploads/ or wp-content/, especially files named like wp-media-*.php.
  • POST requests to /wp-admin/admin-ajax.php with action=rocket_beacon from clients that never loaded the page they report on.
  • Outbound requests from your web server to unfamiliar hosts, nip.io names or trycloudflare.com tunnels.

Cyber Security News suggests reviewing web and outbound traffic logs back to at least November 25. If you find a suspicious file, do not just delete it. Save a copy and the related logs, then bring in your host or a security team. A planted file is often one of several.

4. Rotate what matters if you find anything

If there is any sign of compromise, change admin passwords, database credentials and API keys stored on the site, and review your user list for accounts you did not create. Our WordPress site security checklist covers the full cleanup order.

What this means for how sites are run

The WP Rocket vulnerability is a good test of how a site is managed. A well run site had the update installed within a day or two of November 19 and never saw the attack. A neglected site may already have a back door in its uploads folder.

Three habits separate the two:

  • Updates on a schedule measured in days. Weekly is too slow for critical plugin fixes. Attackers started six days after this patch.
  • A firewall that can block a known exploit before you patch. Patchstack says its mitigation rule was live more than two days before the first attack arrived. Virtual patching at the server or edge buys time while updates roll out.
  • File and malware scanning that runs on its own. If something slips through, you want to find the planted file within hours.

None of this is exotic. It is routine work, and it is exactly the work that gets skipped on busy sites. Caching plugins sit deep in the request path, which makes them both valuable and dangerous. A plugin that touches every page load deserves the same care as WordPress core.

FAQ

Is my site affected by the WP Rocket vulnerability?

Your site is at risk if it runs WP Rocket 3.15 through 3.24.1 and has either LazyLoad for CSS background images or the Google Fonts self-hosting option turned on. Version 3.24.2 and later are fixed.

Does turning off the features fix the problem?

WP Rocket says turning off both features blocks the documented attack paths right away. It is a temporary measure. Updating to 3.24.2 or later is the real fix.

If I already updated, am I safe?

You are safe from new attacks through this flaw. If your site was vulnerable after November 25, check for unexpected PHP files and unusual traffic, because the update does not remove anything an attacker planted earlier.

My WP Rocket license expired. What should I do?

Turn off the two features now, as WP Rocket’s advisory describes. Then renew the license, switch to another caching setup, or remove the plugin. An unpatched paid plugin is a standing risk.

Let us handle the patch window

On WP Farm, security updates, firewall rules and malware scanning are included with the hosting. If you are not sure whether your site was exposed, run our free security test or talk to our support team, and we will help you check.

Nick Stafford Chief Executive Officer Nick founded WP Farm and runs it, along with its sister company SADOS. He has managed WordPress hosting and server infrastructure since 2008, and he writes about WordPress speed, security and hosting from that work.