Skip to main content
Black Friday Get 50% extra hosting credits. Pay $99, get $150. 50% extra credits 50% extra credits 4d 9h left Get $150 for $99Get it

WP Rocket Vulnerability (CVE-2026-125812): What It Is and How InstaWP Protects Hosted Sites

CVE-2026-125812 is a critical, actively exploited WP Rocket flaw that lets anyone run code on a site. It is fixed in 3.24.2. Here is who is at risk, what to do, and how InstaWP blocks it at the server level.

VS
Vikas Singhal
Founder, InstaWP
Updated Nov 30, 2026 12 min read
Vulnerability Rated critical Actively exploited
WP Rocket: unauthenticated remote code execution
LazyLoad for CSS background images and Host Fonts Locally
CVE
CVE-2026-125812
Severity
CVSS 9.8, critical
Affected
Every version before 3.24.2
Patched in
3.24.2

CVE-2026-125812 is a critical WP Rocket vulnerability that lets anyone, with no login, write a PHP file to a WordPress site and run it. It affects every WP Rocket version before 3.24.2, and attackers have been exploiting it since 25 November 2026. Update WP Rocket to 3.24.2 or later today.

If your site runs on InstaWP managed WordPress hosting, InstaWP blocks this attack at the server level, so your site stays protected while you update.

Last updated: 28 November 2026. Sources: Patchstack, the CVE record and the WP Rocket changelog.

Key takeaways
  • What broke: WP Rocket before 3.24.2 trusts URLs sent to a public endpoint, so an attacker can make it save their code on your server as a PHP file and run it.
  • Who is at risk: Sites on WP Rocket below 3.24.2 with LazyLoad for CSS background images or Host Fonts Locally turned on. No login is needed.
  • It is being exploited: Patchstack saw the first attack on 25 November 2026, and automated campaigns started within a day.
  • What InstaWP does: Blocks the attack at the server level on the sites it hosts, with nothing for site owners to do and no settings changed.
  • What you do: Update WP Rocket to 3.24.2 or later. The server-level block holds the line, but only the update removes the bug.
CVE-2026-125812 at a glance (28 November 2026)
QuestionAnswer
What it isA path traversal flaw in WP Rocket that leads to unauthenticated remote code execution (RCE)
CVE and scoreCVE-2026-125812, CVSS 3.1 score 9.8 (critical), weakness CWE-22
Affected versionsAll WP Rocket versions before 3.24.2
Affected settingsLazyLoad for CSS background images or Host Fonts Locally turned on. Both are off by default.
Fixed inWP Rocket 3.24.2, released 19 November 2026
Login needed to attackNo
Exploited in the wildYes. First attack seen on 25 November 2026 at 15:27 UTC (Patchstack)
Can your host update it for youUsually not. WP Rocket is a paid plugin, and updates need your licence.
Sites hosted on InstaWPProtected at the server level while owners update
What to doUpdate to WP Rocket 3.24.2 or later

What is the WP Rocket vulnerability CVE-2026-125812?

CVE-2026-125812 is a critical flaw in WP Rocket, the caching plugin from WP Media, that lets an unauthenticated attacker write and run PHP code on a WordPress site. It was reported on 4 November 2026 through the Patchstack bug bounty program, fixed in WP Rocket 3.24.2 on 19 November, and disclosed by Patchstack on 23 November 2026.

The cause sits in a WP Rocket performance feature. WP Rocket runs a small script in each visitor’s browser that measures the page and reports back to a public endpoint on your site. WP Rocket then uses the URLs in that report to optimise the page, for example by downloading Google Fonts or CSS background images to serve locally.

Before 3.24.2, WP Rocket did not check those URLs strictly enough. An attacker can send a fake report that points at their own server. WP Rocket downloads the attacker’s file and saves it on your server as PHP, and the attacker’s code then runs with the same access as WordPress itself.

That is why the score is 9.8 out of 10. There is no login, no user interaction, and the result is full control of the site: its files, its database and everything WordPress can reach.

Which WordPress sites are affected?

A site is exposed when it runs a WP Rocket version below 3.24.2 and has at least one of two features turned on: LazyLoad for CSS background images, or Host Fonts Locally. Patchstack lists both conditions in its advisory.

Both features are off by default, but Patchstack notes they are common on performance-tuned sites. If you did not set the site up yourself, assume they are on until you check.

Check the version from Plugins in wp-admin, or from the command line with WP-CLI:

bashcheck the installed WP Rocket version
$ wp plugin get wp-rocket --field=version
# anything below 3.24.2 is vulnerable

