The WP Rocket vulnerability, CVE-2026-125812, is an unauthenticated remote code execution flaw (CVSS 9.8) in the paid caching plugin. Status as of December 2, 2026: confirmed by Patchstack, fixed by the vendor in version 3.24.2, and actively exploited since November 25, 2026. Update, then run the seven checks below.
What happened
WP Rocket is a premium caching and performance plugin from WP Media. Patchstack puts the number of sites at about 5.5 million; BleepingComputer writes 5.6 million. Either way, it is among the most widely installed paid WordPress plugins, which is why this bug got attention quickly. The flaw lets a visitor with no account make the site download content from an address the attacker chooses and save it as a PHP file. A PHP file the attacker controls on your server is the same as full control of the site.
The mechanism, as the Patchstack report of November 27, 2026 describes it: the plugin ships a small script to visitors' browsers that reports page URLs back to a public AJAX endpoint. WP Rocket did not validate those reports strictly enough, so a crafted request could point it at a remote file. Attack traffic is a POST to /wp-admin/admin-ajax.php with action=rocket_beacon.
Timeline
| Date (2026) | Event |
|---|---|
| November 19 | WP Rocket 3.24.2 released with the fix |
| November 25, 15:27:11 UTC | First exploitation observed by Patchstack: manual, low scale |
| November 26 | Automated campaigns; Patchstack reports tens of thousands of blocked attempts that day. The vendor changelog also shows 3.24.3 on this date |
| November 27 | Patchstack publishes the technical report |
| November 30 | BleepingComputer reports more than 25,000 malicious requests blocked |
| December 1 | SecurityWeek, Techzine and ITdaily follow |
Count the gap: the fix was public for six days before the first observed attack. Anyone who updated in that window never saw this incident. Anyone who waited for the news was already a target.
Key facts at a glance
| Item | Value |
|---|---|
| CVE / severity | CVE-2026-125812, CVSS 9.8 (critical) |
| Type | Unauthenticated remote code execution |
| Affected versions | Patchstack: everything below 3.24.2. SecurityWeek: 3.15 through 3.24.1 |
| Fixed in | 3.24.2 (November 19); latest seen in the changelog: 3.24.3 (November 26) |
| Needed to exploit | LazyLoad for CSS background images or Host Fonts Locally enabled (both off by default) |
A note on naming: Patchstack calls the second option Host Fonts Locally, while BleepingComputer and SecurityWeek write Self-host Google Fonts. The sources name the same option two ways, so look for either label in your settings.
Am I affected?
Two conditions decide it: the plugin version, and whether one of the two options is switched on. Check the version first.
- In wp-admin open Plugins → Installed Plugins and read the version under WP Rocket.
- Or run the command below over SSH from the WordPress root, as the user that owns the site files.
# installed version and status of WP Rocket
wp plugin list --name=wp-rocket --fields=name,version,status,update --skip-plugins --skip-themes
# multisite: check every site of the network
for url in $(wp site list --field=url --skip-plugins --skip-themes); do
wp plugin list --name=wp-rocket --fields=name,version,status --url="$url" --skip-plugins --skip-themes
doneBelow 3.24.2 means vulnerable. 3.24.2 or higher means the hole is closed, but that tells you nothing about whether someone got in before you updated. Now find the two options: go to WP Rocket → Page Optimization → Image & Media, open the Media tab and look at LazyLoad for CSS background images and Self-host Google Fonts (also called Host Fonts Locally). If both are off and were off since November 19, exposure was low. If you cannot prove how they were set, assume the worst and do the checks.
Update now
The fix is the same as for any critical plugin bug: install the newest release. Aim for the latest version available, minimum 3.24.2. In the dashboard go to Plugins → Installed Plugins and press update on WP Rocket. On the command line:
# update WP Rocket (needs a valid license for the vendor's update server)
wp plugin update wp-rocket --skip-plugins --skip-themes
# confirm the new version
wp plugin get wp-rocket --field=version --skip-plugins --skip-themesPremium plugins update from the vendor's server and need an active license. If the update button says the license is expired, renew it or use the manual route: download the newest ZIP from your WP Rocket account, then Plugins → Add New → Upload Plugin and replace the current version. Note the plugin settings before you start, so you can compare them afterwards.
With many sites, loop WP-CLI over every install (a list of paths and --path= is enough) rather than clicking through dashboards. The vendor has also released a helper plugin for managing the settings of many sites at once; its details were not verified here, so use only what the official WP Rocket announcement links to. Agencies should do this today: a critical update for an actively exploited bug should not wait for the next maintenance window.
If you cannot update right now
Sometimes the license has lapsed or a client has to approve the change. Then reduce the exposure within the hour. There are two options that work without any server tricks.
Switch off both features
In WP Rocket → Page Optimization → Image & Media → Media turn off LazyLoad for CSS background images and Self-host Google Fonts, save, and clear the cache. According to Patchstack, exploitation needs at least one of them. This is a mitigation, not a fix, and it does nothing for a site that was already compromised.
Deactivate the plugin by renaming its folder
If you cannot reach the settings, or you do not trust them, connect over SFTP or the hosting file manager and rename wp-content/plugins/wp-rocket to, say, wp-rocket-off. WordPress deactivates a plugin whose folder has disappeared. Pages get slower, but the vulnerable code stops running. Rename it back only after you have updated.
Ask your host for a WAF rule
The attack identifies itself in the POST body (action=rocket_beacon), not in the URL, so a plain web-server rule on the address cannot tell it apart from ordinary requests. A web application firewall that inspects request bodies, such as a ModSecurity rule, can. Ask your host whether they have one for this CVE, and ask for the answer in writing, because there is no published data on which hosts block it. Treat it as an extra layer: the update remains the real fix.
7 checks in about 10 minutes: has your site been hacked?
Work from the WordPress root over SSH, as the site's user. If your hosting has no shell, ask support to run the commands or use the file manager for the file checks. The indicators below are examples from the Patchstack report, not a complete list, and attackers change names, so an empty result lowers the risk without proving the site clean.
1. Files named wp-media-*.php
Patchstack saw PHP files with this name pattern in wp-content/wp-rocket-config/, wp-content/uploads/ and wp-content/ itself. Any hit you did not create is a red flag.
# run from the WordPress root (the folder with wp-config.php)
# 1. PHP files named like the ones in the public report, anywhere under wp-content
find wp-content -type f -name 'wp-media-*.php'
# 2. PHP files in uploads: this folder is for images and documents
find wp-content/uploads -type f -name '*.php'
# 3. anything unexpected inside the WP Rocket config folder
ls -la wp-content/wp-rocket-config/2. PHP anywhere in uploads
The second command in the block above covers it. Legitimate plugins sometimes keep an index.php that only says "Silence is golden"; open each hit and read it. Anything else has no reason to exist there.
3. The access log since November 25
Normal access logs do not store the POST body, so they cannot show rocket_beacon directly. What you can see is volume: a single address hammering admin-ajax.php since November 25 deserves a look. The string rocket_beacon can only be searched in WAF or audit logs that store request bodies. Patchstack published the attacker IP addresses in its report; compare them with your log there instead of copying them from a third-party page. Blocking IPs is of limited value, since attackers move between addresses, so use the list to find out whether you were hit, not as protection.
# POST requests to admin-ajax.php per client IP since 25 Nov 2026
# (current and rotated nginx logs; the request body is not logged, so this shows volume only)
zgrep -h 'POST /wp-admin/admin-ajax.php' /var/log/nginx/access.log* \
| grep -E '\[(2[5-9]|30)/Nov/2026|\[0?[1-9]/Dec/2026' \
| awk '{print $1}' | sort | uniq -c | sort -rn | head -20Two signs from the report are worth remembering: beacon requests from clients that never loaded the page they claim to report on, and reports that contain full URLs instead of bare domain names.
4. New administrators
# administrators: anyone you did not create?
wp user list --role=administrator --fields=ID,user_login,user_email,user_registered \
--format=csv --skip-plugins --skip-themes
# every user registered since the first attack (header line kept)
wp user list --fields=ID,user_login,role,user_registered --format=csv --skip-plugins --skip-themes \
| awk -F, 'NR==1 || $4 >= "2026-11-25"'An administrator you cannot explain is the strongest single signal on this list. Do not delete the account yet. Note the name, email and registration time first: they help to reconstruct the timeline.
5. Core integrity
# WordPress core against the official checksums
wp core verify-checksums --skip-plugins --skip-themes
# plugins from wordpress.org; WP Rocket is a paid plugin, so it is NOT covered here
wp plugin verify-checksums --all --skip-plugins --skip-themeswp core verify-checksums compares WordPress core with the official hashes and lists every changed or extra file. WP Rocket is sold by the vendor, not hosted on wordpress.org, so wp plugin verify-checksums cannot check it; for that plugin, download a fresh copy of the same version and compare the files.
6. PHP files modified since November 25
Updates and deployments also change files, so interpret the list: files touched on a day when nobody deployed anything are the interesting ones. The WP Rocket config folder is deliberately not excluded, because that is one of the places where the report found planted files; expect its normal cache files and look for anything that is not.
# PHP files changed since the first observed attack; only the cache folder is skipped
find . -type f -name '*.php' -newermt '2026-11-25' -not -path './wp-content/cache/*' | sort
# scheduled events you cannot explain
wp cron event list --fields=hook,next_run_relative,recurrence --skip-plugins --skip-themes
# live outbound connections of PHP processes (needs shell access)
ss -tnp | grep php7. Outbound connections and cron
The report names three kinds of outbound destinations in attack traffic: hostnames under nip.io, tunnels on trycloudflare.com, and bare IP addresses. A normal WordPress site talks to wordpress.org, plugin vendors and a few APIs; if your firewall or hosting panel shows the PHP process connecting to a tunnel or an IP with no hostname, investigate. The cron list from the previous block belongs here too: a hook that belongs to no installed plugin is suspicious.
What to do if you found something
- Isolate. Put the site in maintenance mode or block public traffic, so the attacker's files stop receiving commands.
- Back up for analysis before cleaning: files and database, saved outside the web root (block below). A dump left inside the site folder can be downloaded by anyone who guesses its name.
- Remove the planted files and any accounts you confirmed as foreign, then update WP Rocket.
- Rotate every secret: salts in
wp-config.php, all administrator passwords, the database password, FTP, SSH and hosting-panel passwords, and API keys the site holds. - Reinstall core and plugins from clean sources rather than trusting existing copies.
- Clear every cache. This is a caching plugin: cached pages may keep injected scripts or redirects even after the source is clean.
- Check Google Search Console under Security & Manual Actions for a security issue, and repeat the seven checks in a few days.
# 1. a private folder OUTSIDE the web root, readable only by you
mkdir -p ~/backup && chmod 700 ~/backup
# 2. database dump and a file archive, both written outside the site tree
wp db export ~/backup/before-cleanup.sql --skip-plugins --skip-themes
tar -czf ~/backup/site-before-cleanup.tar.gz .
chmod 600 ~/backup/before-cleanup.sql ~/backup/site-before-cleanup.tar.gz# 3. list the suspicious files first and read each path
find wp-content -type f -name 'wp-media-*.php' -print
# 4. only after you have checked the list, delete them (separate step)
find wp-content -type f -name 'wp-media-*.php' -delete
# 5. replace core files, keep wp-content
wp core download --force --skip-content --skip-plugins --skip-themes
# 6. new keys and salts: every login session ends
wp config shuffle-salts --skip-plugins --skip-themes
# 7. update WP Rocket, then reinstall free plugins from wordpress.org (repeat per slug)
wp plugin update wp-rocket --skip-plugins --skip-themes
wp plugin install akismet --force --skip-plugins --skip-themesEvery command uses --skip-plugins --skip-themes for the reason given above. Remember that a database password changed in wp-config.php must also be changed in the hosting panel, or the site goes down.
A backup from before November 25 removes the files but not the leaked passwords or keys, and it brings back the vulnerable version if you restore the whole site. For a closer look at how eval-based backdoors are found by hand, see the WordPress plugin backdoor guide.
Why the patch did not help everyone
A fix existed six days before the first observed attack. Sites were hacked anyway, and the likely reason is mundane: updating a premium plugin is often nobody's job. Plugins from the wordpress.org directory show up in the update screen that site owners watch; paid plugins rely on a license, a vendor server and an administrator who logs in. When the license lapses, the update stops without any warning on the front end.
- Turn on auto-updates for security-critical plugins. For WP Rocket the command is below. It works only while the license is valid, so put the renewal date in a calendar.
- Agencies own this risk. If you maintain client sites, a weekly update window with a checklist is cheaper than one incident across fifty installs. Record which sites run which premium plugins, so you can answer "who is affected" in minutes.
- Subscribe to a vulnerability feed for the plugins you run, so news reaches you before it reaches your clients.
- Treat the first days after any critical fix as hot. Server-side software deserves the same discipline; the PHP security updates are the same kind of chore.
# which plugins update themselves
wp plugin auto-updates status --all --skip-plugins --skip-themes
# turn it on for WP Rocket
wp plugin auto-updates enable wp-rocket --skip-plugins --skip-themesOne-page checklist
- Read the WP Rocket version; below 3.24.2 is vulnerable.
- Update to the latest version (minimum 3.24.2) via dashboard, WP-CLI or a manual ZIP upload.
- If you cannot update: turn off LazyLoad for CSS background images and Self-host Google Fonts, or deactivate the plugin by renaming its folder; ask the host about a WAF rule.
- Search for
wp-media-*.phpinwp-content,uploadsandwp-rocket-config. - Look for any PHP file in
uploads. - Count POST requests to admin-ajax.php per IP since November 25 and compare with Patchstack's published IP list.
- List administrators and users created since November 25.
- Run
wp core verify-checksumsand list PHP files changed since November 25. - Check outbound connections for nip.io, trycloudflare.com and bare IPs.
- If anything turns up: isolate, back up outside the web root, remove, rotate every secret, reinstall, clear caches, check Search Console, consider the 72-hour GDPR duty.
- Turn on auto-updates and make sure the license is active.
Frequently asked questions
Is my WP Rocket version vulnerable to CVE-2026-125812?
Patchstack lists every version below 3.24.2 as affected, with no lower bound. SecurityWeek writes 3.15 through 3.24.1, so the two sources disagree about old releases. Treat anything below 3.24.2 as vulnerable and update to the newest release; the latest one we saw in the vendor changelog was 3.24.3 from November 26, 2026. Exploitation also needs the LazyLoad for CSS background images or Host Fonts Locally option to be on.
Both risky features are off on my site. Do I still need to update?
Yes. Both options are off by default, which lowers the exposure, but a plugin setting is a thin wall: someone can switch an option on later, a staging copy may be configured differently, and a critical bug is a reason to patch regardless. Updating takes a few minutes. Also run the checks in this guide, because the settings on November 25 are often impossible to reconstruct.
I updated on November 26. Could the site already have been hacked?
Yes, if the vulnerable options were on. Exploitation was observed from November 25 at 15:27 UTC, a day before automated campaigns began. An update stops new attacks but does not remove anything the attacker already planted. Run the seven checks, especially the file search and the administrator list.
Does the update delete malicious files or accounts?
No. Patchstack, BleepingComputer and SecurityWeek all note that the update does not remove files or accounts the attackers already created. You have to find and remove them yourself.
Do free caching plugins such as LiteSpeed Cache or W3 Total Cache have the same problem?
Not through this CVE. CVE-2026-125812 is specific to WP Rocket and its beacon feature. Other caching plugins have had their own vulnerabilities in the past, so keep them updated as well, but this bug is not something to look for in them.
How do I turn the features off if I cannot open wp-admin?
The simplest route is to deactivate the plugin: connect over SFTP or the hosting file manager and rename the wp-content/plugins/wp-rocket folder to something else. WordPress then deactivates it. The site gets slower but is safe from this flaw. No verified command for changing these specific options without the admin screen is known, so editing them blindly in the database is not recommended.
Does Cloudflare or my host protect me from this?
There is no published data confirming that either of them blocks this exploit, so do not assume it. Ask your host directly whether a WAF rule covers it, and update the plugin and run the checks regardless.
