
Hackers are exploiting a critical flaw in WP Rocket, a paid WordPress caching and speed plugin, to run their own PHP code on websites. The flaw, CVE-2026-125812, comes from the plugin not validating data sent to a public endpoint strictly enough. Patchstack, the WordPress security firm that tracked the attacks, explains that WP Rocket runs a small script in visitors’ browsers that reports page measurements to a public AJAX endpoint, and an attacker who sends a crafted report can make the site download content from a server the attacker controls and save it as a PHP file. No login is needed. Patchstack rates the flaw 9.8 out of 10.
Patchstack’s data shows the first exploitation attempt on November 25 at 15:27 UTC, a manual one, with automated campaigns the next day and tens of thousands of blocked attempts on November 26 alone. BleepingComputer reports that Patchstack has blocked more than 25,000 malicious requests from multiple attackers. WP Media, the plugin’s developer, says WP Rocket is used on more than 5.6 million sites, according to BleepingComputer; Patchstack puts it at 5.5 million or more. Patchstack also sells a WordPress mitigation product, which it mentions in its post, so treat its recommendation of that product accordingly.
How to check if you’re affected
Affected versions are WP Rocket versions before 3.24.2, and only on sites where “LazyLoad for CSS background images” or “Host Fonts Locally” is turned on. Patchstack and BleepingComputer both say these two options are off by default. WP Media released the fix on November 19, per BleepingComputer, and the fixed release is 3.24.2.
- Update WP Rocket to 3.24.2 or later.
- If you cannot update right away, turn off both options. BleepingComputer gives the location as WP Rocket > Page Optimization > Image & Media > Media tab and names the second option “Self-host Google Fonts”; Patchstack calls it “Host Fonts Locally”. BleepingComputer adds that the vendor shared a helper plugin for people managing many sites.
- Updating does not remove files an attacker already planted. Patchstack says to look for unexpected PHP files in
wp-content/wp-rocket-config/,wp-content/uploads/or directly inwp-content/(for examplewp-media-*.php), and to review historical logs forrocket_beaconrequests to/wp-admin/admin-ajax.phpfrom clients that never loaded the page they report on, or that report full URLs where WP Rocket expects bare domains. - Also look for outbound requests from the web server to unfamiliar hosts. Patchstack says attackers host payloads on bare IP addresses,
nip.ionames, temporarytrycloudflare.comtunnels and other likely-compromised WordPress sites. It lists the ten most active attacking addresses in its post, and BleepingComputer says site owners should put those on a blocklist.
