Critical WP Rocket Vulnerability Exploited in Automated Attacks
Share
Attackers have begun exploiting a critical-severity vulnerability in the WP Rocket WordPress plugin, with automated campaigns targeting websites less than a week after a patch was made available. The security flaw allows unauthenticated remote code execution (RCE), potentially giving hackers full control over affected servers.
The vulnerability, tracked as CVE-2026-125812, carries a CVSS score of 9.8. It affects WP Rocket versions 3.15 through 3.24.1. WP Rocket is a premium performance and caching plugin used by approximately 5.6 million WordPress sites to improve loading speeds and server efficiency.
Automated Attacks Target Millions of Sites
Security researchers at Patchstack, who identified the activity, noted that exploitation attempts began on 25 November 2026, just six days after the plugin developer released a fix. Within 24 hours, the activity escalated into massive automated campaigns, with tens of thousands of blocked attempts recorded in a single day.
The exploitation involves the plugin’s failure to sufficiently validate reported URLs during the page optimisation process. Attackers can craft a specific request that forces a target website to download a malicious payload from a remote server and save it as a PHP file. This file can then be executed by the attacker without requiring any form of authentication.
Specific Features Create Attack Path
The vulnerability is not exploitable in all configurations. It specifically requires either the “LazyLoad for CSS background images” or the “Self-host Google Fonts” feature to be enabled. While both settings are disabled by default in a fresh installation, they are widely used by administrators to boost website performance scores.
Attackers are reportedly using rotating proxy pools and residential IP addresses to bypass traditional IP-based blocking. Payloads have been observed hosted on bare IP addresses, temporary Cloudflare tunnels, and previously compromised WordPress installations.
Immediate Action Required for Administrators
Website owners using WP Rocket are urged to update to version 3.24.2 or later immediately. It is important to note that updating the plugin will not remove malicious files or unauthorised accounts if a site has already been compromised.
For organisations unable to update immediately—such as those with expired licenses or complex deployment cycles—administrators should disable the “LazyLoad for CSS background images” and “Self-host Google Fonts” features within the plugin settings. This mitigation breaks the known attack paths and prevents the vulnerability from being triggered by unauthorized users.



