Being exploited

WP Rocket flaw under attack: update the plugin today

WP Rocket, a paid caching plugin for WordPress, has a flaw that lets a stranger with no login run their own code on your website. It only works when one of two optional settings is switched on.

Security newsPublished By the Expect Best security team4 min read

Tracked as
CVE-2026-125812
Being exploited
Yes, says Patchstack
Affects
WP Rocket before 3.24.2, with one of two settings on
Fix
WP Rocket 3.24.2 or later

The fix came out on 19 November. Security firm Patchstack saw the first attacks on 25 November, and tens of thousands of attempts the next day. If your site uses WP Rocket, check it today.

What the flaw does

WP Rocket makes WordPress pages load faster. Its maker says an attacker can use this flaw to run code of their choice on an affected website, with no account or password needed (WP Rocket). The flaw is tracked as CVE-2026-125812.

Patchstack, which published the CVE record for the flaw, rates it 9.8 out of 10, the critical band. It says the attacker can write PHP files onto the site and then run them (Patchstack). Someone who can do that controls the website.

WP Rocket released version 3.24.2 with the fix on 19 November (WP Rocket).

The attacks so far

Patchstack says it saw the first exploitation attempt on 25 November at 15:27 UTC, and blocked tens of thousands of attempts on 26 November alone (Patchstack). WP Rocket’s advisory, updated on 27 November, points to Patchstack’s report of active automated attacks on vulnerable sites (WP Rocket).

Neither company has said how many sites have been broken into. The flaw was not on the US CISA list of known exploited flaws when we checked on 30 November. Security firm Rescana points out that this does not mean attackers are leaving it alone (Rescana).

Which sites are affected

Your site is at risk if it runs an older version of WP Rocket and has at least one of these two settings switched on (WP Rocket):

  • LazyLoad for CSS background images
  • Self-host Google Fonts

Both are off by default, according to Patchstack (Patchstack). The sources differ on which versions are affected. WP Rocket lists versions 3.15 to 3.24.1 (WP Rocket), while Patchstack lists every version before 3.24.2 (Patchstack). Either way, 3.24.2 or later is safe from this flaw.

If you are not sure who switched which settings on, assume your site could be affected until you have checked.

What to do today

These steps follow the advice from WP Rocket and Patchstack (WP Rocket; Patchstack). If someone else looks after your site, send them this page.

  1. Check whether you use WP Rocket. Log in to WordPress and open the Plugins page. Look for WP Rocket and its version number.
  2. Update to 3.24.2 or later. WP Rocket says that with an active licence you can click Update now on the Plugins page. If no update shows, ask your developer or check your licence.
  3. If you cannot update yet, switch both settings off. WP Rocket’s advisory shows where to find LazyLoad for CSS background images and Self-host Google Fonts. Keep them off until the update is in.
  4. Check for a break-in if either setting was on. Updating stops new attacks but does not remove files an attacker already planted. Patchstack says to look for unexpected PHP files, such as ones named wp-media-something.php, in the wp-content folder and its uploads and wp-rocket-config folders. Ask your host or developer to do this and to check the server logs.
  5. Look for new admin accounts. WP Rocket says any accounts an attacker created need their own investigation. Open Users in WordPress and remove anyone you do not recognise.

Can our free check spot this?

Only in part. Our free check lists the WordPress plugins a site shows in its public page code, and matches the version numbers it can see against known flaws. If your site does not publish WP Rocket’s version number, the check cannot match it. It also cannot see your plugin settings or log in, so a clean result does not prove you are safe from this flaw. Check the version in WordPress yourself.

If you think your site was attacked, our guide on checking whether a WordPress site is hacked explains the signs.

If your WordPress site uses WP Rocket, update it to 3.24.2 or later today, and check for planted files if either setting was on.

Common questions

What is CVE-2026-125812?
A critical flaw in the WP Rocket caching plugin for WordPress. It lets an attacker with no login run code on an affected website when LazyLoad for CSS background images or Self-host Google Fonts is switched on.
Is it being exploited?
Yes. Patchstack says it saw the first attack attempt on 25 November 2026 and blocked tens of thousands of attempts on 26 November.
Which version fixes it?
WP Rocket 3.24.2, released on 19 November 2026. Any later version also includes the fix.
I have WP Rocket but both settings are off. Am I safe?
WP Rocket and Patchstack say the flaw needs one of the two settings switched on. Update anyway, because settings can be changed later and the update closes the hole for good.
Does updating remove an attacker who already got in?
No. WP Rocket says updating does not remove files or accounts an attacker already created, and Patchstack says the same about planted files. Those need checking and cleaning up as a separate job.

Sources

How safe is your website?

A free A to E grade in about 10 seconds. No account needed.

Check my site