Critical WP Rocket flaw exploited on WordPress sites: what to do now
Hackers are exploiting CVE-2026-125812, a critical flaw in the WP Rocket plugin that allows code execution without logging in. The fix is in version 3.24.2. See who is at risk, how to mitigate the issue, and what to check if your site ran a vulnerable version.
Yes, the WP Rocket vulnerability is real and is already being exploited. Identified as CVE-2026-125812, it allows an attacker to execute code on the server without a password. The main step is to update the plugin to version 3.24.2 or later and then check whether the site has already been compromised.
The information below comes from BleepingComputer, SecurityWeek, and Hardware.com.br, which in turn cite a report from security company Patchstack and a statement from WP Media, the plugin's developer.
What is the WP Rocket vulnerability, and how serious is it?
WP Rocket is a paid caching and performance optimization plugin for WordPress. Among other functions, it caches pages, optimizes CSS, and intelligently loads images (lazy loading).
According to Hardware.com.br, the vulnerability scores 9.8 out of 10 on the CVSS, the standard vulnerability severity scale. It is caused by insufficient validation of data received by the plugin. According to SecurityWeek, the plugin did not properly check the URLs reported during page optimization.
In practice, an attacker sends a forged report, the site downloads content controlled by the attacker and saves it as a PHP file. That code is then executed on the server without authentication.
Which versions and configurations are exposed?
According to a statement from WP Media, reported by Hardware.com.br, the vulnerability affects versions 3.15 through 3.24.1. BleepingComputer describes the affected range as versions earlier than 3.24.2.
There is one important condition: the site is only vulnerable if at least one of these features is enabled:
- LazyLoad for CSS background images;
- local hosting of Google Fonts (Self-host Google Fonts).
Both are disabled by default. SecurityWeek notes, however, that they are often enabled specifically to improve performance. So do not assume you are safe. Check your settings.
How many sites use the plugin, and how many are at risk?
WP Media says the plugin is used on more than 5.6 million sites by around 394,000 customers (figures cited by BleepingComputer and Hardware.com.br). Hardware.com.br emphasizes that this does not mean all of those sites are vulnerable or have been breached. Since the risky features are disabled by default, the number of installations actually exposed is likely lower, but the sources do not provide a figure.
How has the exploitation unfolded so far?
Here is the timeline, according to the sources:
- November 19: WP Media releases version 3.24.2 with the fix.
- November 25: Patchstack identifies the first exploitation attempts, initially manual and on a small scale (BleepingComputer).
- November 26: Activity has shifted to large-scale automated campaigns.
In other words, exploitation began six days after the fix was released. Anyone who took too long to update was exposed during that window.
Patchstack says its platform blocked more than 25,000 malicious requests and that several independent operators are active. According to SecurityWeek, the ten most active IPs account for about half of the attempts blocked since November 25. Malicious code is hosted on bare IP addresses, wildcard DNS names, temporary Cloudflare tunnels, and WordPress sites that may already be compromised.
What can an attacker do on an affected site?
According to Hardware.com.br, depending on server permissions, a successful breach may allow an attacker to:
- modify pages;
- install persistent access;
- redirect visitors to fraudulent sites;
- access confidential information.
For a company, this means risks to its reputation, SEO, and customer data, not just a technical problem.
How can you fix and mitigate the issue?
WP Media recommends updating immediately to version 3.24.2 or later. If your license has expired or you cannot update right now, disable the two features linked to the vulnerability. According to BleepingComputer, go to WP Rocket, Page Optimization, Image & Media, Media tab.
For agencies and hosting providers, WP Media has released an add-on plugin that disables the vulnerable features across multiple sites at once. Patchstack has also listed attacker IPs to block.
Is updating enough? What should you check afterward?
No. All three sources agree: the update does not remove files or accounts created by attackers before the fix. Anyone who ran a vulnerable version with one of the features enabled should check for:
- unknown PHP files;
- suspicious outbound connections;
- unrecognized admin accounts;
- server logs showing unusual requests.
If you find signs of compromise, contact your security team or hosting provider.
What does this case teach us about plugin management?
This case shows that the time between a fix and an attack can be short. In this incident, it was six days. Plugin updates need an owner, a deadline, and a process, especially for critical vulnerabilities. It is also worth reviewing which optional features are enabled, since exposure in this case depended on performance settings.
For more information, read our article on why you should keep WordPress and plugins up to date and our analysis of another recent vulnerability, in All-in-One WP Migration. For a broader perspective, see our guide to web application security.
What should you do next?
Today, ask your team or provider to confirm the WP Rocket version on every site, update to version 3.24.2 or later, and check files, accounts, and logs. If you do not have an update and monitoring process, consider a WordPress site, portal, and platform maintenance service.