The WP Rocket vulnerability is a critical flaw, tracked as CVE-2026-125812 and rated 9.8 out of 10, that lets an attacker with no login write and run PHP code on a WordPress site. It is not a theory. Patchstack published the details of the WP Rocket vulnerability, and the first attack it recorded was on November 25, 2026. If your site uses the WP Rocket caching plugin, the short answer to the question in our title is yes, it can put your site at risk, but only if you are on an old version and one of two settings is switched on. The fix is a plugin update.
We write about web hosting and WordPress for site owners and freelancers, so we read every source on this WP Rocket vulnerability before writing a word. This guide answers the seven questions people search for most: what the WP Rocket vulnerability is, who is affected, how the attack works, how to fix it, what to do if you cannot update, how to check whether you were hit, and what your host may already have done. Every claim below comes from WP Rocket, Patchstack, Bluehost or the press reports we name, and we say when a number comes from a news report instead of the vendor.
One note before we start. Our own Hostreta site does not run WP Rocket, so nothing here is a confession. We checked our plugin list this morning to be sure. We are writing this because WP Rocket is one of the most popular paid plugins in WordPress, and a warning that reaches you today is worth more than one that reaches you after a break-in.
WP Rocket is a premium caching and speed plugin. According to The Hacker News, citing WP Rocket’s own website, it is used on more than 5.5 million WordPress sites and has over 386,000 customers worldwide. That reach is the reason this WP Rocket vulnerability matters. A flaw in a niche plugin touches a few sites. A flaw here touches a very large slice of the web.
The flaw is a remote code execution bug. In plain words, it lets a stranger on the internet make your server create a PHP file and then run it. PHP is the language WordPress is written in, so a file the attacker controls can do almost anything the site can do: read your database login, add an admin user, redirect your visitors or send spam from your server.
Here are the core facts of the WP Rocket vulnerability, in the order we could confirm them:


The screenshot above is the vendor’s own advisory page, titled “WP Rocket security advisory and mitigation steps for CVE-2026-125812.” Read it once, because it is short and it is the source for the version range we use below. We rely on it more than on any news summary for the exact versions.
Not every WP Rocket site is open to this WP Rocket vulnerability, and this is the part most headlines skip. WP Rocket’s advisory says the WP Rocket vulnerability affects websites running WP Rocket versions 3.15 through 3.24.1 where at least one of two features is switched on:
Patchstack makes the same point and adds that both settings are off by default. But it also says both are common on performance-tuned sites, and a plugin like WP Rocket is exactly what people install to tune performance. So the honest reading is this: if you installed WP Rocket and then worked through its optimization options, there is a real chance one of those two boxes is ticked.
There is one wording difference between sources that you should know about. The Hacker News writes that the WP Rocket vulnerability affects all versions before 3.24.2. WP Rocket’s advisory gives the range 3.15 through 3.24.1. Both agree on the safe version: 3.24.2 or later. If you are unsure which range applies to you, the answer is the same, so update.
If you manage client sites, do not stop at your own. Check every site for the WP Rocket vulnerability. Agencies often run WP Rocket on dozens of installs, and the older ones tend to be the ones nobody opens. Make a list of every site that has the plugin, then check each version number on the Plugins screen.
The technical story of the WP Rocket vulnerability is simple enough to follow without being a developer. According to the report quoted by The Hacker News, WP Rocket runs a small script in visitors’ browsers. The script measures each page and reports the results to a public AJAX endpoint on your site, and the plugin then uses those reports to optimize the page.
The problem is validation. Because the plugin does not check the reported URLs strictly enough, an attacker can send a crafted report. That report makes the site download content from a server the attacker controls and save it as a PHP file. The next request can then run that file. No password, no login, no click from you. That is why the WP Rocket vulnerability scores 9.8.
Patchstack names the two optimization features that open the door: CSS background lazy loading and local hosting of Google Fonts. This explains why turning them off blocks the WP Rocket vulnerability as a stopgap. If those code paths are off, the vulnerable route is not reachable.

The screenshot shows the Hacker News report, published December 1, 2026 under the headline “Hackers Target Critical WP Rocket Flaw Allowing Unauthenticated Remote Code Execution.” It is a news report, so we use it for the numbers about attacks and for the Patchstack quotes, and we use the vendor page for the fix.
Yes. The Hacker News reports that the first exploitation attempt hit WP Rocket’s measurement endpoint on November 25, 2026, and that the activity grew into large automated efforts, with tens of thousands of attempts blocked on November 26 alone. The same report says Wordfence blocked 135 attacks on this WP Rocket vulnerability in a 24-hour period. BleepingComputer’s coverage, dated November 30, 2026, describes the same active exploitation.
What does the WP Rocket vulnerability mean for you? Automated attacks do not choose targets by name. They scan for the endpoint and try the same request on every site they find. A small blog gets hit the same way a large store does. Being unimportant is not protection against an automated scan.
We want to be careful with numbers here. “Tens of thousands of attempts” and “135 blocked attacks” are the figures reported by The Hacker News. They are attempts, not confirmed break-ins, and nobody has published a count of sites that were actually compromised. We will not invent one.
The best fix is to update WP Rocket to version 3.24.2 or later. This is WP Rocket’s own instruction, and the advisory gives the release date as November 19, 2026. Here is the path for an active license:
That is the entire fix for the WP Rocket vulnerability on most sites. It takes a minute, and the cost of skipping it is the chance of a site takeover. If you use a staging site, you can test the update there first, but do not let testing turn into a week of delay while automated attacks are running.
Remember what the update does and does not do. Patchstack’s warning, repeated by The Hacker News, is direct: the update stops new attacks, but it does not remove files an attacker already planted. If you ran a vulnerable version while one of the two settings was on, updating is step one, not the finish line. The next section covers step two.

