A critical WP Rocket flaw (CVE-2026-125812) is being exploited. Update to 3.24.2 now and check your site for planted files.

Halftone collage of a toy rocket beside a broken padlock on a yellow background

A critical flaw in WP Rocket, one of the most popular WordPress caching plugins, is being actively exploited to take over websites. If your site runs WP Rocket older than version 3.24.2, update it today and check for files an attacker may already have planted.

Security firm Patchstack published details on 27 November 2026. The flaw is tracked as CVE-2026-125812, scores 9.8 out of 10 for severity, and lets an attacker with no login run their own code on your server. Patchstack saw the first attack on 25 November and tens of thousands of blocked attempts on 26 November alone.

Updated 30 November 2026.

WP Rocket sits on millions of sites, many of them business sites tuned for speed and Core Web Vitals. That’s exactly the kind of site that turns on the two features this attack needs. A hacked site is a security problem first, but it quickly becomes a search problem too: injected spam pages, redirects to scam sites and Google warnings can wipe out rankings you spent years building.

What happened

WP Rocket runs a small script in visitors’ browsers that measures each page and reports back to a public endpoint on your site. Patchstack found that the plugin didn’t check those reports strictly enough. An attacker can send a crafted report that makes your site download a file from a server they control and save it as PHP. Once that file is on your server, their code runs.

Two optimisation settings can be abused this way:

  • LazyLoad for CSS background images
  • Host Google Fonts locally

Both are off by default. Both are common on sites where someone has worked on page speed. If neither is switched on, the known attack path doesn’t reach your site, but you should still update.

Who is affected

You’re exposed if all three of these are true: your site runs WordPress, it uses WP Rocket below version 3.24.2, and one or both of the settings above is enabled. Patchstack reports several separate groups running automated attacks, so this isn’t limited to big or well known sites. Small business sites are being hit because they’re easy to scan in bulk.

What to do now

The fix is quick. Most site owners can do the first two steps in ten minutes.

  1. Log in to WordPress, go to Plugins and check the WP Rocket version number. Update to 3.24.2 or later.
  2. If you can’t update straight away, go to WP Rocket’s settings and turn off LazyLoad for CSS background images and Host Google Fonts locally until you can.
  3. Ask your developer or host to look for unexpected PHP files in wp-content/wp-rocket-config/, wp-content/uploads/ and directly in wp-content/. Patchstack mentions files named like wp-media-*.php.
  4. Check your server logs for unusual requests to admin-ajax.php with the action rocket_beacon, and for outbound requests from your server to unfamiliar hosts.
  5. If you manage several sites, check every one. Agencies and freelancers often install the same plugin stack everywhere.

Updating stops new attacks. It doesn’t remove anything an attacker has already put on your server, which is why steps 3 and 4 matter if your site ran a vulnerable version with either setting on.

How to check if your rankings were hit

Attackers rarely announce themselves. They usually want your site’s authority for their own pages. These checks show whether that has happened:

  1. Search Google for site:yourdomain.co.uk and look for pages you didn’t create, especially ones about pharmacy, gambling, loans or foreign language content.
  2. Open Search Console and check the Security issues and Manual actions reports.
  3. Look at the Pages report for a sudden jump in indexed URLs, and the Sitemaps report for sitemaps you didn’t submit.
  4. Run a crawl of your site and compare it with your last one. Our guide to running a site crawl covers how.

We covered the same pattern in our post on SEO poisoning on hacked WordPress sites: attackers plant pages that rank for searches your customers make, then send that traffic somewhere harmful. Clean-up is far harder than prevention.

Why this matters for SEO, not just security

Google treats a compromised site as a risk to searchers. That can mean a warning in the results, pages dropping out of the index or a manual action. Even after the clean-up, it takes time for Google to recrawl and trust the site again.

There’s also a speed angle. Many businesses installed WP Rocket to pass Core Web Vitals. Turning off its features in a panic can slow the site down, so update rather than uninstall where you can. Our explainer on Core Web Vitals explains what each metric measures if you need to retest afterwards.

What we still don’t know

Patchstack hasn’t published a count of sites actually compromised, only attack attempts it blocked. We also don’t yet know how many sites had the two vulnerable settings switched on. We’ll update this post if that changes.

If you’d like a second pair of eyes on your plugins, security and rankings, our technical SEO team can check your site, and B2B firms can see how we protect lead generation sites on our B2B SEO agency page. Book a free strategy session and we’ll go through it with you.

Related reading: our guides to what PHP2Shell meant for SEO and what an SEO audit covers.

Common questions

Which WP Rocket versions are affected by CVE-2026-125812?

Versions before 3.24.2 are affected when LazyLoad for CSS background images or Host Google Fonts locally is switched on. Version 3.24.2 fixes the flaw.

Is my site safe if I've updated WP Rocket?

Updating stops new attacks, but it doesn’t remove files an attacker may already have planted. If your site ran an older version with either setting on, check wp-content for unexpected PHP files and review your logs.

Can a hacked WordPress site lose its Google rankings?

Yes. Attackers often add spam pages or redirects, which can lead to security warnings, pages dropping out of the index or a manual action in Search Console.

Should I uninstall WP Rocket?

Usually not. Updating to 3.24.2 or later fixes the flaw, and removing the plugin can slow your site and hurt Core Web Vitals. Turn off the two affected settings only if you can’t update straight away.

Jozef RaczkaFave songAlex ChiltonThe Replacements · Pleased to Meet Me, 1987

Joe is a Search Executive at Circulate, with over 6 years of experience in SEO content writing and strategy. Having achieved Masters' in script writing & magazine journalism, he brings the best of both disciplines to his writing. Providing creativity, a facts-led approach to finding the story and a rigid commitment to good structure. His articles have been featured in UNILAD, being cited in multiple sources for his SEO expertise and has led to participation in nationally broadcast media events. He's written for multiple publications and media, contributing to short-form audio play content and podcast hosting & production. Outside of work, he enjoys watching a good film and making a good soup.FromSutton ColdfieldBased inSheffieldStudiedFilm, Journalism & ScriptwritingProudest campaignHarbour House

AI Visibility ScorecardFree, takes 2 minutes