Hackers started exploiting a critical-severity vulnerability in the WP Rocket WordPress plugin less than a week after patches were rolled out, WordPress security firm Patchstack warns.
A premium caching and performance optimization plugin designed to speed up websites, improve page scores, and reduce server loads, WP Rocket is used on more than 5.6 million sites. It relies on a script in the visitors’ browsers to measure pages and report the results, but also writes cached files into the web root.
The exploited security defect, tracked as CVE-2026-125812 (CVSS score of 9.8), exists because, in versions 3.15 through 3.24.1, the plugin did not sufficiently validate reported URLs during page optimization. An attacker could exploit the bug via a crafted report to cause the target site to download attacker-controlled content and save it as a PHP file. The code would then be executed on the server, leading to unauthenticated code execution.
CVE-2026-125812 can only be triggered on deployments with the LazyLoad for CSS background images or the Self-host Google Fonts feature enabled. The plugin ships with both disabled by default, but they are typically enabled to boost site performance.
WP Rocket version 3.24.2 was released on November 19 with patches for the vulnerability. In-the-wild exploitation started six days later, on November 25, Patchstack says. “Within a day the activity had turned into automated campaigns, with tens of thousands of blocked attempts on November 26 alone,” the company notes.
Patchstack has observed exploitation attempts targeting either or both feature paths and payloads hosted on bare IP addresses, wildcard DNS names, temporary Cloudflare tunnels, and potentially compromised WordPress sites. “Several independent operators are active. Some send one identical payload to site after site; one cluster sent byte-identical requests from four residential IP addresses, a sign of a rotating proxy pool. Since November 25, the ten most active addresses accounted for roughly half of all blocked attempts,” Patchstack notes.
WordPress website owners and administrators are advised to update their WP Rocket installations to the latest version and then check for potential exploitation attempts. The update does not remove the files or accounts the attackers created on sites compromised before patching. On sites with expired WP Rocket licenses or that cannot be updated immediately, administrators should disable the LazyLoad for CSS background images and Self-host Google Fonts features, which mitigates the attack paths. A mitigation helper plugin is available for organizations managing multiple sites.


