Back to Articles
critical CVE-2026-125812

CRITICAL: WP Rocket Flaw Under Active Attack Lets Attackers Run Code

Attackers began exploiting CVE-2026-125812 in the WP Rocket caching plugin on November 25, abusing the rocket_beacon AJAX endpoint to plant PHP webshells on sites using LazyLoad for CSS backgrounds or Host Fonts Locally. Update to WP Rocket 3.24.2 and hunt for planted wp-media PHP files.

By Danny Mercer, CISSP — Lead Security Analyst • Dec 1, 2026
Is your business exposed? Our McKinney-based security team can assess your risk for free.
Share:

There is a certain irony in a performance plugin being the thing that slows your week to a crawl. WP Rocket exists to make WordPress sites faster, and as of last Wednesday it is also making some of them faster to compromise. Attackers are actively exploiting CVE-2026-125812, a critical unauthenticated remote code execution flaw in the popular caching plugin, and the activity went from one patient human operator to tens of thousands of automated attempts in roughly a day.

If you manage WordPress sites for clients, the odds that at least one of them runs WP Rocket are high. The plugin is installed on more than 5.5 million WordPress sites and claims over 386,000 paying customers. That is a lot of front doors, and some of them have been left unlocked by a pair of settings that site owners turn on precisely because they want a faster site.

What the Bug Actually Does

CVE-2026-125812 carries a CVSS score of 9.8 and affects every version of WP Rocket prior to the 3.24.2 release. Patchstack researcher Dave Jong, who published the technical breakdown on November 27, put it bluntly, saying the flaw "lets unauthenticated attackers write and execute PHP code on affected sites." No login, no stolen credentials, no social engineering. Just a crafted HTTP request.

The root cause lives in the way WP Rocket measures pages. To figure out which images, background assets, and fonts actually matter on a given page, the plugin ships a small script that runs in each visitor's browser, takes measurements, and reports them back to the server through a public AJAX endpoint. That endpoint is reached with a POST to /wp-admin/admin-ajax.php using the action rocket_beacon. The server then trusts the URLs in that report more than it should. A carefully built beacon convinces the site to fetch content from a server the attacker controls and save it to disk as a PHP file, which the attacker then calls to run whatever code they like.

Two features are the doorway here. The vulnerable code paths sit behind LazyLoad for CSS background images and Host Fonts Locally, which pulls Google Fonts onto your own server instead of loading them from Google. Both are disabled by default, which is the good news. The bad news, as Patchstack noted, is that "both are common on performance-tuned sites." Anybody who has ever chased a better Lighthouse score has probably flipped at least one of those switches, and attackers have been observed hitting both paths in the same request just to cover their bases.

Planted files tend to show up with names following the wp-media-*.php pattern, dropped into wp-content/wp-rocket-config/, wp-content/uploads/, or the root of wp-content itself. Those names are chosen to blend in with the noise of a busy WordPress install, and on a site with thousands of media files nobody is going to notice one more unless they go looking.

How Exploitation Looks in the Wild

Patchstack recorded the first exploitation attempt on November 25 at 15:27 UTC against the WP Rocket measurement endpoint. The early activity looked like someone working by hand. When their first request got blocked, they came back with encoded variations, the kind of trial and error you see from an operator testing a fresh exploit rather than a botnet running a script. By the next day that patience was gone. Patchstack logged tens of thousands of blocked attempts on November 26 alone, and Wordfence reported blocking 135 attacks in a single 24 hour window as the campaign spread across its customer base.

The infrastructure is a mix of cloud hosting and residential addresses. Ten source IPs account for roughly half of everything Patchstack has blocked since the campaign began. The busiest is 103.235.74.71 with more than 5,300 attempts, followed by 157.245.122.230 and 152.89.170.194. The rest of the top ten includes 180.232.236.101, 103.235.74.72, 201.79.120.217, 112.78.154.32, 167.71.75.155, 43.163.8.253 and 51.79.199.209 as of the latest count. One cluster sent byte for byte identical requests from four different residential addresses, which points to a rotating proxy pool rather than four independent attackers who happened to have the same idea.

Payload hosting follows a familiar playbook. Attackers are serving their PHP from bare IP addresses, from nip.io hostnames that resolve to whatever IP is embedded in the name, from temporary trycloudflare.com tunnels, and from other WordPress sites that were likely compromised earlier. That last detail matters. Once a site is owned, it often becomes the staging server for the next wave, which means an unpatched client site can go from victim to accomplice without anyone in the building knowing.

