A WP Rocket vulnerability, CVE-2026-125812, is being used to break into WordPress sites right now. It lets anyone, without logging in, make your site download and run their own code. It’s fixed in WP Rocket 3.24.2, but WP Rocket never updates itself, so a lot of sites are still exposed.
The good news: it only works when one of two optional settings is switched on. Here’s how to tell in two minutes whether your site is affected, how to fix it, and what to check if it was exposed. We run WordPress maintenance for small businesses and agencies, and we checked every site we look after for it this week.
What is the WP Rocket vulnerability?
CVE-2026-125812 is a critical WP Rocket flaw (CVSS 9.8) that lets attackers without a login make your site download and run their own code.
WP Rocket is a paid caching plugin that WP Media says runs on more than 5.5 million sites (press page). To speed pages up, it runs a small script in visitors’ browsers that measures each page and reports back to the site. Patchstack, which found and disclosed the bug, explains that WP Rocket didn’t check those reports strictly enough. A faked report can trick the site into downloading a file from the attacker’s server and saving it as code that runs.
The official CVE record scores it 9.8 out of 10. Patchstack saw the first attack on November 25, 2026, and by the next day it had turned into automated campaigns, with tens of thousands of blocked attempts on November 26 alone. Wordfence also reports blocking thousands of attacks a day.
Is my site affected by the WP Rocket vulnerability?
You’re exposed if WP Rocket is older than 3.24.2 and “LazyLoad for CSS background images” or “Self-host Google Fonts” is on.
| Your site | Exposed? |
|---|---|
| WP Rocket 3.24.2 or later | No, the fix is installed |
| Older than 3.24.2, both settings off | Not through the known attacks, but update anyway |
| Older than 3.24.2, either setting on | Yes. Update now and check for planted files |
| No WP Rocket installed | No |
WP Media’s advisory says versions 3.15 through 3.24.1 are affected, while the CVE record and Patchstack list every version before 3.24.2. Either way, the answer is the same: anything below 3.24.2 needs updating. Patchstack notes that both settings are “common on performance-tuned sites,” so don’t assume yours are off because they’re off by default.
How do I check my WP Rocket version and settings?
Check the version on your Plugins page, then open WP Rocket, Page Optimization, Image & Media to see if either setting is on.
- Log in to WordPress and go to Plugins. Find WP Rocket and read the version under its name.
- Go to Settings, WP Rocket, then Page Optimization, then Image & Media. On versions before 3.24 these options are on the Media tab instead.
- Look for LazyLoad for CSS background images and Self-host Google Fonts. If either is on and your version is below 3.24.2, treat the site as exposed.
If you manage sites from the command line, wp plugin get wp-rocket --field=version prints the installed version.
How do I fix the WP Rocket vulnerability?
Update WP Rocket to 3.24.2 or later. If you can’t yet, turn off both settings, which WP Media says blocks the known attacks.
If your licence is active: go to Plugins, find WP Rocket and click Update now, then confirm the version reads 3.24.2 or later. If no update shows, WP Rocket’s update guide has a way to force the check. Version 3.24.3 is also out, and it includes the fix.
If your licence has expired: you won’t get the update. WP Rocket’s licence page says an expired licence loses plugin updates, but the plugin keeps running, vulnerable code and all. Turn off both settings now, and renew if you want to stay on WP Rocket.
If you look after many sites: WP Media published a free helper plugin that switches both settings off and keeps them off until the site is on 3.24.2. Agencies can install it in bulk with WP-CLI.
One warning about rolling back. WP Rocket’s Tools tab can reinstall an older version if an update breaks something, but anything below 3.24.2 brings the hole back. If you roll back, keep both settings off.
How do I know if my site was already hacked?
Updating doesn’t remove files an attacker already planted. Look for unexpected PHP files in wp-content and odd outbound connections from your server.
If your site ran a vulnerable version with either setting on after November 25, check it. Patchstack lists these signs:
- Unexpected PHP files in
wp-content/wp-rocket-config/,wp-content/uploads/or directly inwp-content/, for example files named likewp-media-*.php. - Your server making requests to unfamiliar hosts, especially
nip.ionames ortrycloudflare.comtunnels. - Requests to
admin-ajax.phpwithaction=rocket_beaconfrom visitors who never loaded the page they’re reporting on.
WP Media’s advisory is clear that “any files or accounts an attacker already created require separate investigation.” That means checking for new admin users too. If you find something, our guide to what a hacked WordPress site costs to clean walks through the cleanup.
Why didn’t WP Rocket update itself?
WP Rocket blocks automatic updates on purpose, and the November 19 fix came with a vague changelog line, so many owners never clicked Update.
WP Rocket’s own documentation says it doesn’t allow automatic updates “because there is always the possibility of something going wrong.” That’s a fair call for a caching plugin, but it means every fix waits for a person to click.
And there was little reason to click. The 3.24.2 entry in the changelog lists two bug fixes and one line: “Security: Improve validation of cached CSS, font and preconnect files.” No CVE, no “critical.” The public advisory came after the attacks had already started. Here’s how it played out:
| Date (2026) | What happened |
|---|---|
| Nov 4 | Flaw reported to Patchstack |
| Nov 19 | WP Rocket 3.24.2 released with the fix |
| Nov 25 | CVE published; first attack seen the same afternoon |
| Nov 26 | Automated attacks, tens of thousands blocked |
| Nov 27 | Patchstack write-up; WP Media advisory updated |
| Nov 30 | BleepingComputer covers it |
This is the same pattern we saw with the WordPress core flaw last month: the patch exists, but sites stay open until someone actually applies it. It’s the main reason a WordPress maintenance plan exists.
Frequently asked questions
Is WP Rocket safe to use now?
Yes, on version 3.24.2 or later, which fixes CVE-2026-125812. Sites on older versions with LazyLoad for CSS background images or Self-host Google Fonts turned on are exposed until they update.
What is CVE-2026-125812?
A critical WP Rocket vulnerability, scored 9.8 out of 10, that lets attackers without a login make a site download and run their own PHP code. It was published on November 25, 2026 and attacked the same day.
Does turning off the two settings fix it?
It blocks the documented attack paths, according to WP Media, so it’s a good stopgap. Updating to 3.24.2 or later is still the real fix, and neither one removes files an attacker already planted.
Is the WP Rocket vulnerability on CISA’s Known Exploited Vulnerabilities list?
Not as of CISA’s November 30, 2026 catalog. Patchstack labels it as known to be exploited, based on attacks it has seen since November 25.
Do I need to do anything if I’m already on WP Rocket 3.24.3?
No update is needed, since 3.24.3 includes the fix. If your site ran an older version with either setting on after November 25, still check for planted files.
Does an expired WP Rocket licence still get the security fix?
No. An expired licence loses plugin updates, so the site keeps the vulnerable version. Turn off both settings now and renew the licence to install 3.24.2.
Need a hand?
Not sure if your site is exposed?
We check, update and watch WordPress sites every month, so fixes like this one go on before attacks start. See our WordPress maintenance plan, or tell us about your site and we’ll take a look. Prefer the phone? Call (919) 444-2005.
