WP Rocket Vulnerability: Update and Check Your Site

A critical WP Rocket vulnerability is being attacked right now, and it can let someone who isn't logged in run their own code on your WordPress site. WP Rocket is a popular speed plugin. If you use it, check your version today. Anything below 3.24.2 needs an update.
Here's who's exposed, what to do first, and how to check whether someone got in before you did. Details are current as of December 1, 2026.
What is the WP Rocket vulnerability?
It's a flaw, tracked as CVE-2026-125812, that lets an attacker write and run PHP code on an affected site without an account. Patchstack's advisory rates it 9.8 out of 10, which is critical.
The timeline is short:
- November 19, 2026: WP Rocket released version 3.24.2, which WP Rocket's own advisory says fixes the issue.
- November 25: Patchstack saw the first exploitation attempt at 15:27 UTC.
- November 26: Attacks turned automated, and Patchstack blocked tens of thousands of attempts that day.
- November 27: Patchstack published its alert that the flaw was under active attack. Outlets such as IT-Connect have since reported it.
Blocked attempts aren't the same as hacked sites. The reports we reviewed don't say how many sites were actually broken into. WP Rocket's home page says it's used on 5.6M+ websites, but that's total use, not the number at risk.
Is your WordPress site exposed?
Your site is exposed if it runs an affected version and at least one of two settings is on:
- LazyLoad for CSS background images
- Self-host Google Fonts (Patchstack calls this one "Host Fonts Locally")
Patchstack says both settings are off by default. Tuskira's advisory notes they're common on performance-tuned sites, so don't assume yours are off. If an agency or freelancer set up your caching, check for yourself or ask them to confirm in writing.
On affected versions, the two sources word it slightly differently. WP Rocket's advisory says versions 3.15 through 3.24.1. Patchstack says everything before 3.24.2. The safe move is the same either way: update anything below 3.24.2.
How do you fix the WP Rocket vulnerability today?
Update WP Rocket to 3.24.2 or later. Work through these steps:
1. List every WordPress site you own. Include old landing pages, test copies and microsites.
2. Take a backup of files and database. Don't overwrite your older backups. You may need one from before the attacks began.
3. Update from the Plugins page. In your WordPress dashboard, go to Plugins, find WP Rocket and select Update now, as WP Rocket's advisory describes.
4. Check your license. Tuskira's advisory says that when a license expires, the site loses plugin updates while the plugin keeps running. A site can look fine while it stays on an old version. Renew the license or download the update from your WP Rocket account.
5. Confirm the installed version is 3.24.2 or later, then test your home page, forms and checkout.
Can't update right now? WP Rocket's advisory says to turn off both settings as a temporary step. Go to WP Rocket, then Page Optimization, then Image & Media. On versions before 3.24, use the Media tab. Turn off "LazyLoad for CSS background images" and "Self-host Google Fonts," save, and confirm both are off on each site. Keep them off until you update. Tuskira notes this comes with a page-speed cost. Patchstack also offers its own mitigation rule that blocks exploitation attempts without changing plugin code. If speed worries you, here's how website speed affects WordPress user experience and SEO.
How can you tell if your site was already hacked?
Updating blocks new attacks through this flaw, but it doesn't remove files an attacker already planted. Both WP Rocket and Patchstack say this. If your site ran a vulnerable version with either setting on, ask your host or developer to check these, based on Patchstack's indicators:
- Unexpected PHP files in `wp-content/wp-rocket-config/`, `wp-content/uploads/` or directly inside `wp-content/`. Patchstack gives `wp-media-*.php` as an example name pattern.
- Server logs with suspicious POST requests to `/wp-admin/admin-ajax.php` that use `action=rocket_beacon`.
- Outgoing connections from your server to hosts you don't know, including `nip.io` names or `trycloudflare.com` tunnels.
Don't panic over one clue. Patchstack flags requests from visitors who never loaded the page they're reporting on, or reports with full web addresses where only domain names belong. A single log line alone doesn't prove an attack.
What should you do if you find a suspicious file?
Treat the site as possibly compromised and get your host or a security professional involved before you start deleting. WP Rocket's advisory says planted files or accounts need separate investigation. These are our suggested general steps, not part of either advisory:
- Write down what you found and when, with the time zone.
- Keep a copy of the current site for the investigation, even if it's infected.
- Call your hosting company. Other sites on a shared server may be affected.
- Once the site is clean, change your WordPress, hosting, file transfer and database passwords, and turn on two-factor authentication.
If you run a store, save newer orders and customer records before any restore so you don't lose them. If customer or payment data may be involved, bring in a security incident specialist and get legal advice.
What should your 2027 WordPress maintenance plan include?
Your 2027 plan should name who applies urgent updates, how fast, and how you'll know it worked. Here the fix came out six days before Patchstack saw the first attempt. A once-a-month update routine could easily miss a window like that.
- Assign an owner and a backup person for security updates.
- Track licenses. Put every paid plugin's renewal date on one calendar, since an expired license stops updates.
- Keep several backups over time and test that they restore.
- Delete plugins you don't use.
- Check your PHP version. PHP is the software WordPress runs on. According to PHP's support schedule, security support for PHP 8.2 ends December 31, 2026. Zend's PHP end-of-life guide lists PHP 8.3 as following on December 31, 2027.
The last three are our general suggestions. If you're still on PHP 8.2, plan that upgrade now and test it on a copy of your site first. Updating PHP won't replace the WP Rocket update. They're separate jobs. For more on PHP risk, read our guide to the PHP2Shell flaws.
How can 10Native help with your WordPress site?
10Native offers WordPress and web design, so we can help you get your site current and check what customers see after the changes. Ask us about:
- Checking your WP Rocket version and the two risky settings
- Planning and testing plugin and PHP updates
- Reviewing pages, forms and checkout after changes
- Rebuilding an outdated WordPress site that's become hard to maintain
We'll agree on the scope with you first. An update can't promise your site was never touched, and no one can promise it'll never be attacked. A confirmed breach involving customer data calls for a dedicated incident response specialist.
Not sure your site is safe?
Don't leave it on the to-do list. Call 10Native at 415 489 9314 or 214 758 7971, email info@10native.com, or send us your site details. Please don't email passwords.
Running WP Rocket? Let's check your WordPress site and plan a safe update.
Talk to 10NativeSources
- Patchstack: Critical WP Rocket RCE (CVE-2026-125812) under active attack
- WP Rocket: Security advisory and mitigation steps for CVE-2026-125812
- WP Rocket: Home page (usage figure)
- IT-Connect: WP Rocket critical flaw under active exploitation
- Tuskira: CVE-2026-125812 advisory
- PHP: Supported versions
- Zend: PHP end-of-life dates
10Native Team
Building resilient enterprise solutions in AI/ML, Data Engineering, Fintech & Digital Marketing.


