Critical WP Rocket flaw exploited: which WordPress sites are at risk
By Jorge Graells · December 1, 2026 at 8:05 AM UTC · 4 min read
Attackers are exploiting CVE-2026-125812, a flaw in the WP Rocket caching plugin that lets them run PHP code on a WordPress site without a password. It only affects sites with two specific options turned on. It is fixed in version 3.24.2.
Critical WP Rocket flaw exploited: which WordPress sites are at risk
- Type
- News
- Author
- Jorge Graells
- Date
- Reading time
- 4 min read
- Topics
- Cybersecurity
- Subjects
Summary
Attackers are exploiting CVE-2026-125812, a flaw in the WP Rocket caching plugin that lets them run PHP code on a WordPress site without a password. It only affects sites with two specific options turned on. It is fixed in version 3.24.2.
Attackers are exploiting a critical flaw in WP Rocket, one of the most widely used caching plugins for WordPress, to plant and run PHP code on other people's sites without any username or password. The flaw is CVE-2026-125812. WP Media, the company behind the plugin, fixed it on November 19 in version 3.24.2 and published a security advisory last weekend, as reported by BleepingComputer1 and The Hacker News2. The attacks were spotted by Patchstack, a company that specialises in WordPress security, and Wordfence, another firm in the field, is also blocking attempts.
I'll update this story if WP Media, Patchstack or any authority publishes new details.
◢What happened
According to BleepingComputer, the flaw comes from the plugin not properly validating data sent to a public endpoint. An attacker can use it to make the site download PHP code from a server they control, save it and run it. That gives them control of the site.
There's an important catch: only versions older than 3.24.2 with at least one of two options turned on are vulnerable. Those options are "LazyLoad for CSS background images" and "Host Fonts Locally". Both are off by default, but they are performance settings that plenty of people switch on to make their site load faster.
WP Media says the plugin is used on more than 5.6 million sites by 394,000 customers, according to the same source. Nobody knows how many of those have either option enabled.
◢Is it really being exploited?
Yes. Patchstack saw the first attempts on November 25, small-scale and manual, and automated campaigns started the next day. According to BleepingComputer, its platform has blocked more than 25,000 malicious requests from several different attackers, who go after both vulnerable options, sometimes in a single request. The code they try to install is hosted on bare IP addresses, on hostnames from services such as nip.io and trycloudflare.com, and on other WordPress sites that have probably already been compromised.
The attacks are ongoing. The Hacker News reports that Wordfence has blocked 135 attacks against this flaw in the past 24 hours.
◢What we don't know
We don't know how many sites have been successfully attacked or who is behind it. No official source has attributed the attacks to any group or country. For now the flaw isn't listed in the Known Exploited Vulnerabilities catalog3 of CISA, the US cybersecurity agency.
◢Is my site affected?
If your site runs on WordPress, log in to the dashboard, go to Plugins and look for WP Rocket. If it isn't there, this flaw doesn't affect you. If it is, check the version: if it's older than 3.24.2, go to WP Rocket > Page Optimization > Image & Media > Media and see whether either of the two options is on. If one is, your site is vulnerable (that menu path is the one given by BleepingComputer).
WP Rocket is a paid plugin, so it's often installed by the agency or freelancer who built the site, and nobody else knows it's there. If you don't run the site yourself, ask whoever does today.
◢What to do now
- ▹Update WP Rocket to version 3.24.2 or later. That's the main step WP Media recommends.
- ▹If you can't update yet, turn off both options under WP Rocket > Page Optimization > Image & Media > Media. The site will load a little slower, but it stops being exposed.
- ▹If you manage many sites, WP Media has released a helper plugin to make this easier across all of them, according to BleepingComputer.
- ▹Check the server logs for suspicious requests and for outbound connections from the site you don't expect. Updating doesn't remove anything an attacker planted earlier, so if the site had either option on and wasn't updated since November 25, look for PHP files nobody put there. According to The Hacker News, Patchstack lists as signs files named like
wp-media-*.phpin thewp-content/wp-rocket-config/,wp-content/uploads/andwp-content/folders,rocket_beaconrequests from visitors that never loaded the page they report on, and outbound connections to nip.io hostnames or trycloudflare.com tunnels. - ▹If there are signs someone got in, change the admin passwords as well as the hosting and database passwords, and get help from someone who knows how to clean up a compromised site.
◢What to learn from this
Less than a month ago I wrote about another exploited flaw, in WordPress core itself. This time the problem is in a plugin, which is the more common case: every plugin you install is another company's code running on your server, and it needs keeping up to date too.
The practical lesson is the same as then: a named person has to be in charge of the website, know which plugins it runs and get the security advisories. And it's worth checking every so often which plugins and options are switched on, because every option you turn on to gain speed is also code exposed to the internet.
If you'd like your team to understand these risks without needing to be technical, that's exactly what I cover in my cybersecurity training.
Related documents
- News
Anthropic publishes theoretical attack on post-quantum crypto
It wasn't RSA. Anthropic found a theoretical quantum attack on ML-KEM and ML-DSA that is impractical today. What it means and what to do.
- Article
Plant network segmentation: separating IT and OT step by step
Plant network segmentation means separating the office network (IT) from the industrial one (OT) and splitting it into zones, so an attack in the office can’t easily reach the machines. What NIST and the UK NCSC recommend, and how to start without stopping production.
- News
Germany investigates rumour that AI has broken RSA-2048
The BSI is reviewing the claim, amplified by Elon Musk, that an AI lab has broken RSA-2048. There's no proof. What we know and what to do.