News Digital & Internet News

Hackers Exploit Critical WP Rocket Flaw on WordPress Sites

A laptop screen showing lines of programming code
Table of Contents

Hackers Exploit Critical WP Rocket Flaw on WordPress Sites

Hackers are exploiting a critical flaw in WP Rocket, a WordPress plugin used on more than 5.6 million websites worldwide.

The flaw lets an attacker run their own code on a site without logging in. Security firm Patchstack says attacks began days after a fix was released, and they turned into large-scale automated campaigns within a day.

Site owners who run WP Rocket should update now and then check their sites for planted files. The update closes the hole, but it does not clean up a site that was already hit.

The flaw and who it hits

The flaw is tracked as CVE-2026-125812 and rated 9.8 out of 10, the top end of the severity scale. It hits WP Rocket versions 3.15 through 3.24.1. The fix came in version 3.24.2, released on November 19.

WP Rocket is a paid plugin that speeds up WordPress sites. Its maker says it runs on more than 5.5 million sites and has over 386,000 customers. The flaw only bites when one of two optional features is turned on: LazyLoad for CSS background images, or Host Fonts Locally, which stores Google Fonts on the site itself.

Both features are off by default, but they are common on sites tuned for speed. Patchstack researcher Dave Jong said the flaw “lets unauthenticated attackers write and execute PHP code on affected sites.” PHP is the code that runs WordPress itself, so an attacker who can plant PHP can take over a site.

How attackers break in

WP Rocket runs a small script in each visitor’s browser. The script measures the page and sends a report back to the site, so the plugin can tune how the page loads. The flaw is that the plugin does not check those reports strictly enough.

An attacker can send a fake report to the plugin’s public endpoint. The crafted report tricks the site into downloading content from the attacker’s server and saving it as a PHP file. Once saved, the file runs on the server, and the attacker has code execution without any login.

Patchstack says the first exploitation attempt came on November 25 at 3:27 p.m. UTC. Within a day, the activity had turned into automated campaigns, with tens of thousands of blocked attempts on November 26 alone. Wordfence, another WordPress security firm, said it had blocked 135 attacks on the flaw in the past 24 hours.

A close-up of programming code on a computer screen in a code editor
A close-up of programming code on a computer screen in a code editor.

Patchstack says several separate groups are active. Some send the same payload to site after site. One group sent byte-identical requests from four home internet addresses, a sign of a rotating proxy pool. Since November 25, the ten most active addresses have made up about half of all blocked attempts.

The payloads are hosted on bare IP addresses, wildcard DNS names, temporary Cloudflare tunnels, and possibly hacked WordPress sites. Patchstack lists clear signs of a hit: “rocket_beacon” requests from visitors who never loaded the page, outbound requests to strange hosts or nip.io and trycloudflare.com domains, and surprise PHP files named wp-media-*.php in wp-content, wp-content/uploads, or wp-content/wp-rocket-config.

What site owners must do now

The first step is to update WP Rocket to version 3.24.2 or later on every site. Then check for signs of a break-in. The update stops new attacks, but it does not remove files or accounts an attacker already planted. Owners should review their logs back to November 19 and look for PHP files they did not put there.

Sites that cannot update right away should turn off both risky features: LazyLoad for CSS background images and Self-host Google Fonts. That blocks both attack paths. A helper plugin is available for firms that manage many sites at once.

The case is a warning about the speed of modern attacks. The patch was out on November 19, yet hackers were trying to use the flaw six days later, and automated attacks followed within a day. Keeping plugins up to date is no longer a chore for later in the week. It is the main defence.

There is a wider lesson too. WordPress powers a huge share of the web, and its plugins are a prime target for attackers. A single popular plugin can open the door to millions of sites at once, which is why flaws in big plugins draw fast, automated attacks. The WP Rocket flaw is a clear case: a fix was ready, but sites that waited six days were already in the firing line. The gap between a patch and an update is now the most dangerous window a site owner faces.

WordPress flaws are a regular target. The CISA exploited flaws list recently added GeoServer and Drupal bugs that attackers were already using, and the NFS2ROOT Linux flaw showed how one bug can hand an attacker full control of a server. WP Rocket joins that list as a flaw that moved from patch to mass attack in less than a week.

Frequently Asked Questions

Which sites are at risk from the WP Rocket flaw?

Sites running WP Rocket versions 3.15 through 3.24.1 are at risk, but only if LazyLoad for CSS background images or Host Fonts Locally is turned on. Both features are off by default, yet they are common on sites tuned for speed.

Does updating WP Rocket fix a hacked site?

No. Updating to version 3.24.2 or later stops new attacks, but it does not remove files or accounts an attacker already planted. Owners must check for surprise PHP files, review logs, and clean up any break-in.

How do I know if my site was hit?

Look for PHP files named wp-media-*.php in wp-content, wp-content/uploads, or wp-content/wp-rocket-config. Also check logs for “rocket_beacon” requests and outbound calls to strange hosts, nip.io domains, or trycloudflare.com tunnels.

What if I cannot update right away?

Turn off both risky features: LazyLoad for CSS background images and Self-host Google Fonts. That blocks both attack paths until you can update. A mitigation helper plugin is available for firms managing many sites.

Sources

Caleb Cox
Digital & Internet News Correspondent

Caleb Cox

Caleb Cox covers digital and internet news for Time of Explorer — the platforms, trends and stories of the online world. He has followed the internet industry for seven years, from social platforms to the infrastructure underneath them.

View Full Author Profile →
Keep Reading

Related Stories

More in News →