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.