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.
- 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.
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:
$ 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.
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.
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.
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 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 examplewp-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.
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?
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.
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.