WP Rocket is being exploited. Is your site exposed if the license expired?
· Zero Agency
Somebody on your team turned on two speed settings to get a better PageSpeed score. Then the license renewal invoice landed in a shared inbox and nobody paid it. The plugin kept working, so nobody noticed.
That site is the one attackers want this week.
WP Rocket, a paid caching plugin used on more than 5.6 million sites, has a critical bug that lets anyone on the internet run code on your server. It is being exploited right now. And the vendor's own advisory has a section titled "If your license has expired or you can't update it yet."
TL;DR
- CVE-2026-125812 is an unauthenticated remote code execution bug in WP Rocket 3.15 through 3.24.1, rated CVSS 9.8.
- You are only exposed if LazyLoad for CSS background images or Self-host Google Fonts is on. Both are off by default.
- The fix is 3.24.2, released November 19. Patchstack saw the first attack on November 25 at 15:27 UTC.
- No active license, or can't update today? Turn both settings off now. Then check for planted PHP files, because updating does not remove them.
What is CVE-2026-125812 in plain words?
WP Rocket runs a small script in each visitor's browser. The script measures the page and reports back to a public endpoint on your site. WP Rocket then uses the reported URLs to optimize the page.
According to Patchstack, it did not check those URLs strictly enough. An attacker can send a fake report that makes your site download a file from the attacker's server and save it as PHP. Then the attacker loads that file, and their code runs on your server.
No login needed. No admin account. Just one request to /wp-admin/admin-ajax.php with action=rocket_beacon.
Is my WordPress site affected by the WP Rocket vulnerability?
You are affected if all three are true:
- WP Rocket is installed and the version is 3.15 to 3.24.1.
- LazyLoad for CSS background images is on, or Self-host Google Fonts is on.
- Nothing in front of the site blocks the exploit request.
Point 2 is where people fool themselves. Both settings are off by default, but SecurityWeek notes they are typically turned on to boost performance. If someone ever tuned the site for Core Web Vitals, assume they flipped them.
One naming trap: Patchstack calls the font setting "Host Fonts Locally." WP Rocket's advisory calls it "Self-host Google Fonts." Same feature.
To check the version from a shell:
wp plugin get wp-rocket --field=version
To check the settings, open WP Rocket > Page Optimization > Image & Media (the Media tab on versions before 3.24), as the vendor advisory describes.
My WP Rocket license expired. Am I still exposed?
Yes, if you are on a vulnerable version with either setting on. An expired license does not switch the plugin off. It just stops the update from reaching you.
This is the part I think most teams get wrong. A lapsed premium plugin is not "a plugin we stopped paying for." It is unpatched code running on your public site, and nobody owns it anymore. Free plugins update from wordpress.org. Paid ones often update only while the license is active. So the sites most likely to stay vulnerable are the ones nobody is watching: the old campaign site, the client site an agency handed back, the brand site that "just works."
WP Rocket's advice for this case is clear. Turn off both settings, save, and confirm they stay off on every affected site. Keep them off until you can install 3.24.2 or later. You lose a bit of speed. You keep your server.
If you run many sites, WP Media published a small helper plugin that disables both features. The advisory shows how to roll it out with WP-CLI:
wp plugin install ./wp-rocket-mitigate-cve-2026-125812.zip --activate
On Multisite, the advisory says to activate it on each affected subsite. After rollout, check the settings on each site. Don't trust the deploy log alone.
How fast did attackers move?
Fast. The fix shipped on November 19. Patchstack's telemetry shows the first exploit attempt six days later, on November 25 at 15:27 UTC. The first attacker worked by hand. Within a day it had turned into automated campaigns, with "tens of thousands of blocked attempts on November 26 alone," Patchstack wrote. BleepingComputer reported that Patchstack had blocked more than 25,000 malicious requests.
Patchstack also says several independent groups are active, and some requests hit both feature paths at once so that whichever setting you have on, one fires. Payloads sit on bare IP addresses, nip.io names, temporary trycloudflare.com tunnels and other WordPress sites that are likely already compromised.
On December 2, NHS England's cyber team published an alert and said it assesses further exploitation as likely. When we checked CISA's Known Exploited Vulnerabilities catalog today, this CVE was not listed. Don't wait for it. KEV is a list for federal deadlines, not a sign that you are safe.
Six days from fix to attack is the new normal, as we argued in why a 7-day patch window is already late. For a plugin that writes files into your web root, a week is generous to the attacker.
How do I check if my site was already hacked?
Updating stops new attacks. It does not remove what an attacker already planted. Patchstack lists three signs:
- PHP files where they don't belong. Look in
wp-content/wp-rocket-config/,wp-content/uploads/and directly inwp-content/. Patchstack giveswp-media-*.phpas an example name. - Outbound requests from your web server to unfamiliar hosts,
nip.ionames ortrycloudflare.comtunnels. - Odd
rocket_beaconreports, from clients that never loaded the page they report on, or that send full URLs where WP Rocket expects bare domains.
A quick first pass for files:
find wp-content -name 'wp-media-*.php'
find wp-content/uploads -name '*.php'
There should be almost no PHP in uploads. Anything there deserves a look, whatever the name. Attackers rename files, so an empty result for the first command does not clear you.
A warning about logs. Your normal access log shows a POST to admin-ajax.php, but usually not the action inside the request body. So grep rocket_beacon on an access log will often find nothing even on a hit site. Your WAF or host may log the body. Ask them for anything matching rocket_beacon since November 25.
If you find a planted file, don't just delete it and move on. Treat the site as compromised: check for new admin users, rotate the database password and WordPress salts, and look at other sites on the same server. Our post on the WordPress upgrade-window RCE used the same checks: unexpected admin users and PHP files outside your deploy pipeline.
What should I do today?
- List every WordPress site you or your clients run, including the forgotten ones.
- Get the WP Rocket version on each. Anything from 3.15 to 3.24.1 is in scope.
- Update to 3.24.2 or later where the license is active.
- Where it is not, turn off LazyLoad for CSS background images and Self-host Google Fonts. Use the helper plugin at scale.
- Run the file checks above on every site that had either setting on while vulnerable.
- Put plugin licenses in the same calendar as domain and SSL renewals. A paid plugin with no update path is a security gap you pay for later.
Speed settings are security settings now. Treat them that way.
FAQ
Which WP Rocket versions are vulnerable to CVE-2026-125812? Versions 3.15 through 3.24.1, but only with LazyLoad for CSS background images or Self-host Google Fonts turned on. Version 3.24.2 fixes it.
Is WP Rocket on default settings safe? Both affected features are off by default, so a site on default settings is not exposed through the documented paths. Still update, because someone may have changed the settings.
Can I fix this without renewing my WP Rocket license? You can block the documented attack paths by turning off both settings, which WP Rocket recommends while you arrange the renewal. The real fix is 3.24.2 or later.
Does updating WP Rocket remove a backdoor? No. Patchstack says the update does not remove files an attacker already planted, and WP Rocket says any files or accounts created before it need a separate investigation.
Is CVE-2026-125812 in CISA KEV? It was not listed when we checked on December 3, 2026. Exploitation is confirmed by Patchstack regardless.