Patched November 19, Under Attack by November 25: A Timeline of the WP Rocket Flaw Now Hitting WordPress Sites
A critical bug in the WP Rocket caching plugin lets attackers plant and run PHP code on WordPress sites without logging in. Exploitation began six days after the fix shipped and quickly turned automated. Here is how it unfolded and what site owners should check.
WP Rocket is one of the most common ways WordPress site owners speed up their pages. A flaw in it, tracked as CVE-2026-125812 and rated 9.8 out of 10, is now being used to take over sites. WordPress security firm Patchstack published its findings on the attacks, and BleepingComputer, SecurityWeek and The Hacker News have since reported on the campaign. The paid plugin’s developer, WP Media, says it runs on more than 5.5 million websites.
Before the attacks: how the hole works
To optimize a page, WP Rocket runs a small script in each visitor’s browser that measures the page and reports back to a public endpoint on the site. The plugin did not check the URLs in those reports strictly enough. A crafted report can make the site fetch content from an attacker’s server, save it as a PHP file and then run it. No login is needed.
There is one condition. The site must have either “LazyLoad for CSS background images” or the local Google Fonts option (called “Host Fonts Locally” or “Self-host Google Fonts”) turned on. Both are off by default, but Patchstack notes that both are common on sites tuned for speed.
November 19: the fix ships
WP Media released WP Rocket 3.24.2 with the fix. Every earlier version with either feature enabled is exposed. SecurityWeek puts the affected range at 3.15 through 3.24.1.
Before the first attack: a blocking rule goes live
Patchstack says its own mitigation rule for customers was in place more than two days before the first attack arrived.
November 25, 15:27 UTC: the first attempt
Patchstack logged the first exploitation attempt six days after the patch. That first attacker worked by hand. It tried a payload on a handful of sites, then sent encoded variations when the first try was blocked.
November 26: the attacks become automated
Within a day, scripted campaigns took over, and Patchstack blocked tens of thousands of attempts that day alone. BleepingComputer reports the firm had blocked more than 25,000 malicious requests. Wordfence, in its own advisory cited by The Hacker News, said it had blocked 135 attacks in a 24-hour period.
Patchstack sees several independent operators. Some fire the same payload at site after site. One group sent identical requests from four residential IP addresses, which suggests a rotating proxy service. The ten busiest addresses accounted for about half of all blocked attempts. Many requests try both vulnerable features at once, so whichever one a site has enabled will work. The malicious files are hosted on bare IP addresses, wildcard DNS services such as nip.io, temporary trycloudflare.com tunnels and other WordPress sites that were probably hacked themselves.
Over the weekend: the vendor advisory
WP Media published an advisory urging customers to move to 3.24.2 or later. It also released a helper plugin for people who manage many sites and cannot update all of them right away.
Now: updating is not the end of it
Updating blocks new attacks, but it does not remove anything an attacker already planted. Patchstack and SecurityWeek both note that files or accounts created before the update will stay in place. Patchstack suggests these checks for any site that ran a vulnerable version with either feature on:
- Look for unexpected PHP files in wp-content/wp-rocket-config/, wp-content/uploads/ or directly in wp-content/, such as files named wp-media-*.php.
- Look in web server logs for “rocket_beacon” requests from clients that never loaded the page they claim to be reporting on.
- Look for outbound connections from the web server to unfamiliar hosts, nip.io names or trycloudflare.com tunnels.
- Check for administrator accounts nobody recognizes.
If a site cannot be updated immediately, for example because its license has lapsed, turn off both the CSS background lazy-load feature and the local Google Fonts option until it can be. Patchstack has also published attacker IP addresses that can be added to a blocklist.
What this means for your company
A WordPress plugin is a piece of your public-facing infrastructure, and paid plugins with expired licenses are a common blind spot because they stop updating quietly. Keep a list of every plugin on every site you own, along with who is responsible for its license and updates. Treat a “critical, unauthenticated” plugin advisory as an emergency patch window measured in days, not weeks. When a flaw like this one has been exploited, update first and then look for leftovers. Restoring from a clean backup is often faster than hunting for every planted file. A web application firewall in front of the site adds a layer that can block attacks in the gap between disclosure and patching.
If you would like a second set of eyes on your WordPress plugins, patching routine or a site you suspect was touched, we can help. Reach out to Layer 7 Data Solutions to discuss how we’ve helped companies similar to yours.
