

WP Rocket Flaw Is Under Active Attack: Updating Is Not Enough



Listen Full Blog Here
Key Takeaways
- »CVE-2026-125812 lets anyone plant a backdoor on your WordPress site with no login required
- »Only sites with "LazyLoad for CSS background images" or "Host Fonts Locally" enabled are at risk
- »Attacks started November 25 with tens of thousands of automated attempts hit by November 26
- »Updating to WP Rocket 3.24.3 stops new attacks but does not remove backdoors already planted
- »Attackers also hide a regenerator file in wp-content/mu-plugins/ and create rogue admin accounts
- »Check logs for rocket_beacon requests and inspect writable directories for unexpected PHP files
Most WordPress site owners heard about the WP Rocket vulnerability, updated the plugin, and moved on. But updating the plugin is only half the job.
Upgrading to WP Rocket 3.24.2 or 3.24.3 closes the vulnerability and blocks further attacks through this flaw. It does not tell you whether an attacker had already accessed your site. It does not remove backdoor PHP files planted before the update or reverse changes made while your website was exposed.
CVE-2026-125812 was first exploited on November 25, 2026, at 15:27 UTC, while the patch had been available since November 19. That six-day window is where the real concern lies. Updating closes the entry point, but it does not establish whether your site was compromised before the fix was applied and this is where WordPress site owners need to investigate next.
The WP Rocket Vulnerability CVE-2026-125812: What Attackers Are Doing Right Now
WP Rocket improves WordPress performance by caching pages, optimizing files, and reducing load times. Two of its features ("LazyLoad for CSS background images" and "Host Fonts Locally") work by running a measurement script on the front end of your site. The script reports page data back to a WordPress AJAX endpoint, admin-ajax.php, using the action rocket_beacon.
The WP Rocket vulnerability lies in how this endpoint handles incoming data. When either feature is enabled, it accepts URLs without proper validation. An attacker can send a crafted POST request, prompting the server to fetch a file from an attacker-controlled URL and save it as a PHP file on your website. No login, credentials, or user interaction is required.
This PHP file acts as a web shell, allowing attackers to execute commands on your server. They can steal database credentials, access wp-config.php, inject malware into pages, create hidden admin accounts, or target other systems sharing the same server or database.
The first attacks were recorded on November 25. By November 26, Patchstack was blocking tens of thousands of automated attempts daily. The ten most active attacking IP addresses accounted for roughly half of all blocked requests, pointing to mass scanning. Vulnerable WordPress sites are being scanned at scale.
Is Your WordPress Site at Risk? Check These Two Settings
The WP Rocket hack does not affect every WordPress site running the plugin. Two conditions must both be true: you are running version 3.15 through 3.24.1, and at least one of these two settings is enable:
LazyLoad for CSS Background Images
Location: WP Rocket > Media > Images. This is off by default. If you turned it on for performance, your site was in the vulnerable path.
Host Fonts Locally (Self-host Google Fonts)
Location: WP Rocket > File Optimization > Fonts. Also off by default. Many site owners enable this for GDPR compliance or page speed. If yours was on and you were running a version below 3.24.2, your site was exposed.
To confirm your current WP Rocket version, go to Plugins in your WordPress dashboard. The current safe version is 3.24.3. If you manage multiple sites, check with WP-CLI:
wp plugin get wp-rocket --field=version
If you see anything below 3.24.2, update immediately. If updates are blocked by an expired license or the deployment process, disable both settings as a temporary measure, which removes the vulnerable attack path until the patch is in place.
Updating to WP Rocket 3.24.2 Is Not Enough
Updating removes the vulnerable code, failing future attempts to exploit CVE-2026-125812 on your site.
However, the update does not scan your filesystem, check your logs, remove files an attacker already planted, or tell you whether your site was hit.
The mass exploitation campaign ran from November 25 onwards. Sites running a vulnerable version with either affected setting enabled during that period were targeted. Many of those requests were not blocked, but hit unprotected sites before a WAF rule or update was in place. And for such sites, a backdoor PHP file may already be sitting in a writable directory, waiting.
There is a broader concern too. If your WordPress site shares a database, API keys, Supabase credentials, or backend service connections with other applications, a compromised WordPress install means those are also at risk. Rotate them if your site was exposed.
The Exact Steps to Find a WP Rocket Backdoor on Your Site
Run these checks on every site that was running WP Rocket below 3.24.2 with either affected setting enabled at any point since November 23, 2026.

