# Is WP Rocket Putting Your Site at Risk? 7 Essential Answers on the WP Rocket Vulnerability and the Best Fix

Source: https://hostreta.com/2026/12/wp-rocket-vulnerability/

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](https://patchstack.com/database/wordpress/plugin/wp-rocket/vulnerability/wordpress-wp-rocket-plugin-3-24-2-remote-code-execution-rce-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.

Table of Contents

[Toggle](#)

- [What is the WP Rocket vulnerability?](#What_is_the_WP_Rocket_vulnerability)
- [Who is affected by the WP Rocket vulnerability?](#Who_is_affected_by_the_WP_Rocket_vulnerability)
- [How does the WP Rocket vulnerability work?](#How_does_the_WP_Rocket_vulnerability_work)
- [Is the WP Rocket vulnerability being exploited right now?](#Is_the_WP_Rocket_vulnerability_being_exploited_right_now)
- [What is the best fix for the WP Rocket vulnerability?](#What_is_the_best_fix_for_the_WP_Rocket_vulnerability)
- [What if you cannot update yet?](#What_if_you_cannot_update_yet)
- [How do you check whether the WP Rocket vulnerability hit your site?](#How_do_you_check_whether_the_WP_Rocket_vulnerability_hit_your_site)
- [What has your host done about the WP Rocket vulnerability?](#What_has_your_host_done_about_the_WP_Rocket_vulnerability)
- [Your 10-minute plan for the WP Rocket vulnerability](#Your_10-minute_plan_for_the_WP_Rocket_vulnerability)
- [FAQ about the WP Rocket vulnerability](#FAQ_about_the_WP_Rocket_vulnerability)
- [What is the WP Rocket vulnerability?](#What_is_the_WP_Rocket_vulnerability-2)
- [Is WP Rocket safe to use now?](#Is_WP_Rocket_safe_to_use_now)
- [Which WP Rocket versions are affected?](#Which_WP_Rocket_versions_are_affected)
- [Is the WP Rocket vulnerability being exploited?](#Is_the_WP_Rocket_vulnerability_being_exploited)
- [Do I need to turn off any settings?](#Do_I_need_to_turn_off_any_settings)
- [Does updating remove malware?](#Does_updating_remove_malware)
- [Did my host already patch it?](#Did_my_host_already_patch_it)
- [What should I do if my WP Rocket license expired?](#What_should_I_do_if_my_WP_Rocket_license_expired)

- [The bottom line on the WP Rocket vulnerability](#The_bottom_line_on_the_WP_Rocket_vulnerability)

## What is the WP Rocket vulnerability?

WP Rocket is a premium caching and speed plugin. According to [The Hacker News](https://thehackernews.com/2026/12/hackers-target-critical-wp-rocket-flaw.html), 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:

- ID: CVE-2026-125812.

- Severity: 9.8 on the CVSS scale, which is the critical band, as The Hacker News reports.

- Login needed: none. The attacker does not need an account on your site.

- Fixed in: WP Rocket 3.24.2, released November 19, 2026, per WP Rocket’s advisory.

- First attack seen: November 25, 2026 at 3:27 p.m. UTC, per Patchstack as quoted by The Hacker News.

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.

## Who is affected by the WP Rocket vulnerability?

Not every WP Rocket site is open to this WP Rocket vulnerability, and this is the part most headlines skip. [WP Rocket’s advisory](https://wp-rocket.me/docs/wp-rocket-security-advisory-and-mitigation-steps-for-cve-2026-125812/) 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:

- LazyLoad for CSS background images

- Self-host Google Fonts

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.

## How does the WP Rocket vulnerability work?

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.

## Is the WP Rocket vulnerability being exploited right now?

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](https://www.bleepingcomputer.com/news/security/hackers-exploit-critical-wordpress-wp-rocket-flaw-to-breach-sites/), 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.

## What is the best fix for the WP Rocket vulnerability?

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:

- Log in to your WordPress dashboard and open Plugins.

- Find WP Rocket and select Update now.

- Confirm the installed version reads 3.24.2 or higher.

- If you do not see an update, follow WP Rocket’s update guide, as the advisory suggests.

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.

## What if you cannot update yet?

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:

- Open WP Rocket, then Page Optimization, then Image & Media. On versions before 3.24, open the Media tab.

- Turn off LazyLoad for CSS background images and Self-host Google Fonts.

- Save your changes and confirm both settings are off on every affected site.

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.

## How do you check whether the WP Rocket vulnerability hit your site?

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:

- Requests named “rocket_beacon” that come from clients that never loaded the page they report on.

- Outbound requests from your web server to unfamiliar hosts, “nip.io” domains, temporary “trycloudflare.com” tunnels, or other possibly compromised WordPress sites.

- Unexpected PHP files named like “wp-media-*.php” in wp-content/wp-rocket-config/, wp-content/uploads/ or wp-content/.

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:

- Take the site offline or put it in maintenance mode while you work.

- Update WP Rocket and WordPress core, themes and other plugins.

- Remove the planted files only after you have copied them somewhere safe for your host to inspect.

- Change every password: WordPress admins, hosting panel, database, FTP and email.

- Review the Users screen for admin accounts you did not create.

- Restore from a clean backup taken before November 25, 2026 if you cannot trust the current state.

## What has your host done about the WP Rocket vulnerability?

Some hosts moved on the WP Rocket vulnerability before their customers did. [Bluehost’s status page](https://www.bluehost.com/status/issue/2812) 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.

## Your 10-minute plan for the WP Rocket vulnerability

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:

- Open Plugins in your dashboard and note the WP Rocket version.

- If it is below 3.24.2, update now. If you cannot, turn off LazyLoad for CSS background images and Self-host Google Fonts.

- Check wp-content/wp-rocket-config/, wp-content/uploads/ and wp-content/ for PHP files named like wp-media-*.php.

- Run a malware scan with the security tool you already use.

- Tell your host or client what you found, in writing.

- Set a reminder to review plugin updates every week, not every quarter.

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.

## FAQ about the WP Rocket vulnerability

### What is the WP Rocket vulnerability?

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.

### Is WP Rocket safe to use now?

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.

### Which WP Rocket versions are affected?

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.

### Is the WP Rocket vulnerability being exploited?

Yes. Patchstack recorded the first attempt on November 25, 2026, and The Hacker News reports tens of thousands of attempts blocked on November 26.

### Do I need to turn off any settings?

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.

### Does updating remove malware?

No. Patchstack says the update stops new attacks but does not remove files an attacker already planted. Check the three folders listed above.

### Did my host already patch it?

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.

### What should I do if my WP Rocket license expired?

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.

## The bottom line on the WP Rocket vulnerability

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](https://wp-rocket.me/docs/wp-rocket-security-advisory-and-mitigation-steps-for-cve-2026-125812/) and the [Patchstack’s entry for the WP Rocket vulnerability](https://patchstack.com/database/wordpress/plugin/wp-rocket/vulnerability/wordpress-wp-rocket-plugin-3-24-2-remote-code-execution-rce-vulnerability). For more plain-language guides on hosting and WordPress security, browse [the Hostreta guides](https://hostreta.com/).
