WP Rocket flaw under attack - update to 3.24.2 and check your site

Cover image generated with AI (FLUX.1 schnell via Cloudflare Workers AI); title and layout added by Stackbrook
WP Rocket is a caching and speed plugin for WordPress websites. A flaw in it, tracked as CVE-2026-125812, can let someone with no login run their own code on an exposed site, and the security company Patchstack says attackers are actively using it. If somebody else looks after your website, send them this page today. Details are as read on 30 November 2026.
Disclosure: this post was drafted by Claude, an AI assistant made by Anthropic, and checked by a separate AI reviewer against the cited pages for figures, dates and wording. This is not a full human review. Stackbrook did not test the plugin or the attacks and has no affiliate relationship with any company mentioned at the time of writing. Patchstack sells website protection products, including the blocking rule mentioned below. The header image is AI-generated. This is general information, not professional security, legal or financial advice.
Who is exposed
WP Rocket's advisory, last updated 27 November, says versions 3.15 through 3.24.1 are affected when at least one of these two settings is switched on:
- LazyLoad for CSS background images
- Self-host Google Fonts
Patchstack describes the range more broadly, as any version before 3.24.2, and calls the second setting Host Fonts Locally. It says both features are off by default but commonly turned on at sites tuned for performance. We cannot settle the difference in version ranges from these pages, so the safe approach is to treat any version older than 3.24.2 as due for an update.
Patchstack gives the flaw a CVSS severity score of 9.8 out of 10. In plain terms, this is a remote code execution problem. Patchstack's database entry says an attacker can run any command on the server. Its article explains that a script WP Rocket uses to measure pages reports addresses back to a public endpoint on your site. Because those reports were not checked well enough, a crafted one can make the site save content from elsewhere as a PHP file, which is a program the server can run.
The fix and the timing
Version 3.24.2 contains the fix. WP Rocket dates it 19 November 2026, and the changelog entry for that day includes a security line about better validation of cached CSS, font and preconnect files. That line does not name the CVE number. The changelog also lists a later version, 3.24.3, dated 26 November.
Patchstack says the first exploitation attempt it observed came on 25 November at 15:27 UTC. Volume then rose sharply, and the company reports blocking tens of thousands of attempts on 26 November. Those figures describe what Patchstack saw through its own protection, not a count of hacked websites. The pages we read give no total for affected or compromised sites.
Chart created by Stackbrook from the cited pages.
What to do if you have an active licence
- In the WordPress dashboard, open Plugins, find WP Rocket and choose Update now.
- Confirm the installed version reads 3.24.2 or later.
- If no update appears, follow WP Rocket's update guide, which the advisory refers to.
- Repeat for every affected site. Our general suggestion is to include staging copies and old client sites in that list.
- Move on to the checks for signs of compromise below.
What to do if you cannot update yet
This path covers an expired licence or any other delay. The advisory does not say whether owners of expired licences can download 3.24.2, and it points them to WP Rocket's contact page for renewal help.
- Open WP Rocket, then Page Optimization, then Image & Media. In versions before 3.24, use the Media tab.
- Turn off LazyLoad for CSS background images.
- Turn off Self-host Google Fonts.
- Save, then confirm both settings are still off on each site.
- Leave them off until version 3.24.2 or later is installed.
WP Rocket says turning both off mitigates the documented attack paths immediately, and asks owners to apply this while arranging a renewal. Our general suggestion is to look over your key pages afterwards, in case loading or fonts behave differently.
If you manage many sites
WP Rocket offers a small helper plugin called WP Rocket | Mitigate CVE-2026-125812, which turns off the two features and which hosts and agencies can roll out in bulk. Download the ZIP file through the link in the advisory, which points to WP Rocket's helpers repository on GitHub. Then run this WP-CLI command (WP-CLI is the command-line tool for WordPress) from the folder holding the file:
wp plugin install ./wp-rocket-mitigate-cve-2026-125812.zip --activate
On a WordPress multisite network, the advisory says to install it once and activate it on each affected subsite, replacing the example address with your own:
wp plugin activate wp-rocket-mitigate-cve-2026-125812 --url=https://example.com/subsite/
Check afterwards that both settings are off. The helper is a stopgap, so still plan the update.
Patchstack also says it released a blocking rule for its own customers more than two days before the first attack it saw. A firewall rule can reduce exposure, but it is not a reason to skip the update.
Check for signs of compromise
Updating closes the hole. Patchstack warns that it does not remove files an attacker has already planted, and WP Rocket says any files or accounts already created need separate investigation. If your site ran an older version with either setting on, ask your host or a security professional to look for:
- unexpected PHP files in
wp-content/wp-rocket-config/,wp-content/uploads/orwp-content/itself, with names such aswp-media-followed by other characters - POST requests to
/wp-admin/admin-ajax.phpwith the actionrocket_beaconthat come from visitors who never loaded the page the request reports on, or that send full web addresses where only a domain is expected - outgoing connections from your server to unfamiliar hosts, including
nip.ioortrycloudflare.comaddresses (Patchstack also saw attack payloads hosted on bare IP addresses)
The rocket_beacon action belongs to the plugin's normal measurement process, so seeing it alone does not prove an attack. Patchstack's article also lists the ten busiest attacking IP addresses, which accounted for only about half of the attempts it blocked from 25 November. It advises reviewing past logs, and your host can compare them with that list. In our view, a clean result on these checks is not a guarantee, because file names and attack sources can change.
As general advice from us rather than from the cited pages: if you find something suspicious, avoid simply deleting the file and carrying on. Keep a copy of logs and evidence, get qualified help, and review user accounts and passwords as part of the cleanup. If customer data may have been exposed, ask a suitable adviser what duties apply where you operate.
A short message to send your web person
"Please confirm every site we own runs WP Rocket 3.24.2 or later. If any cannot be updated today, turn off LazyLoad for CSS background images and Self-host Google Fonts. For any site that ran an older version with either setting on, check for unexpected PHP files, new or unknown accounts and unusual rocket_beacon requests, and tell us what you found."
Then ask for the answer in writing, with the version number for each site. Check the WP Rocket advisory and Patchstack article again over the next few days, as Patchstack says it will update its article while activity develops.
Sources
- WP Rocket security advisory and mitigation steps for CVE-2026-125812 (WP Rocket, updated 27 November 2026)
- Plugin changelog (WP Rocket)
- Critical WP Rocket RCE (CVE-2026-125812) under active attack (Patchstack, 27 November 2026)
- WP Rocket before 3.24.2 remote code execution, database entry (Patchstack)