As of publication, CISA has not added CVE-2026-125812 to its Known Exploited Vulnerabilities catalog. Do not read anything into that. KEV tracks what federal agencies need to fix, and a WordPress caching plugin is not usually high on that list. The exploitation is real, it is documented by two independent security vendors, and it is automated.

What to Do Right Now

The fix is WP Rocket 3.24.2, which the vendor shipped on November 19. That gave defenders about six days of head start before the first observed attack, and anyone with automatic updates enabled for premium plugins probably caught it in time. Everyone else needs to update today. WP Rocket is a commercial plugin, so it updates through its own license mechanism rather than the WordPress.org repository, and sites with expired licenses can quietly fall off the update train. Check the version number on every site you manage rather than assuming the dashboard told you the truth.

If you cannot update immediately, turning off both LazyLoad for CSS background images and Host Fonts Locally closes the vulnerable code paths. Your clients will lose a few points on their page speed scores. They will survive. A site serving a webshell will not rank very well either.

Here is the part people skip. Patchstack was explicit that "the update stops new attacks, but it does not remove files an attacker already planted." Patching a site that was hit on November 26 leaves the attacker's PHP sitting right where they left it. For any site that ran a vulnerable version with either feature enabled and without a web application firewall in front of it, you need to treat it as potentially compromised and go hunting.

Start with the file system. Search wp-content/wp-rocket-config/, wp-content/uploads/, and wp-content/ for any PHP file you did not put there, with particular attention to anything named wp-media followed by a random string. PHP files in the uploads directory should be rare on a healthy site, so anything there deserves a hard look. File modification times clustered after November 25 are a strong signal.

Then go to the logs. Look for POST requests to admin-ajax.php carrying action=rocket_beacon from clients that never actually loaded the page they claim to be reporting on. A real visitor fetches the page, then the beacon fires. An attacker usually skips straight to the beacon. Patchstack also flagged beacons that report full URLs in fields that should contain bare domains, which is a dead giveaway once you know to look for it. Check outbound traffic from your web servers as well. A WordPress host suddenly reaching out to nip.io names, trycloudflare.com tunnels, or random IPs it has never talked to before is worth an incident ticket on its own.

Block the ten IPs above at your edge if you have the capability, but do not treat that as a defense. Rotating proxies mean the next wave will come from addresses nobody has seen yet. A WAF rule that inspects rocket_beacon payloads, like the mitigation rules Patchstack and Wordfence have already deployed, is far more durable than chasing IPs.

If you do find a planted file, assume the attacker had the same access as the web server user. That means rotating the WordPress database credentials in wp-config.php, resetting admin passwords, checking for new administrator accounts, reviewing scheduled tasks, and looking for modifications to theme and plugin files. A webshell is rarely the whole story. It is the foothold, and the interesting stuff usually happens after it lands.

The Bigger Picture

This is the second time this year that the WordPress ecosystem has handed attackers a clean unauthenticated RCE at scale, following the wp2shell core vulnerabilities over the summer. The lesson is the same one we keep relearning. Plugins that touch the file system and accept input from anonymous visitors are high value targets, and premium plugins are not magically safer than free ones. They are often less visible to the community researchers who audit the public repository, and their update path depends on a license key somebody may have let expire.

WP Rocket's beacon design is not unusual. Plenty of performance and analytics plugins collect data from visitors' browsers and act on it server side. Any time a plugin turns untrusted client input into a file write, it deserves the same scrutiny you would give a file upload form. Most site owners never think about it that way, and that is exactly the gap attackers are exploiting.

For MSPs, the takeaway is less about this specific bug and more about visibility. If you cannot answer within the hour which client sites run WP Rocket, which version they are on, and whether those two features are enabled, that is the real finding from this incident.

If an IT provider manages your systems

If your company website runs on WordPress, call whoever manages it about this advisory. Attackers are actively exploiting CVE-2026-125812 in the WP Rocket plugin. Updating the plugin stops new attacks but does not remove files an attacker may have already planted.

  • Does our website use WP Rocket, and is it now on version 3.24.2 or later?
  • Were LazyLoad for CSS background images or Host Fonts Locally turned on before the update?
  • Have you checked our site for PHP files we did not put there, especially names starting with wp-media that appeared after November 25?

A good answer is specific: the version number, which of those two features were on, and what the file and log review found. If your provider cannot confirm the site was checked, or finds a planted file, bring in incident response to remove it and reset passwords and database credentials.

If you are an IT provider yourself, see how we partner with MSPs.

References

Happening right now?

Business email taken over, or a payment sent to the wrong account?

Call us now. The first hours matter most: your bank may still be able to recall the payment, and whoever is in the mailbox keeps access until it is locked down. We handle the lockout and help trace the payment.

Not an emergency? Get a free security assessment instead.