Skip links

WP Rocket vulnerability CVE-2026-125812: what to do now

WP Rocket in white above Patch, then check in orange on navy, between staggered timing bars
A page-load waterfall: the lit bar stands for the measurement report WP Rocket did not check strictly enough.

The answer in brief

Update WP Rocket to version 3.24.2 or later (the current release is 3.24.3). If you cannot update today, switch off LazyLoad for CSS background images and Self-host Google Fonts.

The flaw lets someone with no login run code on your website, and attackers have exploited it since at least 25 November 2026. WP Rocket’s security advisory for CVE-2026-125812 says only sites running an affected version with one of those optional settings on are at risk. If yours ever did, check it for signs of compromise.

What is the flaw?

An attacker can plant a file on your server and run it without logging in, then add admin accounts or inject spam. WP Rocket’s in-browser script measures each page and reports back; Patchstack’s analysis of the attacks explains that the plugin did not check those reports strictly enough, which let attackers place their own code on the server. The WP Rocket changelog describes the fix in 3.24.2 as improved “validation of cached CSS, font and preconnect files”.

The CVE record on NVD carries a 9.8 out of 10 score from Patchstack, which issued the CVE; the Wordfence vulnerability database agrees.

Table 1. Six days passed between the fix and the first attempt Patchstack recorded. Source: WP Rocket changelog, Patchstack.

If the table extends beyond the screen, scroll sideways to view all columns.

Date What happened
4 November 2026 What happenedFlaw reported to Patchstack
19 November 2026 What happenedWP Rocket releases the fix in version 3.24.2
25 November 2026 What happenedCVE published; Patchstack sees its first exploitation attempt at 15:27 UTC
26 November 2026 What happenedTens of thousands of blocked attempts in one day, according to Patchstack

Am I affected?

Your site is exposed if both are true:

  1. It runs WP Rocket below 3.24.2. WP Rocket’s advisory names 3.15 to 3.24.1; the Patchstack database entry, the CVE record and Wordfence say every version before 3.24.2. Update anything below 3.24.2.
  2. At least one of these settings is on: LazyLoad for CSS background images (the “Enable for CSS background images” box under LazyLoad, not “Enable for images” above it), or Self-host Google Fonts, added in version 3.18 (Patchstack calls this “Host Fonts Locally”).

Both sit under WP Rocket > Page Optimization > Image & Media (the Media tab before 3.24). Patchstack notes both are off by default but common on speed-tuned sites.

WP Rocket Image & Media settings with LazyLoad for CSS background images and Self-host Google Fonts ticked and marked
Where the two settings sit in WP Rocket, shown on a site that runs the patched 3.24.3.

If both have always been off, WP Rocket says the documented attack paths do not apply. Unsure about the past? Check an older backup, but do not restore it over your live site. Update anyway.

What should I do now?

  1. Take a full backup of files and database, stored off the server, and label it: it is evidence if the site was compromised. Note whether either setting is on.
  2. Update WP Rocket from the Plugins page and confirm the version reads 3.24.2 or later. No update showing? Click Check Again under Dashboard > Updates, as WP Rocket’s update guide suggests.
  3. If your licence has expired, turn both settings off and save; WP Rocket says this blocks the documented attack paths. Keep them off until you renew and update.
  4. Clear the cache and test your key pages, forms and checkout.
  5. Agencies: WP Rocket’s advisory links a helper plugin that switches both settings off, which you can deploy across many sites with WP-CLI (on Multisite, activate it on each subsite individually, not network-wide). Then check both settings are off on every site, and still update every site.

Updating stops new attacks but does not remove anything already planted, so if your site was ever exposed, carry on to the checks below.

How do I check whether my site was hit?

  • Unexpected PHP files. Patchstack advises checking wp-content/wp-rocket-config/, wp-content/uploads/ and the top level of wp-content/ for names such as wp-media-*.php. Sort by date modified and look for recent unfamiliar PHP files. WP Rocket keeps its own configuration file in wp-rocket-config, named after your domain, plus advanced-cache.php in wp-content, and both can change when you update or save settings. Compare any other PHP file you do not recognise with a backup from before the site was exposed, if you have one, before deleting it.
  • A full security scan, for example with Wordfence, whose scan results cover malicious files, modified plugin files and suspicious admin usernames. Its Standard scan leaves the plugin file comparison off, so switch it on; it only checks plugins from WordPress.org, so it cannot vouch for WP Rocket’s own files. A clean scan cannot show what happened before the update, so check manually too.
  • Users and plugins. Look for unknown Administrator accounts and plugins, including Must-Use plugins (a Must-Use link appears on the Plugins page when any are installed, and their files sit in wp-content/mu-plugins/).
  • Access logs for the whole exposed period. Patchstack says attacks arrive as POST requests to /wp-admin/admin-ajax.php with action=rocket_beacon, which real visitors also send, and a standard Apache access log does not record an action sent in a POST body. Ask your host to compare access, firewall and outbound logs for Patchstack’s warning signs: clients that never loaded the page they report on, full web addresses where bare domains are expected, and outbound connections to unfamiliar hosts, nip.io addresses or trycloudflare.com tunnels.