Even if both features are off, update anyway. Settings change, and a site that is safe today can become exposed the next time someone tunes it for speed.

Is CVE-2026-125812 being exploited?

Yes. Patchstack reports that the first exploitation attempt hit on 25 November 2026 at 15:27 UTC, two days after the advisory went public. Within a day the activity had turned into automated campaigns, with tens of thousands of blocked attempts on 26 November alone.

Public exploit code has also been available on GitHub since 25 November 2026. Once a working tool is public, attackers stop picking targets by hand and scan the web for any site that answers.

Treat this as an update for today, not for the next maintenance window. Every day a site stays on an old version, a scanner can find it.

Why can’t most hosts just update WP Rocket for you?

Most hosts can’t update WP Rocket for you because it is a premium plugin. Updates come through your own WP Rocket licence, not from WordPress.org, so a host cannot push the patched version to your site without your licence key.

That leaves a gap between the day a fix ships and the day each site owner logs in and updates. For a busy agency or a client site nobody has opened in months, that gap can be weeks. Attackers know this, which is why licensed plugins with a public exploit are such attractive targets.

What matters in that gap is whether anything between the attacker and your site can stop the attack. On managed WordPress hosting, that job falls to the host.

What did InstaWP do to protect hosted sites?

InstaWP blocks CVE-2026-125812 at the server level on the sites it hosts, so they stay protected while their owners update, with nothing for owners to do.

Response timeline · November 2026, UTC
19 Nov
WP Media releases WP Rocket 3.24.2 with improved validation of cached CSS, font and preconnect files.
23 Nov
Patchstack publishes the advisory.
25 Nov
The CVE record is published, exploit code appears on GitHub, and the first attacks begin.
26 Nov
InstaWP’s daily vulnerability watch flags it as act-now. The same day, InstaWP tests two layers of protection on staging and rolls them out in stages to the vulnerable sites it has identified, checking each site’s homepage after every batch.
28 Nov
InstaWP scans the disk of every server for WP Rocket copies below 3.24.2, including sites that do not report their plugin list, and extends the same protection to every site it finds. [CONFIRM BEFORE PUBLISH: fleet rollout complete]

The protection has two layers, and each one stops the attack at a different point:

  • A guard in front of WP Rocket. It rejects the malicious report before WP Rocket ever reads it, while normal optimisation reports from real visitors pass through as usual.
  • A server-level block on the payoff. If a malicious file lands in the upload or cache folders, where this attack writes by default, the web server refuses to run it.

Neither layer depends on the WP Rocket version a site runs, and neither one needed anything from site owners. No WP Rocket settings were changed, no plugin was forced to update, and no site went offline. InstaWP verified both layers on each site with tests that write nothing to it.

InstaWP also checked the protected sites for signs of an attack from before the protection went on, because attacks started before most sites could update.

InstaWP is deliberately not publishing the rules themselves. A copy-pasteable rule tells an attacker exactly what to route around. It is the same call InstaWP made for the Elementor Pro RCE in August, and it is how WordPress virtual patching works on InstaWP in general.

Server-level protection while site owners update, with nothing for them to do.

Hosting that patches the gap before you doInstaWP watches WordPress vulnerabilities daily and responds with server-level virtual patches.
Explore secure managed WordPress hosting

How is server-level protection different from waiting for an update?

Server-level protection closes the gap between the fix shipping and you installing it. Without it, a vulnerable site is open to attack until its owner updates.

When a paid plugin gets a critical CVE Without host-level protection On InstaWP
Can the host update the plugin for you No, the licence is yours No, same for InstaWP
Who closes the gap until you update Nobody InstaWP, at the server level
Protected before you update No Yes
Checked for earlier attacks Only if you do it Yes, as part of the response

Read it this way: no host can install a paid plugin update without your licence, InstaWP included. The difference is what happens in the days before you do. On InstaWP, the attack is stopped at the server while you schedule the update.

What does InstaWP’s protection not do?

Server-level protection blocks this attack, but it does not replace the WP Rocket update. Be clear about the limits before you decide when to update.

What it does
Stops the known attack before WP Rocket processes it
Refuses to run PHP from the upload and cache folders the attack writes to by default
Works on every WP Rocket version, before and after you update
Needs no action and changes no settings on your site
What it does not do
Remove the bug itself. Only WP Rocket 3.24.2 does that
Protect copies of your site hosted somewhere else
Cover the next WP Rocket flaw, which needs its own response
Remove a file planted before the protection went on

What should you do now?

Update WP Rocket to version 3.24.2 or later on every site you run, starting today. That is the only step that removes the bug.

If your site is hosted on InstaWP

