A critical flaw in WP Rocket, a popular caching and performance plugin for WordPress, is being exploited by attackers. Tracked as CVE-2026-125812 and rated CVSS 9.8, it lets attackers with no login write and run PHP code on affected sites. Patchstack, whose security research lead Dave Jong published the analysis, says its telemetry recorded the first exploitation attempt on 25 November 2026 at 15:27 UTC. Volume has risen sharply since.
The issue is fixed in WP Rocket 3.24.2. A GitHub advisory for the flaw, which classifies it as a path traversal weakness, was published on 25 November 2026. At the time of writing the vulnerability is not listed in CISA's Known Exploited Vulnerabilities catalogue, but Patchstack reports active, automated attacks.

What is affected
Not every WP Rocket site is exposed. The flaw needs one of two optional features to be switched on.
- WP Rocket versions before 3.24.2
- Only on sites with LazyLoad for CSS background images or Host Fonts Locally enabled
- Both features are off by default, but Patchstack notes they are common on performance-tuned sites
What goes wrong
WP Rocket runs a small script in visitors' browsers. It measures each page and reports the results back to a public endpoint on the site. WP Rocket then uses the URLs in those reports to optimise the page.
The plugin does not check those reported URLs strictly enough. An attacker can send a fake report that makes the site download content from a server the attacker controls and save it as a PHP file. That file then runs on the web server. Because the reporting endpoint is public, no account is needed.
Why it matters
Code execution on the server means an attacker can do almost anything the website can do. That includes reading the database, adding hidden admin users, injecting spam or skimming scripts, and using the site to attack others.
Patchstack describes the attacks moving quickly. The first attacker worked by hand. Within a day the activity had become automated campaigns, with tens of thousands of blocked attempts on 26 November alone. Several independent groups are involved. Some try both vulnerable features in a single request, so either setting is enough to be hit. Payloads are hosted on bare IP addresses, temporary tunnel services and other WordPress sites that are likely already compromised.
An important point: updating stops new attacks but does not remove files an attacker has already planted. Any site that ran a vulnerable version with either feature on should be checked, not just patched.
What to do now
- Update WP Rocket to 3.24.2 or later on every WordPress site you manage.
- If you cannot update straight away, turn off both LazyLoad for CSS background images and Host Fonts Locally until you can.
- Patchstack users are covered by its mitigation rule for CVE-2026-125812, which Patchstack says was live more than two days before the first attack.
- Look for unexpected PHP files in
wp-content/wp-rocket-config/,wp-content/uploads/or directly inwp-content/. Patchstack giveswp-media-*.phpas an example file name. - Review web server logs for requests to
admin-ajax.phpwith therocket_beaconaction from clients that never loaded the page they report on. - Check for outbound connections from your web server to unfamiliar hosts, including nip.io names or trycloudflare.com tunnels.
- If you find anything suspicious, treat the site as compromised: restore from a clean backup, reset passwords and keys, and review admin accounts.
Patchstack says it is continuing to monitor the campaign and will update its advisory as activity changes. Given how fast attacks became automated, sites still on an older version should be updated today.
Not sure if this affects you? Talk to us and we will check your sites and servers and plan the update with you.
Sources
- Critical WP Rocket RCE (CVE-2026-125812) Under Active Attack: Patchstack, 27 November 2026
- Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') vulnerability in...: GitHub Advisories, 25 November 2026
