Attackers are actively exploiting a critical flaw in WP Rocket, the WordPress caching plugin that runs on more than 5.5 million sites. The flaw, tracked as CVE-2026-125812, lets anyone on the internet write and run PHP code on a vulnerable site — no login, no password, no special access.
Patchstack reported on November 27, 2026 that attacks are underway, only six days after the fix shipped. If your site runs WP Rocket, the check in this guide takes about 15 minutes and tells you whether you are exposed — and whether an attacker already got in.
The short version: update WP Rocket to version 3.24.2 or later, then look for signs of a break-in. Updating stops new attacks, but it does not remove files an attacker already planted — so the update alone is not enough if your site was hit before you patched.
What Happened: WP Rocket RCE at a Glance
| Detail | What it is |
|---|---|
| CVE | CVE-2026-125812 |
| Severity | CVSS 9.8 (Critical) — unauthenticated remote code execution |
| Product | WP Rocket by WP Media — WordPress caching plugin, 5.5M+ sites |
| Affected | Versions before 3.24.2, only when "LazyLoad for CSS background images" or "Host Fonts Locally" is on |
| Fixed in | 3.24.2, released November 19, 2026 |
| First attack | November 25, 2026, 15:27 UTC |
| Status | Under active attack; automated campaigns from November 26 |
Remote code execution is the worst category of website flaw: it means the attacker can run their own code on your server, with your site's own permissions. From there they can deface pages, steal data, redirect your visitors, or quietly use your site to attack others. That is why a 9.8 score and active exploitation together make this a drop-everything fix, not a routine update.
Are You Exposed?
Two things both have to be true for your site to be exposed: a vulnerable version and one of the two settings switched on. Either condition on its own is not enough, which is why many WP Rocket sites are safe even though the flaw is critical. Check both before you worry — or before you relax.
| Your setup | Risk |
|---|---|
| WP Rocket before 3.24.2 + LazyLoad for CSS background images on | Exposed — update now |
| WP Rocket before 3.24.2 + Host Fonts Locally on | Exposed — update now |
| WP Rocket before 3.24.2, both settings off | Not exposed to this flaw — update anyway |
| WP Rocket 3.24.2 or later | Fixed — safe from new attacks |
| No WP Rocket installed | Not affected |
Both settings are off by default, but they are common on speed-tuned sites — exactly the sites that install a caching plugin in the first place. If you or a developer ever worked on your site's speed, assume the settings might be on and check them rather than guessing. The settings live under WP Rocket > Page Optimization > Image & Media > Media tab.
How the Attack Works
WP Rocket runs a small script in your visitors' browsers that measures each page — how it loads, what it contains — and reports the results back to your site. The report goes to a public endpoint, POST /wp-admin/admin-ajax.php with the action rocket_beacon, which anyone on the internet can reach without logging in.
The plugin uses the URLs in those reports to build optimised assets — downloading fonts or CSS background images to serve them locally. Before version 3.24.2 it did not check those URLs strictly enough. An attacker can send a forged report that makes your site download content from the attacker's server and save it as a PHP file, which the server then runs.
The attack needs no login, no user interaction, and no special network position — the endpoint is public by design, because it serves every visitor. Attackers try both vulnerable feature paths in a single request, so whichever of the two settings your site has on, one of them fires. Several independent operators are running campaigns, and payloads are hosted on bare IP addresses, nip.io wildcard DNS names, trycloudflare.com tunnels, and WordPress sites that are likely already compromised.
What makes this flaw dangerous is the combination: a public endpoint, no login required, and a result — a saved PHP file — that the server executes on its own. Many vulnerabilities need an attacker to chain several weaknesses together. This one needs a single crafted request, which is why the first manual attempt turned into automated campaigns within a day.
What an Attacker Gets From Your Site
Once the PHP file runs, the attacker has code execution on your server. In practice that means they can add admin users, install plugins, read your database credentials, redirect your visitors to scam pages, or host malicious files on your domain. Your site can also end up blocklisted by Google and security vendors, which kills your search traffic until it is cleaned. The damage is rarely the defacement you can see — it is the abuse you cannot.
Telling a Real Beacon Request From an Attack
The beacon endpoint is meant to receive reports from real visitors, so blocking it outright would break the feature. The difference is in the pattern: a real report follows a page load from the same browser, with the same IP address and a normal user agent.
An attack report arrives on its own, from an address that never loaded the page, often with a forged or missing referrer. That is why Patchstack's detection sign is not the endpoint itself, but requests from clients that never loaded the page they report on.
Timeline: From Fix to Active Attacks
| Date | What happened |
|---|---|
| Nov 19, 2026 | WP Rocket 3.24.2 released — the fix |
| Nov 25, 2026, 15:27 UTC | First exploitation attempt, done by hand |
| Nov 26, 2026 | Automated campaigns begin; tens of thousands of attempts blocked in one day |
| Nov 27, 2026 | Patchstack publishes its report on the active attacks |
| Nov 30, 2026 | BleepingComputer reports the campaign |
| Dec 1, 2026 | The Hacker News covers the attacks |
The Hacker News covered the attacks on December 1, 2026, confirming the campaign was still running and that the flaw is rated 9.8 on the CVSS scale.
The gap between the fix and the first attack was six days. That is the window every site owner gets with a patched flaw: update inside it and the attacks pass you by; miss it and you are a target. Automated campaigns do not pick victims by hand — they scan the internet for every site running the vulnerable version, so a small site is just as likely to be hit as a large one.
The 15-Minute Check
Work through these four steps in order. You need your WordPress admin login and, for steps 3 and 4, access to your hosting file manager or a file manager plugin. If your host manages updates for you, ask them whether 3.24.2 is already installed before you start.
Step 1 — Check your version. In wp-admin, open Plugins and find WP Rocket. Anything below 3.24.2 is vulnerable — update it now, before you do anything else. If the version is 3.24.2 or later, new attacks are already blocked, but still finish steps 3 and 4: the update does not clean up a site that was hit earlier.
Step 2 — Check the two settings. Open WP Rocket > Page Optimization and look for "LazyLoad for CSS background images" and "Host Fonts Locally" (also called Self-host Google Fonts). If either is on and you are still on an old version, turn both off right now — that closes the attack paths immediately, even before the update finishes. If you cannot update today for any reason, leaving both off is your stopgap.
Step 3 — Look for planted PHP files. Open your hosting file manager and check three folders: wp-content/wp-rocket-config/, wp-content/uploads/, and wp-content/. Look for PHP files you did not create — Patchstack flags files named wp-media-*.php as the tell-tale sign. A legitimate WordPress install has very few PHP files in uploads, so anything ending in .php there deserves a hard look.
Step 4 — Check your logs. In your server or security plugin logs, look for requests to the rocket_beacon endpoint from visitors that never loaded the page they claim to report on — a real visitor's browser loads the page first, then reports. Also look for outbound requests to unfamiliar hosts, nip.io names, or trycloudflare.com tunnels. Either pattern means someone probed your site, whether or not they got in.
What to Do If You Find a Sign
If any step above turns up a planted file or a suspicious log pattern, treat the site as compromised — do not just delete the file and move on. Attackers who get code execution usually leave more than one way back in, and deleting the one file you found leaves the rest. Restore from a backup taken before November 25, 2026, update WP Rocket to 3.24.2 or later, and change your admin and database passwords.
Then look wider: review admin users for accounts you did not create, check installed plugins and themes for anything unfamiliar, and scan the site with your security plugin. Keeping the rest of your stack current matters too — our guide to the WordPress PHP end-of-life explains why running an unsupported PHP version leaves a second door open, and checking your site's security headers after the fix catches the basics that attackers probe next.
Code planted on a site is not a new trick. Earlier this month a WebRTC card skimmer hit five online stores the same way — slipping malicious code onto the site and stealing from visitors. The lesson from both incidents is the same: a site you do not check is a site you do not control.
Tell your host, too. A good host can check whether other sites on the same server were touched, and can help with logs you cannot see from wp-admin. If the site takes payments or stores customer data, take it seriously from the first sign — a compromised store can leak customer details long before anyone notices. And once the site is clean, keep the habit: check for updates weekly, and treat a new security release as a same-day job.
Best WordPress Security Plugin After an Attack
Once the hole is closed, the question most owners ask is which is the best WordPress security plugin to stop the next one. The honest answer is that no single plugin is the best for every site — what matters is file-change detection, so a planted file gets flagged the same day, and a firewall that blocks known attack patterns before they reach your plugins. Pick one with file monitoring and login alerts, and read the alerts.
A plugin alone is not a security plan. A periodic WordPress security audit — a human or a scanner going through users, plugins, file changes, and logs — catches what automation misses, and it is worth doing after any incident, not just this one. If updates are the part you keep putting off, managed WordPress hosting is worth considering: the host applies plugin and core updates for you, which would have closed this hole the day the fix shipped.
Frequently Asked Questions
Am I affected if I use WP Rocket but never turned on those two settings?
No. The flaw only opens when LazyLoad for CSS background images or Host Fonts Locally is switched on, and both are off by default. If you never touched either setting, this attack cannot reach your site — but update anyway, because the fix also hardens the plugin and you may enable one of the settings later without realising the risk.
Does updating to 3.24.2 remove files an attacker already planted?
No. The update closes the hole so no new attacks can get in, but it does not touch anything an attacker already saved on your server. After updating, sweep wp-content/wp-rocket-config/, wp-content/uploads/, and wp-content/ for unexpected PHP files — especially anything named wp-media-*.php — and review your logs for rocket_beacon requests.
How do I know if my site was already attacked?
Look for three signs: PHP files you did not create, especially wp-media-*.php, in wp-content/wp-rocket-config/, wp-content/uploads/, or wp-content/; requests to the rocket_beacon endpoint from visitors that never loaded the page they report on; and outbound requests to unfamiliar hosts, nip.io names, or trycloudflare.com tunnels. Any one of them means you should treat the site as compromised and restore from a backup taken before November 25, 2026.
What should I do if I cannot update WP Rocket right now?
Turn off both settings — LazyLoad for CSS background images and Host Fonts Locally — under WP Rocket > Page Optimization > Image & Media > Media tab. With both off, the attack paths are closed, which buys you time. Then update to 3.24.2 or later as soon as you can, and still run the file and log checks, because the site may have been hit before you switched the settings off.
Which is the best WordPress security plugin to protect my site?
There is no single best WordPress security plugin — the right one depends on your site and how hands-on you want to be. Look for file-change detection and a firewall that blocks known attack patterns, turn on login alerts, and read them. A WordPress security audit matters more than the brand: after an incident, an audit checks users, plugins, file changes, and logs. If you would rather not manage updates, managed WordPress hosting applies them for you.
Is WP Rocket safe to keep using after the update?
Yes. Version 3.24.2 closes this hole, and the plugin remains one of the most widely used caching tools for WordPress. The lesson is not to drop the plugin — it is to update promptly when a fix ships, because attackers moved within six days this time. Turn on automatic updates for WP Rocket if your setup allows it, and keep the two risky settings in mind if you ever change them.