Check 1: Access logs for exploit attempts
Search your server access logs for this pattern since November 23:
POST /wp-admin/admin-ajax.php with action=rocket_beacon
The presence of these requests means your site was targeted. It does not confirm a successful attack but means you must complete all remaining checks. If you use Cloudflare or a WAF, check those logs too. They may have blocked attempts your server never saw.
Check 2: Unexpected PHP files in writable directories
Manually inspect these four locations for PHP files you did not create:
- wp-content/
- wp-content/uploads/
- wp-content/cache/
- wp-content/wp-rocket-config/
Look specifically for files matching the pattern wp-media-*.php or any PHP file created on or after November 23 that you do not recognize.
Check 3: Suspicious outbound server connections
Check your server logs for outbound connections to unfamiliar IP addresses, nip.io domains, or trycloudflare.com addresses. These are the external hosts the exploit uses to deliver payloads. An outbound connection to any of them from your web server is a strong indicator of a successful attack.
Check 4: Run a malware scan
If your host provides a file integrity scanner or malware detection tool, run it now against the directories listed above. Wordfence and Sucuri both offer scanning for unexpected files, which supplements manual checks.
Found a Compromised File: Do This Immediately
When you find a compromised file, do not delete the file and move on. A planted web shell is often the first step, not the only step. By the time you find one file, the attacker may have created admin accounts, modified other files, or logged credentials, and deleting one file does not undo any of that.
- Take the site offline: Put it in maintenance mode immediately. Every minute the site stays live with an active backdoor is another minute the attacker has access and your visitors are at risk.
- Restore from a clean backup: The only reliable way to fully clean a compromised WordPress site is to restore from a backup taken before November 25, 2026. File cleanup attempts on live compromised sites frequently miss attacker-created access points.
- Update WP Rocket before going live again: Restore the clean backup, then update WP Rocket to 3.24.3 before the site goes back into production. Restoring an old backup without patching puts you straight back into the same vulnerability.
- Rotate every credential on and connected to the site: Change all WordPress admin passwords, rotate WordPress security salts, and change FTP and hosting panel credentials. If the site shares a database or API keys with other systems, rotate those too.
- Notify your hosting provider: They have server-level logs that may show exactly what was accessed and when. Many managed WordPress hosts also have incident response processes.
Do Not Assume the WP Rocket Update Means You Are Safe
On November 25, attackers started scanning for the WP Rocket vulnerability. By November 26, tens of thousands of automated requests were hitting vulnerable WordPress sites every day. Some found open doors while some walked through. By the time most site owners heard about CVE-2026-125812 and applied the update, the window had already been open for days.
The update closes the door and does not look inside. A WP Rocket backdoor file sitting quietly in wp-content/mu-plugins does not send you a notification. A rogue admin account created on November 26 does not appear on your dashboard with a warning label. Your site can look completely normal and still be compromised.
A compromised WordPress site rarely stays isolated. The credentials, APIs, and connected systems around it are all within reach once an attacker has a foothold.
FAQs
CVE-2026-125812 is a critical unauthenticated remote code execution flaw in WP Rocket versions 3.15 through 3.24.1. It allows an attacker to write and execute a PHP file on a WordPress site without logging in by sending one crafted request to a public WordPress AJAX endpoint. Active exploitation began November 25, 2026 at 15:27 UTC. The fix is WP Rocket 3.24.2 or later.
Yes, the vulnerability only activates when "LazyLoad for CSS background images" or "Host Fonts Locally (Self-host Google Fonts)" is enabled. If neither setting was ever turned on, your site was not in the vulnerable path regardless of which WP Rocket version you were running. Still update to 3.24.3 for general security.
Only if your site was running a vulnerable version with either affected setting on between November 25 and the moment you updated. If you updated before November 25, no. If you updated after November 25, check the access logs and directories listed in this guide. The update closes the vulnerability, but it does not remove files already planted.
Attackers typically plant a webshell named in the pattern wp-media- followed by eight hexadecimal characters and .php, in directories like wp-content/, wp-content/uploads/, or wp-content/wp-rocket-config/. They also plant a file in wp-content/mu-plugins/ that automatically re-creates the backdoor if you delete the visible file. This is why deleting one file is not enough — the mu-plugins loader will regenerate it.
Check your WordPress database directly. In wp_users, look for admin accounts you did not create. Cross-reference with wp_usermeta to confirm their role. Attackers commonly create hidden administrator accounts alongside the backdoor file. If you find one, treat the entire site as compromised and restore from a clean backup.
WP Rocket released version 3.24.2 on November 19 and sent notification emails later. Some users received the email six or more days after the fix, by which point attacks had already begun. Going forward, enable auto-updates for security plugins or monitor WP Rocket's changelog directly at wp-rocket.me/changelog.

eRetail Growth
in Mind?
Get tailored technology solutions to scale your retail business online
Request A Quote
Subscribe to
Stay in Know
Stay ahead with insights, trends, and brand success stories from the world of Digital Commerce.





