Attackers are actively exploiting CVE-2026-125812, a critical flaw in the WP Rocket caching plugin that lets anyone with no login write PHP files to a WordPress server and run them. A fix has been out since 19 November, but updating does not remove anything intruders have already left behind.
What happened
WP Rocket, the paid caching and performance plugin from developer WP Media, has a critical vulnerability rated 9.8 out of 10 for severity. It is now being attacked in the wild. WP Media says the plugin runs on more than 5.6 million websites.
A researcher using the handle Vorelito reported the flaw on 4 November 2026 through a bug bounty programme. WP Media fixed it in version 3.24.2, released on 19 November, and Patchstack published its advisory on 23 November. Two days later, at 15:27 UTC on 25 November, Patchstack’s telemetry picked up the first exploitation attempt. On 26 November the activity had become fully automated, and Patchstack was blocking tens of thousands of attempts that day alone. WP Media’s own advisory, last updated on 27 November, notes that Patchstack has reported automated exploitation attempts against vulnerable sites.
Hosting security vendor Imunify360 has since described what attackers leave on servers they reach. It reports webshells and backdoors dropped into the content directories, a loader that puts the other files back when they are deleted, and unauthorised administrator accounts. Patchstack’s own write-up describes attempts and blocked requests rather than confirmed compromises, so the scale of successful break-ins is not yet clear.
The technical picture
WP Rocket includes a small measurement script that runs in visitors’ browsers. It reports details about each page back to a public WordPress AJAX endpoint, and the plugin uses those reports to decide which background images and font files to fetch and cache locally. The problem is trust. In vulnerable versions the URLs in that report were not validated strictly enough, and the path handling for cached files could be manipulated. The result is that the server can be made to download content from an attacker-controlled host and save it with a .php extension in a location where the web server will run it. That is unauthenticated remote code execution.
There is an important condition. According to WP Media, the flaw affects versions 3.15 to 3.24.1 only when one of two optional features is switched on: LazyLoad for CSS background images, or self-hosting of Google Fonts (labelled Host Fonts Locally in some versions). Both are off by default, but Patchstack notes they are common on sites that have been tuned for speed. ZeroPath, quoted by IT-Connect, argues the installed version is the only reliable indicator and that any site below 3.24.2 should be treated as exposed. I agree with that cautious reading, especially when nobody can say for certain how a site was configured over the past month.
Patchstack’s analysis shows several independent operators, not a single campaign. Payloads are staged on bare IP addresses, wildcard DNS services such as nip.io, temporary trycloudflare.com tunnels and what look like other compromised WordPress sites, and one cluster appears to be using a rotating residential proxy pool.

Why it matters for UK organisations
WordPress powers a large share of UK websites, from SME brochure sites and online shops to charities, schools and parts of the public sector. Many of them are built and maintained by small agencies or freelancers, and caching plugins like WP Rocket are a standard part of that toolkit. A plugin that can be turned into a remote shell without credentials is a direct route onto the web server. From there it can lead to the database, customer data and payment page tampering.
The licensing model adds a UK-specific wrinkle that I see often. WP Rocket is a premium plugin, and updates arrive only with an active licence. Sites built for a client several years ago, where the licence lapsed when the agency relationship ended, will not have received 3.24.2 automatically. WP Media acknowledges this in its advisory and offers a workaround for sites with expired licences.
If a compromised site holds personal data, such as contact form submissions, customer accounts or order records, UK GDPR applies. A breach that risks people’s rights must be reported to the ICO within 72 hours of the organisation becoming aware of it. Expect the ICO to ask whether a fix was available and not applied.
Expert view
This follows a pattern we keep seeing in the WordPress ecosystem. The patch landed six days before the first attack, and the gap between public advisory and exploitation was two days. That is the realistic window now for a popular plugin with a simple, unauthenticated bug. When we test WordPress estates, the core install is usually current; it is the plugins, especially paid ones with licence-gated updates, that drift.
The second lesson is that updating is not the same as cleaning. In my experience, organisations close the hole and assume they are done, while a backdoor in a must-use plugin directory quietly survives. Treat any site that ran a vulnerable version with either feature enabled since 25 November as potentially compromised until you have checked it. Virtual patching worked well here: Patchstack says its mitigation rule was live more than two days before the first attack. It is a stopgap, not a replacement for the update.
What to do now
- Find every instance. List every WordPress site you own or suppliers run for you, including old microsites, and record the WP Rocket version.
- Update to 3.24.2 or later today. This maps to the Cyber Essentials security update management control, which expects critical and high-risk fixes within 14 days of release; with active exploitation, do not wait for that deadline. Renew lapsed licences or remove the plugin.
- If you cannot update immediately, turn off LazyLoad for CSS background images and self-hosted Google Fonts on every affected site. WP Media has published a helper plugin, in its wp-rocket-helpers GitHub repository, that agencies and hosts can push across many sites.
- Hunt for compromise. Look for unexpected PHP files in wp-content, wp-content/uploads, wp-content/wp-rocket-config and wp-content/mu-plugins, including files named wp-media- followed by random characters. Review web logs for unusual POST requests to admin-ajax.php using the rocket_beacon action, and check for outbound connections from the server to unfamiliar hosts, nip.io names or trycloudflare.com tunnels.
- Clean up properly if you find anything. Preserve logs and files first, then remove planted files, delete unknown administrator accounts, replace the salts in wp-config.php to end sessions, and rotate database, hosting and admin credentials. Imunify360 also advises against running WP-CLI as root on an infected site.
- Tighten the baseline. Under the Cyber Essentials secure configuration and malware protection controls, block PHP execution in upload directories, enforce MFA on admin accounts and make sure any WAF is blocking, not just logging.
Bottom line
CVE-2026-125812 is a serious, simple-to-abuse flaw in a plugin found on millions of sites, and it is being exploited by multiple groups at once. Update WP Rocket now, assume exposure on any site that lagged behind, and check for backdoors before you call it closed.
Sources
- Patchstack: Critical WP Rocket RCE (CVE-2026-125812) Under Active Attack
- WP Rocket: Security advisory and mitigation steps for CVE-2026-125812
- Imunify360: Exploited WP Rocket flaw: update, check for planted files
- Techzine Global: Hackers exploit critical vulnerability in WordPress plugin WP Rocket
- IT-Connect: WP Rocket critical flaw under active exploitation to hack WordPress sites