Sometimes an update is blocked. A license may have expired, or a site may sit behind a change freeze. WP Rocket’s advisory gives a workaround for that case, and it works by switching off the two features involved:
The advisory says turning off both settings mitigates the documented attack paths right away, and that you should keep them off until you install 3.24.2 or later. This workaround for the WP Rocket vulnerability is a bridge, not a destination. You can also expect a small speed cost, because you are disabling two optimizations.
For people who manage many sites, WP Rocket also offers a mitigation helper plugin that disables the same two features in bulk, and the advisory shows WP-CLI commands for it. On multisite, the advisory says to install the helper once and activate it on each affected subsite. We have not tested the helper ourselves, and as with any plugin, you should download it only from the WP Rocket page linked in the advisory.
The advisory also tells people with an expired license to contact WP Rocket about renewal while they apply the workaround. A renewal is the clean way to get the 3.24.2 update, so do not leave the workaround in place forever.
This is the question that matters most if you were running an old version in late November. Patchstack shared indicators of compromise, which The Hacker News lists. Treat them as a checklist for you or your host to find a WP Rocket vulnerability break-in:
The simplest check for the WP Rocket vulnerability is the third one. Open your file manager or connect over SFTP and look in those three folders for PHP files you do not recognize. A real uploads folder should hold images and documents, not PHP. If you see a file that matches the pattern, do not just delete it and move on. Ask your host or a security professional to look, because the attacker may have added accounts or other backdoors, and WP Rocket’s advisory says any files or accounts an attacker already created need separate investigation.
Security plugins can help with scanning. Wordfence said it blocked attacks on this WP Rocket vulnerability. Still, a scanner is a second line of defense. The first line is the update.
If you do find signs of compromise, here is a sensible order of work:
Some hosts moved on the WP Rocket vulnerability before their customers did. Bluehost’s status page says it performed an emergency security patch of WP Rocket on the sites it hosts that use the plugin, to protect them from CVE-2026-125812. The notice is dated November 30, 2026.
There was a side effect of the WP Rocket vulnerability patch. Bluehost’s notice says that after the update some of those sites showed the WP Rocket license as not validated. On December 2, 2026 it made a follow-up change to address the license issue, and it says a subset of those sites were temporarily unavailable during that change. It also says that has been corrected, and the incident page shows Resolved.

What should you take from that? If you host with a company that patches plugins for you, check your dashboard anyway. A host patch may be in place, but you still want to see the plugin version, confirm your license state and run the file check above. We do not have information on what other hosts did, and we would rather say so than guess. Ask your own host directly, and keep their answer.
If you are not sure whether your host manages updates, assume it does not. Log in and look.
If you only read one section on the WP Rocket vulnerability, read this one. Here is a plan any site owner can finish before the next coffee:
The last step is the lasting lesson. This WP Rocket vulnerability was fixed on November 19 and attacked on November 25, which means sites that updated promptly were already safe when the first attack arrived. The gap between a patch and an attack is often only days. Auto-updates for trusted plugins, or a weekly update habit, close that gap.
It is CVE-2026-125812, a critical remote code execution flaw in the WP Rocket plugin. It scores 9.8 on CVSS and lets an unauthenticated attacker write and run PHP code on affected sites.
Version 3.24.2 and later contain the fix, according to WP Rocket. If you update and check your site for planted files, you are using the patched plugin. Safety also depends on whether your site was hit before you updated.
WP Rocket’s advisory lists versions 3.15 through 3.24.1 with LazyLoad for CSS background images or Self-host Google Fonts enabled. The Hacker News describes it as all versions before 3.24.2.
Yes. Patchstack recorded the first attempt on November 25, 2026, and The Hacker News reports tens of thousands of attempts blocked on November 26.
If you can update to 3.24.2 or later, you do not need the workaround. If you cannot, WP Rocket says to turn off LazyLoad for CSS background images and Self-host Google Fonts until you can.
No. Patchstack says the update stops new attacks but does not remove files an attacker already planted. Check the three folders listed above.
Bluehost says it patched WP Rocket on the sites it hosts on November 30, 2026. Other hosts may have done the same, so ask yours and verify the plugin version yourself.
WP Rocket’s advisory says to turn off the two features as a workaround and to arrange a renewal, since the fixed version comes through the normal update channel.
So, is WP Rocket putting your site at risk? If you run version 3.24.1 or older with LazyLoad for CSS background images or Self-host Google Fonts turned on, yes, and attackers have been scanning for exactly that since November 25. If you have updated to 3.24.2 or later, the documented WP Rocket vulnerability is closed, though you should still check for files planted before the update.
Update first, check second, ask your host third. For the official details, read WP Rocket’s security advisory and the Patchstack’s entry for the WP Rocket vulnerability. For more plain-language guides on hosting and WordPress security, browse the Hostreta guides.
We may earn a commission on purchases made through these links, at no extra cost to you.
Don’t miss the chance to participate in the biggest giveaway of this year.