A critical flaw in WP Rocket, the popular caching plugin, is under active attack. It lets anyone on the internet run their own code on your site, with no login needed. Patchstack says it saw the first attempt on November 25, and attempts have risen sharply since.
What happened
The flaw is tracked as CVE-2026-125812 and scores 9.8 out of 10 for severity. WP Rocket has an endpoint that measures page performance. It does not check the URLs it receives strictly enough. An attacker can trick the site into downloading remote content, saving it as a PHP file, and running it.
Once an attacker can run code, they can usually take over the whole site.
Who is affected
Any site running WP Rocket before version 3.24.2 is affected, but only if one of two settings is on:
- LazyLoad for CSS background images
- Host Fonts Locally
Both are off by default. Both are common on sites tuned for speed, so check rather than assume.
What to do
- Update WP Rocket to 3.24.2 or later. This is the fix.
- If you can’t update yet, turn off both settings above until you can.
- Look for PHP files you don’t recognize. Patchstack points to names like
wp-media-*.phpinwp-content/,wp-content/uploads/, andwp-content/wp-rocket-config/. - Ask your host to check server logs for odd
admin-ajax.phprequests withaction=rocket_beacon, and for outbound connections to unfamiliar hosts.
Updating does not remove files an attacker has already planted. If your site ran a vulnerable version since November 25, treat the check in step 3 as required, not optional. If you find a file you can’t explain, assume the site is compromised and ask your host or a security professional to help clean it.
End of article