WP Rocket is one of the most popular paid plugins for making WordPress sites load faster. Its maker, WP Media, says it runs on more than 5.6 million sites. Attackers are now using a critical flaw in it to run their own code on websites, no login needed.
Get the free 5-minute weekday brief. Scam alerts you can act on, major breaches, and what to do next — join 1,600+ readers.
Plus get our free Scam Survival Kit (PDF). Unsubscribe anytime.
The fix has been out since November 19. The catch: sites with an expired WP Rocket license may not be able to install it.
Attackers are using a WP Rocket flaw to plant code on WordPress sites without logging in. Update to 3.24.2 today, or switch off two optimization settings until you can.
Free 5-minute weekday briefGet the free 5-minute weekday brief
Scam alerts you can act on, major breaches, and our free Scam Survival Kit (PDF). Free, every weekday.
By subscribing you agree to our Privacy Policy.
For everyday readers, small businesses and security teams. Unsubscribe anytime.
Attackers are exploiting a WP Rocket flaw on WordPress sites
Here is what WP Media and the WordPress security firm Patchstack have confirmed:
- The flaw: CVE-2026-125812, rated 9.8 out of 10. WP Rocket sends page measurements to a public endpoint and did not check them strictly enough, so an attacker can make the site download a file and save it as PHP code that then runs on the server.
- Which sites: WP Rocket 3.15 through 3.24.1, when either “LazyLoad for CSS background images” or “Host Fonts Locally” (shown as “Self-host Google Fonts”) is turned on. Both are off by default, but Patchstack says they are common on sites tuned for speed.
- Exploitation: Patchstack saw the first manual attempt on November 25 at 15:27 UTC. By November 26 it had turned into automated campaigns from several attackers, with tens of thousands of blocked attempts that day. BleepingComputer reports more than 25,000 malicious requests blocked so far.
- The fix: version 3.24.2, released November 19. WP Media published its advisory over the weekend.
The flaw is not in CISA’s Known Exploited Vulnerabilities list as of November 30. CISA’s list mostly tracks flaws that matter to federal agencies; Patchstack’s attack data is the confirmation here.
Why a paid speed plugin puts small business sites at risk
Plenty of small businesses, shops, churches and bloggers run WordPress with WP Rocket installed by a web designer years ago. Nobody may be watching the license or the update screen, and an expired license is exactly where updates stall.
A site taken over this way can be used to steal visitor data, show spam or malware, or host attack files. Patchstack says attackers already use other hacked WordPress sites to host their payloads.
Update WP Rocket to 3.24.2, then look for planted files
- In WordPress, go to Plugins, find WP Rocket and confirm the version is 3.24.2 or later.
- Can’t update yet, for example because the license lapsed? Open WP Rocket, then Page Optimization, then Image & Media, and turn off LazyLoad for CSS background images and Self-host Google Fonts. WP Media offers a small helper plugin that does this across many sites.
- Updating does not remove files an attacker already planted. If either setting was on before you patched, ask your host or web designer to check for compromise.
- If someone else built or manages your site, send them this article and ask them to confirm the version in writing.
For IT teams: CVE-2026-125812 (CVSS 9.8 from the CNA; NVD status Deferred). Exploitation CONFIRMED by Patchstack; not in CISA KEV as of catalog 2026.11.30. Fixed in 3.24.2; affected 3.15 to 3.24.1. Look for POST /wp-admin/admin-ajax.php with action=rocket_beacon from clients that never loaded the page, outbound requests to nip.io names or trycloudflare.com tunnels, and unexpected PHP files such as wp-media-*.php in wp-content/, wp-content/uploads/ or wp-content/wp-rocket-config/.
Sources
- WP Rocket: Security advisory and mitigation steps for CVE-2026-125812
- Patchstack: Critical WP Rocket RCE (CVE-2026-125812) under active attack
- NVD: CVE-2026-125812
- BleepingComputer: Hackers exploit critical WordPress WP Rocket flaw to breach sites (Nov 30)
Start your morning with the signal that matters.
Get the biggest cybersecurity developments, why they matter, and where to go deeper on CyberExperts.
By subscribing you agree to our Privacy Policy.
For everyday readers, small businesses and security teams. Unsubscribe anytime.