Threat actors are actively exploiting a critical vulnerability in WP Rocket, a paid WordPress caching plugin. The flaw, tracked as CVE-2026-125812, carries a CVSS score of 9.8 and allows unauthenticated attackers to write and execute arbitrary PHP code on affected sites.
What is vulnerable
The root cause is insufficient validation of data sent to a public endpoint. Attackers can use it to download and run PHP code from an external source. The flaw affects WP Rocket versions before 3.24.2. According to the developer, WP Media, the plugin is used on more than 5.6 million sites.
Exposure depends on configuration. The vulnerable code paths are the “LazyLoad for CSS background images” and “Host Fonts Locally” options. Both are inactive by default, but a site with either one enabled can be targeted.
Observed exploitation
Patchstack, a WordPress security firm, first observed low-scale manual exploitation attempts on November 25. The activity escalated to fully automated campaigns the following day. Attackers have used both feature paths, sometimes within a single request, so that whichever option is enabled triggers the exploit. Payloads have been hosted on bare IP addresses, wildcard DNS services such as nip.io, temporary trycloudflare.com tunnels, and other likely compromised WordPress sites. Patchstack reports that its platform has blocked more than 25,000 malicious requests from multiple attackers.
Recommended actions
- Upgrade WP Rocket to version 3.24.2 or later. The fix was released on November 19.
- If an immediate upgrade is not possible, disable the LazyLoad for CSS background images option and the Self-host Google Fonts option under the plugin’s Media settings.
- Block the attacker IP addresses published by Patchstack.
- Review web server logs for suspicious requests and check for unexpected outbound connections.
- Inspect the site for planted files. Updating the plugin does not remove files an attacker has already placed.
The vendor has also released a helper plugin to assist administrators managing multiple sites with mitigation. Because the exploit yields code execution, sites that ran a vulnerable configuration should be treated as potentially compromised until logs and files have been checked.