Update WP Rocket from Plugins in wp-admin today. Your site is protected at the server level in the meantime, so you can do it calmly rather than in a panic. If you want to test the update first, make a WordPress staging site, update there, and push staging to live once you are happy.

Update anyway, even though you are protected. A server-level block stops the attack, while the vendor’s release removes the bug, so you want both. Before you update, check that you have a recent restore point in your InstaWP backups.

If your site is hosted somewhere else

  • Update to WP Rocket 3.24.2 or later today. It needs an active WP Rocket licence on the site.
  • If you cannot update right away, turn off LazyLoad for CSS background images and Host Fonts Locally in WP Rocket’s settings. Patchstack recommends this as a stop-gap.
  • Look for files you did not put there. Check wp-content/ itself, wp-content/uploads/, wp-content/cache/, wp-content/wp-rocket-config/ and the site root for PHP files created since 23 November 2026, for example wp-media-*.php.
  • Ask your host what they did. Ask whether they blocked CVE-2026-125812 at the server level, and whether they checked your site for earlier attacks.
Updating closes the hole. It does not undo an attack that already worked. If you find a PHP file you cannot explain, do not just delete it. Restore the site from a backup taken before 25 November 2026, then update WP Rocket, change your admin passwords and rotate your WordPress salts.

If you manage sites for clients

Start with the quiet sites. The brochure site nobody has logged into since launch is the one still running an old WP Rocket. A WordPress vulnerability scanner that covers all your client sites from one dashboard shows which ones still need the update.

What does this vulnerability show about WordPress hosting?

The gap is where hosting matters

CVE-2026-125812 was fixed before it was disclosed. The danger came from the time between the patch shipping and each site owner installing it. For a paid plugin, no host can close that gap by updating for you. A host can close it by stopping the attack on the server.

That is the job InstaWP does as secure managed WordPress hosting: watch for critical WordPress vulnerabilities every day, block them at the server level, and check hosted sites for earlier attacks, all without asking site owners to drop what they are doing. InstaWP Shield adds a firewall and bot protection at the edge on top of that, and automatic WordPress backups give you a clean restore point if you ever need one.

Move your WordPress sites to hosting that responds firstManaged WordPress hosting with server-level vulnerability protection, backups and staging included.
See managed WordPress hosting plans

Frequently asked questions

What is CVE-2026-125812?

CVE-2026-125812 is a critical vulnerability in the WP Rocket caching plugin for WordPress. It lets an attacker with no login make WP Rocket save their code on the server as a PHP file and run it. It has a CVSS score of 9.8 and is fixed in WP Rocket 3.24.2.

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

Every WP Rocket version before 3.24.2 is affected. WP Rocket 3.24.2, released on 19 November 2026, fixes it. Patchstack says the flaw can be exploited on sites with LazyLoad for CSS background images or Host Fonts Locally turned on.

Is my site safe if LazyLoad for CSS background images and Host Fonts Locally are off?

Patchstack lists those two features as the conditions for this attack, and both are off by default. Update to WP Rocket 3.24.2 anyway, because settings change and a site can become exposed the next time someone turns one of them on.

Is the WP Rocket vulnerability being exploited?

Yes. Patchstack saw the first exploitation attempt on 25 November 2026 at 15:27 UTC, and automated campaigns followed within a day. Public exploit code has been available on GitHub since 25 November 2026.

My site is hosted on InstaWP. Do I still need to update WP Rocket?

Yes. InstaWP blocks this attack at the server level, so your site is protected while you update, but only WP Rocket 3.24.2 removes the bug. Update from Plugins in wp-admin today.

What should I do if I cannot update WP Rocket right away?

Turn off LazyLoad for CSS background images and Host Fonts Locally in WP Rocket settings until you can update. Patchstack recommends this as a stop-gap. Then update to 3.24.2 or later as soon as your licence allows.

How do I know if my site was attacked through this WP Rocket flaw?

Look for PHP files you did not create in wp-content, wp-content/uploads, wp-content/cache, wp-content/wp-rocket-config and the site root, dated 23 November 2026 or later. If you find one, restore from a backup taken before 25 November 2026, update WP Rocket, and change your admin passwords.

Who found the WP Rocket vulnerability?

The vulnerability was found by the researcher Vorelito and reported through the Patchstack bug bounty program on 4 November 2026. WP Media shipped the fix 15 days later, before the advisory went public.

References

VS
Vikas Singhal
Founder, InstaWP

Vikas builds tools that take the friction out of WordPress development. He writes about WP-CLI, dev workflows, and running WordPress at agency scale.

$750 of hosting credits for $499.Black Friday