Skip to main content

Neotech Cloud Solutions

Home/Cybersecurity/WP Rocket vulnerability (CVE-2026-125812): your caching plugin can open your WordPress site to attackers
Ordinateur portable et écrans affichant des maquettes de site Web sur un bureau

WP Rocket vulnerability (CVE-2026-125812): your caching plugin can open your WordPress site to attackers

If your website runs on WordPress and loads fast, there is a good chance a caching plugin has something to do with it. WP Rocket is one of the most popular: Patchstack credits it with more than 5.5 million installs. But a critical WP Rocket vulnerability, CVE-2026-125812, lets an attacker with no password at all write and run PHP code on the site, in other words take control of it. The fix has been available since November 19, but since November 25, automated attacks have been piling up. On this Sunday, November 29, here is how to find out in 10 minutes whether your site is exposed.

This hits SMBs especially hard. Many sites were built a few years ago by a freelancer or an agency, with a premium plugin bought once. The licence has expired, updates no longer come in, and nobody notices… until the day the site shows something other than your services.

WP Rocket vulnerability: who exactly is exposed?

Good news: not every site using WP Rocket is vulnerable. According to WP Rocket’s advisory, the flaw affects versions 3.15 through 3.24.1, only when at least one of two options is turned on: “LazyLoad for CSS background images” and “Self-host Google Fonts”. Both are off by default, but Patchstack points out that they are common on sites tuned for speed.

⚙️ The two settings that open the door

WP Rocket › Page Optimization › Image & Media

🔴 On: exposed if the version is older than 3.24.2

LazyLoad for CSS background images
Self-host Google Fonts

At least one of the two options turned on with a vulnerable version: the site can be taken over remotely, without a password.

🟢 Off: attack path closed (temporary measure)

LazyLoad for CSS background images
Self-host Google Fonts

This is the workaround WP Rocket recommends when you can’t update right away. Keep it until version 3.24.2 or later is installed.

On versions older than 3.24, these options are in the Media tab. Labels are those of the English interface quoted by WP Rocket.

The flaw has a severity score of 9.8 out of 10 (CVSS). It requires no login: any malicious visitor can trigger it.

How a simple measuring tool becomes a way in

To optimise your pages, WP Rocket runs a small script in each visitor’s browser that measures the page and reports the results to the site through a public address. WP Rocket then uses the addresses (URLs) in that report to optimise the page. The catch, according to Patchstack: it does not check them strictly enough.

🔄 The hijack, in plain language

🧭

The browser measures the page

➜

📨

It sends a report to the site

➜

⚡ broken trust

🤝

The site trusts the URLs in the report

➜

📥

It downloads a file from the attacker

➜

💥

It saves it as PHP and runs it

↺

The attacker only has to send a fake report: the site downloads and runs the code itself. Simplified explanation based on Patchstack, with no technical exploit details.

The result: the attacker’s code runs on your server. From there, our experience shows what usually follows a site takeover: hidden phishing pages, redirects to scams, spam sending, malware served to your customers, and then a site flagged as dangerous by search engines. We saw it with the stolen UpdraftCentral keys, a backdoor hidden in WordPress: a compromised site can keep a backdoor long after it seems clean.

The dates to remember

The fix came out before the attacks. That is exactly why up-to-date sites are fine, and why those with an expired licence are on the front line.

📄 The WP Rocket file in four stamps

Nov. 19

Fixed version 3.24.2 released by WP Rocket

Nov. 25

10:27 a.m. EST: first exploitation attempt seen by Patchstack

Nov. 26

Tens of thousands of attempts blocked in a single day

Nov. 27

Patchstack and WP Rocket advisories: automated attacks under way

According to Patchstack, the first attacker worked by hand, then within a day the activity turned into automated campaigns run by several independent groups. Time converted from UTC to Montréal time.

These automated campaigns don’t pick their targets: they test every WordPress site they find. The size of your business won’t protect you. As we noted with the WordPress vulnerability exploited during updates, bots strike fast once a flaw is published.

What to do depending on your licence status

First question for whoever manages your site: “Do we use WP Rocket, which version, and is our licence active?” What comes next depends on the answer.

🔑 Is your WP Rocket licence active?

✅ Yes

  1. WordPress dashboard › Plugins › WP Rocket › “Update now”.
  2. Confirm that the installed version is 3.24.2 or later.
  3. Repeat on each of your sites.

❌ No, or I don’t know

  1. Turn off both options right away (Page Optimization › Image & Media).
  2. Save and check on each site that both settings really are off.
  3. Renew the licence or replace the plugin, then install version 3.24.2 or later. Keep the options off until then.

⚠️ If either option was on while the site ran a vulnerable version: have the site checked by your host or security team.

Based on WP Rocket’s advisory. For agencies managing several sites, WP Rocket also offers a small helper plugin that turns off both options at once.

One important warning, repeated by WP Rocket and Patchstack: the update blocks new attacks, but it does not remove files or accounts an attacker may already have created. That is a separate investigation.

Where to look if your site may have been hit

If your site was exposed, Patchstack explains where to look. It is a job for your webmaster or host, but it helps to know what to ask for.

🗂️ wp-content/ — places to inspect according to Patchstack

📂 wp-content/← unexpected PHP files directly here
📁 plugins/
📁 themes/
📂 uploads/← should not contain unexpected PHP files
📂 wp-rocket-config/← WP Rocket’s configuration folder
⚠️ wp-media-xxxx.php← fictional example of a suspicious name, following the published pattern (wp-media-*.php)

🧹 The update does not remove files that were already planted.

Other signs to have checked: outbound connections from your web server to unknown addresses, and the server logs since November 25.

Our advice: use this opportunity to list every premium plugin on your site, with each licence’s expiry date. That is often where the gaps hide. Check your hosting’s PHP version at the same time, as we explained with the PHP emergency update.

🛡️ How NeoTech helps

Our WordPress maintenance service takes care of updates, plugin licence tracking, backups and file integrity checks. Our managed security clients’ sites also benefit from automated 24/7 monitoring with on-call technician intervention. See our website design and maintenance offer.

Book your free cyber check

In 30 minutes, we review with you the plugins on your WordPress site, the status of their licences and updates, and who can make changes to it.

👉 Book your free cyber check

Call us at 438-476-2322 or email info@neotechcloudsolutions.com.

Our office: 2572 boul. Daniel-Johnson, office 237, Laval.

Sources

Photo: Tranmautritam, Pexels (Pexels licence).

Leave a Reply

Your email address will not be published. Required fields are marked *