What if my site was compromised?

Do not just delete the file you found: an attacker who can run code can leave several ways back in, which is why updating alone was not enough after the UpdraftPlus incident either.

  1. Contain it. Ask your host to take the site offline or block public access.
  2. Keep evidence. Save the backup and access logs before changing anything.
  3. Restore or rebuild. Restore a clean pre-compromise backup (shops: note orders since then first), then update everything before going live, as the backup may contain the vulnerable version. With no clean backup, replace core, themes and plugins with fresh copies and remove unknown files and admins. Clear the cache once clean.
  4. Change every password and key: all WordPress users including admins, hosting, SFTP, the database (then update DB_PASSWORD in wp-config.php to match), stored API keys and the wp-config.php security keys (this logs everyone out). If you changed any before cleaning, WordPress’s hacked-site guide advises changing them again once clean.
  5. Check Google. The Security Issues report in Search Console shows whether Google has found hacked content and lets you request a review once fixed.
  6. Consider data protection. If personal data may have been accessed and the breach is likely to put people’s rights and freedoms at risk, UK GDPR requires you to report it to the ICO without undue delay and, where feasible, within 72 hours of becoming aware of it, as the ICO’s breach guidance explains.

Call in a professional if the site takes payments or holds personal data, you find files you cannot identify, the infection returns, or several sites are affected.

Should you switch caching plugin?

For most sites, no. WP Rocket shipped the fix before Patchstack recorded the first attack attempt, and each plugin compared here has had security fixes; updating quickly is what protects you.

Table 2. How the main caching plugins compare. Source: WordPress.org, Patchstack, Wordfence, FlyingPress.

If the table extends beyond the screen, scroll sideways to view all columns.

Option Cost Best fit Security record
WP Rocket 3.24.2 or later CostPaid; updates need an active licence Best fitMost hosts Security recordFixed six days before Patchstack’s first recorded attempt; Wordfence lists several other 2026 fixes
LiteSpeed Cache CostFree Best fitLiteSpeed hosting; full page caching needs a LiteSpeed server or QUIC.cloud CDN Security recordPatchstack: none unpatched; more than a dozen fixed in 2026, mostly cross-site scripting, plus one high-severity server-side request forgery flaw
Breeze CostFree Best fitCloudways, where its Varnish support is tested; confirm Varnish support elsewhere Security recordWordfence reported active attacks on a critical Breeze flaw, fixed in April 2026; Patchstack: none unpatched
FlyingPress CostPaid, from $59 a year for one site after the first year Best fitMost hosting Security recordPatchstack: one patched issue, from 2022; no disclosure programme there, so a short record proves little

Switch if your host runs LiteSpeed, you are on Cloudways, or you will not renew: an unlicensed WP Rocket without updates is a bigger risk than a free plugin you keep current.

If you switch, do the compromise checks first, because uninstalling removes the wp-rocket-config folder. Delete it from the Plugins page (WP Rocket’s uninstall guide says this removes its files and its .htaccess and wp-config.php changes), and confirm that the WP_CACHE line in wp-config.php is removed or set to false, that advanced-cache.php, the .htaccess block and the wp-rocket-config folder have gone, and that WP Rocket’s own folders inside wp-content/cache have gone (a theme may keep a folder of its own there); the guide’s manual steps cover the rest. Only then install the new plugin, so two caching plugins never run together, and retest forms, logins and checkout.

How do I prevent this next time?

  • Make someone responsible for security releases. WP Rocket does not allow automatic updates and recommends updating by hand, so name a person or maintenance service to install its releases and confirm the live version.
  • Switch on only the features you need, and monitor Patchstack or Wordfence vulnerability alerts.
  • Keep tested backups. Daily, off-site copies going back several weeks can give a clean restore point, if the copy predates the compromise.

Frequently asked questions

What is CVE-2026-125812?

A critical flaw (9.8 out of 10) in the WP Rocket caching plugin that lets an attacker with no login run code. Version 3.24.2 fixes it.

Is my site safe once I have updated WP Rocket?

From new attacks through this flaw, yes. Anything planted earlier stays, so check for signs of compromise if a vulnerable version ever ran with LazyLoad for CSS background images or Self-host Google Fonts on.

Do I need to stop using WP Rocket?

No, as long as you keep it updated and licensed.

Need a hand?

Our hosting, maintenance and security service covers WordPress updates, scans and clean-ups. Talk to AIWIZ if you would like help checking where you stand.

Explore
Drag