The WP Rocket vulnerability CVE-2026-125812 was patched quietly. On 19 November 2026, WP Rocket 3.24.2 shipped with one security line in its changelog: "Security: Improve validation of cached CSS, font and preconnect files". No CVE, no severity. Behind that line was an unauthenticated remote code execution (RCE) bug scored CVSS 9.8: anyone without a login could run code on the site. The fixed code sat public on GitHub for six days. At 15:27 UTC on 25 November, three hours after the CVE record went live, Patchstack's under-active-attack report logged the first exploitation attempt.
If your site ran WP Rocket 3.15 to 3.24.1 with "LazyLoad for CSS background images" or "Self-host Google Fonts" on (WP Rocket's advisory), updating to 3.24.2 stops new attacks, but it removes nothing an attacker already planted.
The short version:
- Count your exposure from 19 Nov 2026, the day the fix and its diff went public. Patchstack's first recorded attempt is 25 Nov, but nobody can prove there was none earlier.
- Look for
wp-media-*.php, PHP inuploads/, unknown administrators and mu-plugins, then sweep every file the web server's user can write, inside and outside the WordPress folder: the bug lets the attacker choose where the file lands. - As of 1 Dec 2026 the CVE is not in CISA KEV. That means "not yet listed", not "safe".
If you do one thing now: update to 3.24.2 or later, or switch both settings off. Then check two things: were you exposed, and were you hit?
CVE-2026-125812 timeline: patch, disclosure, first attack
| Date (UTC) | Event | Source |
|---|---|---|
| 4 Nov 2026 | Researcher Vorelito reports the flaw through Patchstack's bug bounty programme | Patchstack database entry |
| 19 Nov 2026, 14:52 | WP Rocket 3.24.2 released; the fixed code and its diff are public | GitHub release v3.24.2 |
| 23 Nov 2026 | Patchstack database entry published; the CVE record's datePublic is 11:36 UTC that day | Patchstack database entry; CVE record |
| 25 Nov 2026, 12:09 | CVE-2026-125812 published, Patchstack as CNA, CVSS 3.1 9.8 | CVE record |
| 25 Nov 2026, 14:57 | CISA's SSVC entry on the record: Exploitation "none", Automatable "yes", Technical Impact "total" | CVE record, CISA ADP container |
| 25 Nov 2026, 15:27:11 | First exploitation attempt in Patchstack's telemetry | Patchstack, 27 Nov 2026 |
| 26 Nov 2026 | "Tens of thousands of blocked attempts on November 26 alone". WP Rocket 3.24.3 released at 11:48 with no security line | Patchstack; GitHub release v3.24.3 |
| 27 Nov 2026 | Patchstack's "under active attack" article (13:48); the vendor advisory last updated | Patchstack; WP Rocket advisory |
Patchstack's first recorded attempt came 3 h 18 min after the CVE record, 2 days 3 h 50 min after the record's datePublic, and 6 days 34 min after the fix was public. That is the first attempt one vendor recorded, not proof of the first anywhere, and no source says whether attackers worked from the diff or the CVE.
Which WP Rocket versions and settings are affected by CVE-2026-125812?
The vendor's advisory says the flaw "affects websites running WP Rocket versions 3.15 through 3.24.1 where at least one of the following features is enabled": LazyLoad for CSS background images and Self-host Google Fonts (Patchstack calls it "Host Fonts Locally"). The CVE record scores it CVSS 9.8 and lists "from n/a before 3.24.2", which sets no lower bound. The changelog suggests the vendor starts at 3.15 because the CSS-background feature arrived then (31 August 2023), and the fonts feature in 3.18 (7 January 2025). Whatever the lower bound, anything below 3.24.2 gets updated.
"Both are off by default," says Patchstack. WP Rocket's homepage said "5.6M+ websites worldwide" on 1 December 2026; we found no published count of how many were in range with a setting on.
How the unauthenticated WP Rocket RCE works
Visitors' browsers report page measurements to POST /wp-admin/admin-ajax.php with action=rocket_beacon. WP Rocket's public code (v3.24.1) registers the handler on wp_ajax_nopriv_rocket_beacon, WordPress's hook for logged-out visitors (Subscriber.php), and prints its nonce into every anonymous page (Processor.php), so the nonce authenticates no one. Per Patchstack, WP Rocket "uses the reported URLs to optimize the page but doesn't validate them strictly enough": a crafted report makes the site fetch remote content and save it as a .php file.
The CVE record files the weakness as CWE-22, path traversal. In 3.24.1 the cache code built the file's path from the reported URL with no check that it stayed inside the cache folder (FilesystemCache.php), so the attacker chooses where the file lands: anywhere the web server can write. Only these two features turn a URL from a visitor's report into a downloaded file on disk, which is why turning both off "mitigates the documented attack paths immediately" (vendor). 3.24.2 confines cached CSS and fonts to their folders and file types.
How to check if your site is vulnerable to CVE-2026-125812
The question is historical: was the site on 3.15 to 3.24.1, with either setting on, at any point since 19 November 2026? Start with checks that run none of the site's PHP.
From outside, without logging in
WP Rocket's public code (Meta.php, v3.24.1) adds a generator tag for anonymous visitors with the version and feature flags wpr_host_fonts_locally and, only on pages where it ran, wpr_lazyload_css_bg_img. Check several pages:
for u in / /blog/ /contact/; do
curl -sL "https://example.com$u" | grep -o '<meta name="generator" content="WP Rocket[^>]*>'
done
A tag with a version below 3.24.2 and either wpr_host_fonts_locally or wpr_lazyload_css_bg_img means the site is exposed now: update first, then run the compromise check. A missing tag proves nothing: it is hidden from logged-in users, can be filtered off, and with an expired licence it is left out of any page where no other feature is reported. Our post on unpatched software on the public web covers the limits of outside version checks.
From inside, without running site code
Read the version from the plugin header and the settings (keys from Page.php, v3.24.1) straight from the database:
grep -m1 'Version:' wp-content/plugins/wp-rocket/wp-rocket.php
mysql -N -u DB_USER -p DB_NAME \
-e "SELECT option_value FROM wp_options WHERE option_name='wp_rocket_settings'" \
| grep -oE '"(lazyload_css_bg_img|host_fonts_locally)";[^;]*'
A value of 1 (i:1, or s:1:"1") means on; a missing key means off. Adjust the wp_ prefix, and query each site's table on multisite. Skip WP-CLI on a possibly infected site: it loads the site's code, and Imunify360 (30 November 2026) warns never to run it as root.
Was it on in the past?
find wp-content/cache/background-css wp-content/cache/fonts -type f -newermt 2026-11-19 | head
Cache files dated 19 November or later mean a feature ran in the window (paths from ExtractCSS/ServiceProvider.php and Fonts/Filesystem.php, v3.24.1). Combine this with the date you updated: the patched plugin keeps writing these files, so only files dated before the update show the vulnerable code ran. An empty folder proves nothing: clearing WP Rocket's cache can empty it. A database backup taken on or after 19 November answers the same question: search its wp_rocket_settings row for the two keys.
| What you found | Next step |
|---|---|
| In range with either setting on at any time on or after 25 Nov 2026 | Run the compromise check, even if updated now |
| In range with either setting on after 19 Nov, but updated or switched off before 25 Nov | Lower risk, not proven safe. Run the compromise check anyway |
| Never in range with a setting on since 19 Nov | Low risk. Confirm 3.24.2 or later |
Update now, or switch both settings off
Update to 3.24.2 or later; as of 1 December 2026 the current release is 3.24.3 (GitHub, 26 November 2026).
After updating, clear WP Rocket's cache and its stored performance-hints data (Clear Priority Elements in WP Rocket's admin bar menu, per AdminBar.php, v3.24.1), so URLs an attacker stored through forged reports are neither served nor reprocessed. This is our general advice, not vendor guidance.
If you cannot update WP Rocket today
WP Rocket updates come through the vendor's licensed channel, not WordPress.org, so a lapsed licence freezes the plugin. The advisory's answer: "Apply the workaround while you arrange the renewal." Under WP Rocket > Page Optimization > Image & Media (the Media tab before 3.24), turn both settings off and save; the advisory also offers a helper plugin for many sites. A WAF rule is a stopgap; the plugin still needs the update. Then run the compromise check below.
How to check if your WordPress site was hacked through WP Rocket
The vendor: attacker-created files or accounts "require separate investigation." An outside scanner, FortWatch included, cannot see them; this check runs on the server. It has two passes: the published indicators first, then a sweep of everything the web server's user could write. The first pass alone cannot clear a site: the attacker chose the path, and a payload that runs commands can persist anywhere.
No server access? Send this to your host or agency
- Which WP Rocket version is installed now, and which was on 19 November 2026? Was "LazyLoad for CSS background images" or "Self-host Google Fonts" on at any time since?
- Is there any
wp-media-*.phpfile underwp-content/, any PHP inwp-content/uploads/, and which PHP,.htaccessor.user.inifiles anywhere in the site changed since 19 November? - Which accounts are Administrators, and should each have the role? Do any hold Application Passwords? What is in
wp-content/mu-plugins/? - Since 19 November, which IPs sent POSTs to
/wp-admin/admin-ajax.phpwithout loading a page, and were any PHP files requested underwp-content/? - Since 19 November, has the server connected out to bare IPs,
*.nip.io,*.trycloudflare.comor other unfamiliar hosts? - Has anything changed outside the site folder for the same system user: SSH keys, crontab, other sites on the account?
A hosting file manager or SFTP lets you answer items 2 and 3 yourself.
Pass 1: the files Patchstack saw planted
Patchstack found wp-media-*.php files in wp-rocket-config/, uploads/ and the top of wp-content/. These commands only read:
find wp-content -name 'wp-media-*.php'
find wp-content/uploads wp-content/wp-rocket-config wp-content/cache -type f \( -name '*.php' -o -name '*.php[0-9]' -o -name '*.pht' -o -name '*.phtml' -o -name '*.phar' \) -newermt '2026-11-19'
find wp-content -maxdepth 1 -type f -name '*.php'
uploads/ should hold no PHP. wp-rocket-config/ legitimately holds WP Rocket's config files named after your hostnames; the top of wp-content/ holds index.php and drop-ins such as advanced-cache.php. Modification times can be faked, so repeat without -newermt.
Check mu-plugins and administrators
Imunify360 (Niko Galov, 30 November 2026) adds a first payload that "runs whatever command it's sent", an mu-plugins loader that re-creates deleted files, and an administrator account created for the attacker, without saying where it observed them. Neither Patchstack nor the vendor lists these, but they are standard persistence checks. Use a MySQL client, not WP-CLI:
ls -la wp-content/mu-plugins/
SELECT u.ID, u.user_login, u.user_registered
FROM wp_users u JOIN wp_usermeta m ON m.user_id = u.ID
WHERE m.meta_key = 'wp_capabilities' AND m.meta_value LIKE '%administrator%';
SELECT user_id, meta_value FROM wp_usermeta
WHERE meta_key = 'wp_capabilities' AND meta_value NOT LIKE '%administrator%'
AND (meta_value LIKE '%manage_options%' OR meta_value LIKE '%edit_plugins%');
Compare every administrator against the people who should have the role, not against dates: an attacker can raise an existing user or set any registration date. The second query finds users given admin powers without the role. Also read the wp_user_roles row in wp_options: a role such as Subscriber that holds manage_options or edit_plugins has been tampered with. On multisite, also check each site's wp_N_capabilities and wp_N_user_roles, and the site_admins row in wp_sitemeta.
Pass 2: sweep everything the web server can write
From the WordPress root, list every PHP and server-config file whose inode changed since 19 November. touch cannot set ctime, but your own update, restores and permission changes also change it, so expect some noise:
find . -type f \( -name '*.php' -o -name '*.php[0-9]' -o -name '*.pht' -o -name '*.phtml' -o -name '*.phar' -o -name '.htaccess' -o -name '.user.ini' \) -newerct '2026-11-19'
grep -rn -e 'auto_prepend_file' -e 'auto_append_file' --include='.user.ini' --include='.htaccess' --include='php.ini' .
grep -rl --exclude='*.php' '<?php' wp-content
The second command finds a config that makes PHP include another file on every request; the third finds PHP code hidden in files with other extensions, which such a config can load. Review each match: plugin readmes and examples can contain <?php legitimately.
- Diff
wp-config.php,wp-content/advanced-cache.phpand the active theme'sfunctions.phpagainst known-good copies from a backup. - Compare core, themes and plugins with fresh copies from their source: official zips for core and WordPress.org plugins, the vendor's download for WP Rocket.
wp plugin verify-checksumschecks only against WordPress.org, so it cannot vouch for WP Rocket. - Read the
cronrow inwp_optionsand the web user's crontab (crontab -l -u www-data, or your PHP user). - Search
wp_optionsandwp_postsfor injected<script,base64_decodeoreval(, and review each match; analytics snippets are legitimate. - Outside the WordPress root, check the PHP user's home directory (
~/.ssh/authorized_keys,.bashrc,.profile),/tmpand/dev/shm, and every other site that runs as the same user. A payload that runs commands runs as that user, and on shared hosting that user often owns all of it.
What the logs can and can't show
Default (combined-format) access logs do not record POST bodies, so rocket_beacon usually shows only in WAF or ModSecurity logs. A first cheap check still pays: zgrep -h 'rocket_beacon' access.log* catches requests that put the action in the query string. In access logs, look for admin-ajax.php POST bursts from IPs that never loaded a page (Patchstack's pattern) and for PHP requested where none should run. zgrep reads rotated, gzipped logs too:
zgrep -h '"POST /wp-admin/admin-ajax.php' access.log* | awk '{print $1}' | sort | uniq -c | sort -rn | head -20
zgrep -hE '"(GET|POST) /wp-content/((uploads|cache|wp-rocket-config)/[^ ]*|[^/ ]*)\.ph(p[0-9]?|t|tml|ar)' access.log*
Behind Cloudflare or a load balancer, the first field is the proxy's address: use the logged CF-Connecting-IP or X-Forwarded-For instead. In firewall, proxy or DNS logs, look for outbound connections to the payload host types in item 5 above. Pull everything from 19 November before retention deletes it. Patchstack's article lists its top attacking IPs for a retroactive search.
Found something? Restore, don't clean
A planted PHP file, an unknown administrator or an unknown mu-plugin means restore. A payload that runs any command means you cannot list what the attacker did.
- Keep a copy of files and logs as evidence.
- Restore files and database from a backup taken before 19 November 2026 into an empty docroot and a fresh database. Wipe the current files first, or deploy to a new location and switch over. Do not lay the restore over the infected files: most host and plugin restores keep files the backup never held, such as a planted
wp-media-*.php, an mu-plugins loader or a.user.ini. 19 November is the working cutoff; Imunify360 suggests before 25 November, and the earlier date covers the six days before the first reported attempt. - Re-run Pass 1 and Pass 2 on the restored site, then update WP Rocket to 3.24.2 or later before it goes live.
- Rotate the database password and the keys and salts in
wp-config.php, as Imunify360 recommends (WordPress's secret-key generator makes a fresh set). This logs everyone out. - Assume every user's password hash and every secret in
wp-config.phpwas copied. Force a password reset for all accounts, not only administrators, and revoke all Application Passwords separately (Users > Profile, or delete the_application_passwordsrows inwp_usermeta). Rotate stored API keys and other secrets: SMTP, payment, CRM, object storage, licence keys. - On shared hosting, treat every site running as the same system user as exposed. Remove any SSH key you do not recognise from
authorized_keys, and change the hosting panel, SFTP and SSH passwords and keys.
If the site held customer data, check your breach-notification duties: on a store or membership site, customer accounts and their details are personal data. A pointer, not legal advice: GDPR Article 33(1) requires the controller to notify the supervisory authority "without undue delay and, where feasible, not later than 72 hours after having become aware of it", unless the breach is unlikely to result in a risk to people's rights and freedoms. Found nothing in both passes, with logs covering the whole window? Your risk is lower, not zero. Re-run in a week.
Harden WordPress to narrow the next exploit
This bug let the attacker choose where the file lands, so blocking PHP in data folders narrows the attack rather than stopping it. Three controls, strongest first.
Keep code read-only to the web server. The web server or PHP-FPM user should not own or be able to write core, plugins, themes or wp-config.php. Updates then run as a separate deploy user or over SFTP. Only the folders WordPress must write (uploads, cache, wp-rocket-config) stay writable, which is what the next rule covers.
Refuse PHP over HTTP where none belongs. nginx, above every PHP location (adjust the prefix if WordPress lives in a subdirectory):
location ~* ^/wp-content/(uploads|cache|wp-rocket-config)/.*\.(php\d?|pht|phtml|phar)(/|$) {
deny all;
}
The (/|$) also catches /x.php/anything, which many WordPress nginx configs would otherwise pass to PHP. Check it: curl -I https://example.com/wp-content/uploads/test.php/x should return 403. Apache 2.4, in an .htaccess in each folder:
<FilesMatch "(?i)\.(php\d?|pht|phtml|phar)$">
Require all denied
</FilesMatch>
That .htaccess lives in a writable folder, where a planted one can replace it, so where you control the vhost config, put the same rule in a <Directory> block there instead. WP Rocket loads its config files with PHP include (class-config.php, v3.24.1) and never requests them over HTTP, so the rule leaves the plugin working. That include is also why a planted file that overwrote one of them would still run. Other cache plugins may serve PHP from wp-content/cache, so test the whole site on staging, not only WP Rocket. The top of wp-content/ stays uncovered.
Allow outbound HTTP only to what the server needs (Google Fonts, your CDN, wordpress.org, plugin update servers). This is a general defence, not vendor guidance: the exploit fails if the server cannot fetch the payload.
What this exploit says about patch speed
The window is days, and you cannot know where it started
Patchstack's State of WordPress Security in 2026 (updated 25 Feb 2026) puts the weighted median time to first exploit at 5 hours. This time Patchstack's own rule "was live more than two days before the first attack arrived". Five hours or six days, a monthly patch cycle misses both. Patch within days of the first public signal, not on a monthly cycle.
The first public signal here was not the CVE. It was one vague line in a changelog, with the fix next to it on GitHub. Any "Security:" line in a plugin's changelog is a patch-now line, whatever its wording and whether or not a CVE exists yet. The CVE only tells the rest of the internet where to look.
A yearly pentest cannot keep that pace, and neither can a scanner that waits for a public check: the Nuclei check for this CVE arrived days after the first attack. What keeps pace is someone who reads the vendor's changelog the day it ships.
On Pro plans and up, FortWatch's emerging threats feature runs each new critical or high Nuclei check on every asset you've proven you own within about 30 minutes of the check's release; Essential plans run it in the next scheduled scan. The check for this CVE (http/cves/2026/CVE-2026-125812.yaml in nuclei-templates) reached FortWatch on 30 November, 4 days 19 hours after Patchstack's first recorded attempt. It tells you a site is exposed, not whether it was hit.
Not in CISA KEV does not mean not exploited
As of 1 December 2026, CISA's KEV catalog, version 2026.11.30 (JSON feed, 1,810 entries), does not list the CVE. CISA's SSVC said Exploitation "none" at 14:57 UTC on 25 November, 30 minutes before Patchstack's first attempt, unchanged on 1 December (NVD). KEV is a weak signal for WordPress plugins: it lists three third-party ones, all added on 3 November 2021. Patchstack's own "KEV" label is a different list, not CISA's. The KEV glossary and the EPSS, CVSS and KEV post cover using KEV as one input, not the trigger.
Plugins are attack surface the marketing team installs
Two opt-in speed and fonts switches, settings a security review rarely looks at, made sites exploitable. Plugins are part of your external attack surface, installed by whoever runs the marketing site. A premium plugin needs a named patch owner and a renewed licence; Patchstack's whitepaper counts three times as many known exploited vulnerabilities in premium components as in free ones. See our posts on shadow IT and third-party code you never wrote.
FAQ
Is my site vulnerable if LazyLoad for CSS background images is off?
Only if Self-host Google Fonts is on in 3.18 to 3.24.1, per WP Rocket's changelog and advisory. With both off, the vendor says the documented attack paths are mitigated. Update anyway, and check for planted files if either setting was on before you updated.
Does updating WP Rocket to 3.24.2 remove malware?
No. Patchstack (27 November 2026): "The update stops new attacks, but it does not remove files an attacker already planted." Run both passes of the compromise check, and restore from a pre-19-November backup into an empty docroot if you find anything.
Is CVE-2026-125812 in the CISA KEV catalog?
Not as of 1 December 2026: catalog version 2026.11.30 does not list it, although Patchstack blocked tens of thousands of attempts on 26 November. Treat "not in KEV" as "not yet listed", and re-read the catalog on the day you decide.
What do I do with this?
- List every WordPress site you own, microsites included, with its WP Rocket version.
- Update every install below 3.24.2. If a licence has lapsed, switch off both settings today, then renew.
- For each site in range with either setting on since 19 November 2026, run both passes of the compromise check or send the no-server-access list to your host.
- Compare administrators, roles, Application Passwords and
mu-pluginswith what you expect. - Export web, WAF and egress logs from 19 November onward.
- If anything turns up, keep the files and logs as evidence and restore a backup from before 19 November into an empty docroot and a fresh database.
- Update WP Rocket before the site goes live again, then rotate the database password, salts, every user's password, Application Passwords, stored API keys and hosting credentials.
- If the site held personal data, check your breach-notification duties (GDPR: 72 hours).
- Make code directories read-only to the web server, refuse HTTP requests for PHP files in
uploads,cacheandwp-rocket-config, and restrict outbound HTTP. - Give every premium plugin a named owner who reads its changelog, treats any "Security:" line as patch-now, and renews its licence.
- Treat CISA KEV as one input, not the trigger: patch an internet-facing, unauthenticated critical within days of the vendor's fix, KEV-listed or not (how we weigh EPSS, CVSS and KEV).
FortWatch's scheduled vulnerability scans run outside checks for known CVEs like this one against the domains you've added. A clean result does not prove the plugin is current, and no outside scan replaces the compromise check on the server.
