Critical WP Rocket plugin flaw under active attack
Attackers are abusing an unauthenticated code-execution bug in the WordPress caching plugin through two optional features, and updating to version 3.24.2 does not remove files already planted.

- What happened
- Attackers began exploiting CVE-2026-125812 in the WP Rocket plugin on 25 November, days after WP Media released a fix in version 3.24.2.
- What’s new
- Patchstack says exploitation moved from manual probing to automated campaigns by several operators within a day.
- Why it matters
- Unpatched sites with either affected feature enabled can be taken over without a login, and patching alone does not clean a breached site.
Attackers are exploiting a critical vulnerability in WP Rocket, a paid caching plugin for WordPress, that lets someone with no login run their own PHP code on a site. WordPress security firm Patchstack gives the flaw, CVE-2026-125812, a CVSS score of 9.8.
Developer WP Media fixed the flaw in WP Rocket 3.24.2, released on 19 November 2026. BleepingComputer reports that WP Media published its advisory over the following weekend. According to BleepingComputer, WP Media says the plugin runs on more than 5.6 million sites belonging to 394,000 customers.
How the attack works
Patchstack explains that WP Rocket injects a lightweight script into visitors' browsers to measure each page. The script sends its results to a public AJAX action called rocket_beacon. The plugin then uses the URLs in those reports without checking them strictly enough. A forged report can therefore make the site fetch content from an attacker's server, store it as a PHP file and execute it.
The attack works only through two features: LazyLoad for CSS background images and local hosting of Google Fonts. WP Media's advisory labels the second feature Self-host Google Fonts, while Patchstack calls it Host Fonts Locally. Both are off unless a site owner enables them, but Patchstack says they are common on sites tuned for speed.
The sources disagree on which versions are affected. Patchstack and BleepingComputer describe every version before 3.24.2 as vulnerable, while WP Media's own advisory limits the range to 3.15 through 3.24.1.
From manual probes to automated campaigns
Patchstack's telemetry recorded the first attempt on 25 November 2026 at 15:27 UTC, from an attacker working by hand. By the next day the activity had become automated, with tens of thousands of blocked attempts on 26 November alone. BleepingComputer says Patchstack's platform blocked more than 25,000 malicious requests.
Patchstack says several independent operators are involved, and they often target both features in a single request. They host payloads on bare IP addresses, nip.io wildcard names, temporary trycloudflare.com tunnels and WordPress sites that are probably compromised. The firm published the ten most active attacking IP addresses, which it says accounted for roughly half of all blocked attempts.
What site owners should do
WP Media advises updating to 3.24.2 or later. Sites that cannot update, including those with expired licences, can switch off both features under WP Rocket > Page Optimization > Image & Media; on versions before 3.24 the settings sit on the Media tab. WP Media says this immediately mitigates the documented attack paths. For agencies and hosts running many sites, WP Media offers a helper plugin that turns off both features and can be deployed in bulk with WP-CLI.
WP Media and Patchstack both warn that updating does not clean up a site that has already been breached. Patchstack suggests looking for stray PHP files in wp-content/wp-rocket-config/, wp-content/uploads/ or wp-content/ itself, such as files named wp-media-*.php. It also suggests checking for outbound connections to unfamiliar hosts and for beacon requests from clients that had not loaded the page in question. WP Media advises owners whose sites had either setting on while running a vulnerable version to have their host or security team look for signs of intrusion.