Key Takeaways
- CVE-2026-125812 is a flaw in WP Rocket rated 9.8 (Critical). It allows code to be run on the site without logging in.
- It affects WP Rocket 3.15 to 3.24.1, only with “LazyLoad for CSS background images” or “Self-host Google Fonts” enabled.
- WP Rocket released the fix in version 3.24.2 on 19 November 2026.
- Patchstack recorded the first exploitation attempt on 25 November 2026 and automated attacks from 26 November.
- Both WP Rocket and Patchstack say the update does not remove files or accounts an attacker already created.
In November 2026, a critical flaw was found in WP Rocket, a WordPress caching plugin. Versions 3.15 to 3.24.1 let an attacker run code on a site without logging in, if one of two settings was on. WP Rocket fixed it in 3.24.2 on 19 November. Six days later, the attacks began.
How the flaw was found
The story starts on 4 November 2026. A security researcher known as Vorelito reported a vulnerability in WP Rocket through the Patchstack bug bounty program, according to Patchstack’s database.
Patchstack is a WordPress security company and the CVE numbering authority for this issue. It later published the record as CVE-2026-125812 and scored it 9.8 out of 10, the “Critical” range. In its database, Patchstack describes the impact plainly: “Attackers can run any command on the server from anywhere in the world.”
What the flaw does
Patchstack’s write-up explains the mechanism. WP Rocket uses a small script in the visitor’s browser to measure the page and send a report back to the site. That report goes to a public endpoint. According to Patchstack, WP Rocket used some of the reported URLs without strict validation. An attacker could send a crafted report that made the site download remote content and save it as a PHP file, which then runs on the server
Not every WP Rocket site was exposed. WP Rocket’s security advisory limits the risk to versions 3.15 through 3.24.1, and only when at least one of these settings is enabled:
- LazyLoad for CSS background images
- Self-host Google Fonts (Patchstack’s article calls it “Host Fonts Locally”)
WP Rocket’s changelog shows when each feature arrived. Lazy loading for CSS background images came in version 3.15 (August 2023). Self-hosted Google Fonts came in 3.18 (January 2025).
The fix, then the attacks
WP Rocket shipped version 3.24.2 on 19 November 2026. The changelog lists one security line for that release: “Improve validation of cached CSS, font and preconnect files.” The advisory confirms that 3.24.2 is the fixed version.
On 23 November, Patchstack published the vulnerability in its database. The CVE record followed on 25 November.
The first exploitation attempt came the same day. Patchstack logged it on 25 November at 15:27 UTC. The early attempts looked manual. By 26 November, Patchstack was blocking tens of thousands of attempts a day, mostly from automated campaigns. It saw several independent operators, one of them using a rotating pool of proxies.
Six days passed between the fix and the first recorded attack.
How WP Rocket and Patchstack responded
WP Rocket published a security advisory with update and mitigation steps, last updated on 27 November. For sites that cannot update right away, the advisory gives a temporary fix: turn off both settings. For agencies and hosts with many sites, WP Rocket released a small helper plugin, “WP Rocket | Mitigate CVE-2026-125812”, that switches both settings off and can be installed in bulk.
Patchstack says its mitigation rule for this flaw was live more than two days before the first attack it observed. On 27 November it published a detailed analysis with the signs of an attack, from suspicious requests to the kind of files attackers leave behind.
Both make the same point. An update or a settings change stops new attacks through the documented paths. It does not undo what happened before. In WP Rocket’s words, files or accounts an attacker already created need a separate investigation.
What to do
If you run WP Rocket, here is the short version, based on WP Rocket’s advisory and Patchstack’s analysis:
- Check your version. Go to Plugins in the WordPress dashboard. If WP Rocket shows 3.24.2 or newer, this flaw is fixed on your site.
- Update to 3.24.2 or newer. Back up the site first, then click Update now next to WP Rocket. If no update appears, WP Rocket’s Updating WP Rocket guide explains what to do.
- If you can’t update today, turn off both settings. Go to WP Rocket → Page Optimization → Image & Media (before 3.24: the Media tab), turn off LazyLoad for CSS background images and Self-host Google Fonts, and save. Keep them off until you update.
- Check for signs of an earlier break-in. If the site ran a vulnerable version with either setting on, Patchstack suggests looking for unexpected PHP files such as
wp-media-*.phpinwp-content/wp-rocket-config/,wp-content/uploads/orwp-content/, and for POST requests toadmin-ajax.phpwithaction=rocket_beaconin the server logs.
If you find something, ask your host or a developer to check the whole site. We described what a full cleanup involves in our WordPress malware cleanup post.
How we handled it
When this advisory came out, we updated WP Rocket on the client sites we maintain without waiting for the regular update cycle.
That is the part of maintenance nobody sees: reading the advisories, knowing which sites run which plugins, and updating as soon as a fix is out. If you would rather not track this yourself, take a look at our WordPress maintenance plans. Every plan starts with a free site review.
FAQ
Is my site affected by the WP Rocket vulnerability?
Only if WP Rocket is between versions 3.15 and 3.24.1 and “LazyLoad for CSS background images” or “Self-host Google Fonts” is enabled. Version 3.24.2 and newer are fixed.
What is CVE-2026-125812?
It is a critical flaw in WP Rocket, rated 9.8, that lets an attacker run code on the server without logging in. It was published on 25 November 2026 and is fixed in WP Rocket 3.24.2.
I can’t update WP Rocket right now. What should I do?
WP Rocket advises turning off both “LazyLoad for CSS background images” and “Self-host Google Fonts” under WP Rocket → Page Optimization → Image & Media, and keeping them off until you update.
I updated to 3.24.2. Is that enough?
It stops new attacks through this flaw. If the site ran a vulnerable version with either setting on, WP Rocket and Patchstack advise checking for files or accounts an attacker may have created before the update.