WP Rocket vulnerability: 2 settings attackers hunt, and the fix
A bug in the popular caching plugin lets attackers plant PHP code with no login. Here is which versions are exposed, the two settings that matter, and what to check.
Attackers are exploiting CVE-2026-125812 in WP Rocket to write and run PHP code on WordPress sites without logging in.
Every version before 3.24.2 is affected, but only when CSS background lazy loading or self-hosted Google Fonts is turned on.
The fix shipped on November 19, and Patchstack saw the first attack on November 25 before automated waves followed.
Updating stops new attacks but does not remove files already planted, so exposed sites should check their folders and logs.
Quick read · 1 min
Attackers are exploiting a serious bug in WP Rocket, a paid WordPress caching plugin, that lets them write and run PHP code on a site without logging in. It is tracked as CVE-2026-125812 and fixed in version 3.24.2, released on November 19. Patchstack recorded the first attack attempt on November 25, and automated waves followed the next day.
Only sites with CSS background lazy loading or self-hosted Google Fonts turned on are exposed. Both options are off by default but popular on speed-tuned sites.
Update WP Rocket to 3.24.2 or later and purge the cache.
If you can't update, switch off both options in the Media tab.
If you ran an older version with either option on, look for unknown wp-media PHP files and odd outbound traffic.
The WP Rocket vulnerability now under active attack lets someone with no account plant and run PHP code on a WordPress site, and it only needs one of two speed settings to be switched on. The bug, tracked as CVE-2026-125812, is fixed in WP Rocket 3.24.2, which came out on November 19, 2026. The first attack attempts showed up six days later.
If you run WP Rocket, here is the short answer: update to 3.24.2 or newer. Then, if either CSS background lazy loading or self-hosted Google Fonts was on while an older build was installed, check your server for planted files. The update closes the hole, but it does nothing about code an attacker already dropped.
01
Which WP Rocket versions have the vulnerability
Every release before 3.24.2 is exposed, and WP Rocket’s own advisory narrows the range to 3.15 through 3.24.1. The newest build, 3.24.3, arrived on November 26. It keeps the fix and adds an opt-in AI Assistant inside the plugin settings. The 3.24.2 release also fixed a cache bug: before it, saving a WooCommerce order, a TranslatePress page or even a draft post could wipe the cache for the whole site, when only one URL needed clearing.
WP Rocket is a paid caching plugin from WP Media. It speeds sites up by caching pages, trimming CSS and lazy-loading images, which means pictures load only when a visitor scrolls near them. WP Media’s own figures put the plugin on more than 5.5 million WordPress sites, and a separate company count gives 5.6 million sites and about 394,000 customers.
Severity scores differ depending on who you ask. Patchstack, the WordPress security company that handles the CVE record for this bug, rates it 9.8 out of 10, or critical. The US National Vulnerability Database scores it 8.8, or high. The gap comes down to one question: does a visitor have to do anything for the attack to work? Patchstack says no, because the page report fires on its own when a page opens. Either way, the attacker never needs a login.
02
The 2 settings that decide whether your site is exposed
The flaw only works when at least one of these options is enabled:
Self-hosted Google Fonts (labeled Host Fonts Locally in some places), which stores font files on your own server instead of pulling them from Google each time.
LazyLoad for CSS background images, which holds back images set in a stylesheet until they are needed.
Both ship turned off. Patchstack notes that both are common on sites tuned for speed, and that describes a lot of people who pay for a caching plugin in the first place.
Attackers don’t bother guessing which one you use. Patchstack says they hit both feature paths, sometimes inside a single request, so whichever option is active gets triggered.
03
How the attack works, in plain English
WP Rocket runs a small script in each visitor’s browser. It measures the page and sends the results back to a public address on your own site, the admin-ajax.php endpoint, using an action called rocket_beacon. WP Rocket then reads the stylesheet and font links in that report to work out where to store optimized copies.
The weak spot is how that storage path gets built. The plugin didn’t check the reported links strictly enough, so a link with tricks like “../” in it could climb out of the folder it was supposed to stay in. Security people call this path traversal. A forged report can make your server fetch content from a machine the attacker controls and save it as a PHP file, which your server will then run.
That reporting channel has to stay public so real visitors can use it. As a result, there is no login wall in the way, and anyone who can send a web request can send a fake report.
This isn’t the first time the plugin’s beacon has needed hardening. The October 1 release included a security change to sanitize image data the beacon collects, alongside four other security fixes.
04
The attack timeline so far
November 4: a researcher named Vorelito reported the issue to Patchstack, per a summary from security firm Ostorlab.
November 19: WP Rocket 3.24.2 shipped, with stricter checks on cached CSS, font and preconnect files.
November 23: Patchstack published its entry for the bug.
November 25: the CVE record went public, and Patchstack logged the first exploitation attempt at 3:27 p.m. UTC.
November 26: attacks turned automated and large scale, with tens of thousands of attempts blocked on that day alone.
Patchstack’s platform has stopped more than 25,000 malicious requests from several different attackers. Wordfence, another WordPress security firm, said it blocked 135 attacks on this bug within a single 24-hour stretch.
The attackers keep their payloads on bare IP addresses, wildcard DNS services, short-lived Cloudflare tunnels and WordPress sites that are likely compromised already. As of November 28, Ostorlab said no public proof-of-concept exploit had been confirmed, and the bug wasn’t in CISA’s catalog of known exploited flaws as of November 29. Being missing from that list doesn’t mean nobody is using it: Patchstack had already seen automated campaigns by November 26.
Check your version. In the WordPress dashboard, open Plugins and find WP Rocket. Anything below 3.24.2 is vulnerable.
Update. With an active license, click Update Now on the Plugins page. Purge the cache once the update finishes.
Can’t update yet? Switch off both risky options. Go to WP Rocket, then Page Optimization, then Image & Media, and open the Media tab. This works even if your license has expired. Keep both off until you can update.
Running lots of sites? WP Rocket released a helper plugin that turns both options off across many sites, and you can push the change in bulk with WP-CLI too.
If both settings stayed off the whole time, this attack path could not run on your site.
06
What this means for site owners who were slow to update
This is the part that catches people out. If your site ran a version older than 3.24.2 with either setting on at any point from November 25 onward, an update alone isn’t enough. Patchstack’s guidance is to look for signs of a break-in:
Unfamiliar PHP files with names like wp-media-*.php inside wp-content, the uploads folder or the wp-rocket-config folder.
Outbound connections from your web server to hosts you don’t recognize, temporary tunnels, wildcard DNS names or other WordPress sites.
rocket_beacon requests in your logs from clients that never loaded the page they claim to be reporting on.
Patchstack also published the IP addresses behind the attacks, so site owners can add them to a blocklist. Sites that updated on November 19 were patched before the first recorded attempt, six days ahead of the attackers.
07
Quick answers
Is WP Rocket safe to use now?
Version 3.24.2 and later include the fix for CVE-2026-125812, and that covers the current 3.24.3 release as well.
Does updating WP Rocket remove malware?
No. The update blocks new attacks but leaves any planted files where they are, so sites that were exposed should check the folders and logs listed above.
Is every WP Rocket site at risk?
Only sites running an older version with CSS background lazy loading or self-hosted Google Fonts switched on.
Claude found a faster quantum attack on two US post-quantum standards, but reviewers say it would need a galaxy-sized computer. Here is what changes for you today.
A bad 5.2.2 update broke Google Authenticator on iOS 27 and cut people off from their sign-in codes. The fix is out, and one mistake can still cost you.