WP Rocket flaw lets attackers run code without logging in
WP Rocket, the WordPress caching plugin, is under active attack through a critical vulnerability that lets attackers run PHP code on affected websites without logging in. Patchstack tracks the issue as CVE-2026-125812 and rates it 9.8 out of 10, or Critical, on the Common Vulnerability Scoring System (CVSS), a scale used to describe the severity of security flaws. The issue affects WP Rocket versions before 3.24.2 when either of two features is enabled: LazyLoad for CSS background images or Host Fonts Locally.
Patchstack says the first exploitation attempt appeared on November 25, 2026, at 15:27:11 UTC. Its telemetry, meaning data collected from the security activity it monitors, showed that attack volume rose sharply afterwards. WP Rocket is used on more than 5.5 million sites, although the source does not say how many of those sites have either affected feature enabled. Both options are disabled by default, but Patchstack says they are common on sites that have been tuned for performance.
The vulnerability involves a public AJAX endpoint. AJAX is a way for a webpage to send or receive information in the background without a full page reload. WP Rocket uses a small browser script to measure pages and send reported URLs to this endpoint, then uses those URLs during optimisation. Patchstack says the plugin does not validate the reported URLs strictly enough. By sending a specially crafted report, an attacker can make the site fetch content from an attacker-controlled server, save that content as a PHP file, and execute the attacker’s code on the web server.
The two vulnerable paths are CSS background-image lazy loading and local hosting of Google Fonts. Attackers send requests to WP Rocket’s measurement endpoint at `POST /wp-admin/admin-ajax.php` with the action `rocket_beacon`. Patchstack observed that the earliest attacker tested payloads manually against several sites and then tried encoded versions when the first attempts were blocked. Within a day, the activity had developed into automated campaigns, producing tens of thousands of blocked attempts on November 26 alone.
The campaigns use both feature paths, sometimes in a single request so that one works if the other option is enabled. Patchstack saw payloads hosted on bare IP addresses, wildcard DNS names such as nip.io, temporary trycloudflare.com tunnels, and other WordPress sites that were likely already compromised. Some attackers first checked whether a site was vulnerable without exposing the server they intended to use.
Patchstack says several independent operators are active. Some repeatedly send the same payload to different sites. One cluster sent byte-identical requests from four residential IP addresses, which Patchstack describes as evidence of a rotating proxy pool. Since November 25, the ten most active addresses represented roughly half of all blocked attempts: 103.235.74.71 on Ikubaru in Indonesia, 5,352 requests; 157.245.122.230 on DigitalOcean, 5,003; 152.89.170.194 on C1V Hosting in Italy, 3,455; 180.232.236.101 on Eastern Telecom in the Philippines, 2,288; 103.235.74.72 on Ikubaru in Indonesia, 1,950; 201.79.120.217 on DigitalOcean, 1,938; 112.78.154.32 on Biznet in Indonesia, 1,876; 167.71.75.155 on DigitalOcean, 1,600; 43.163.8.253 on Aceville and Tencent Cloud in Singapore, 1,326; and 51.79.199.209 on OVH in Singapore, 1,018.
Site owners can look for suspicious `rocket_beacon` requests from clients that never loaded the page they reported, or requests that supplied full URLs where WP Rocket normally expects only bare domains. Other warning signs include outbound connections from the web server to unfamiliar hosts, nip.io names or trycloudflare.com tunnels. Patchstack also recommends checking for unexpected PHP files in `wp-content/wp-rocket-config/`, `wp-content/uploads/` and directly in `wp-content/`, including files with names such as `wp-media-*.php`, and reviewing historical logs.
Updating WP Rocket to version 3.24.2 or later is the primary response. The update prevents new exploitation, but it does not remove PHP files that an attacker may already have planted. Sites that ran a vulnerable version without protection should therefore inspect the listed directories and review older logs even after updating. If an immediate update is not possible, Patchstack advises disabling both LazyLoad for CSS background images and Host Fonts Locally, or using its RapidMitigate rule for CVE-2026-125812, which blocks these exploitation attempts without changing plugin code. Patchstack says that rule was active more than two days before the first attack arrived and that it is continuing to monitor the campaign.
For organisations that want the WordPress environment managed as part of a broader hosting setup, AEU Hosting provides managed WordPress hosting secured end to end. That does not replace updating WP Rocket or checking a previously exposed site, but it is relevant when choosing how the website’s hosting is operated.
The immediate priority is to update, disable the two affected features if necessary, and investigate for signs of earlier access rather than assuming that a successful update cleans up an already compromised site.