The short answer
If your WordPress site uses WP Rocket, make sure it is on version 3.24.2 or later today. A critical flaw, CVE-2026-125812, lets an attacker with no account plant and run PHP code on the server when either of two optimization settings is turned on: LazyLoad for CSS background images or Self-host Google Fonts. Patchstack reports that attacks started on November 25 and became automated within a day. If you cannot update right away, for example because your WP Rocket license has expired, turn both settings off. And if your site ran an old version with either setting on, updating is not enough: someone needs to check for files an attacker may already have left behind.
What happened
| Details | |
|---|---|
| Vulnerability | CVE-2026-125812, unauthenticated remote code execution (attackers can run their own code on the server without an account) |
| Severity | CVSS 9.8, Critical |
| Plugin | WP Rocket, the paid caching and performance plugin from WP Media |
| Affected | Versions before 3.24.2, when LazyLoad for CSS background images or Self-host Google Fonts is turned on. WP Rocket’s advisory names 3.15 through 3.24.1. |
| Fixed in | 3.24.2, released November 19, 2026 (3.24.3 followed on November 26) |
| Being exploited? | Yes. Patchstack first saw an attack on November 25 at 10:27 AM ET and tens of thousands of blocked attempts on November 26. |
WP Rocket runs a small script in visitors’ browsers that measures each page and sends the results back to the site. According to Patchstack, WP Rocket did not check those reports strictly enough. A crafted report can make the site download a file from a server the attacker controls and save it as PHP, which then runs on your server. That is as serious as it gets for a website: once an attacker can run code, they can add admin users, inject spam or malware, or steal data.
Both settings involved are off by default, but Patchstack notes they are common on sites that have been tuned for speed. Patchstack lists WP Rocket at more than 5.5 million sites. Because WP Rocket is a paid plugin sold outside WordPress.org, there is no public install count to check that figure against.
Timeline
| Date (2026) | What happened |
|---|---|
| November 19 | WP Rocket 3.24.2 ships. The changelog lists “Security: Improve validation of cached CSS, font and preconnect files.” |
| November 23 | Patchstack and Wordfence publish the vulnerability in their databases. |
| November 25 | The CVE appears in the National Vulnerability Database. Patchstack logs the first exploitation attempt at 15:27 UTC (10:27 AM ET). |
| November 26 | Attacks turn into automated campaigns. WP Rocket releases 3.24.3. |
| November 27 | Patchstack reports active attacks. WP Rocket publishes its security advisory and a mitigation helper plugin. |
The fix was out six days before the first attack. Sites that update on a weekly routine were most likely already safe. Sites that update “when someone gets to it” are the ones at risk now.
Check your site in five minutes
1. Check the version
In your WordPress dashboard, go to Plugins and find WP Rocket. If the version is below 3.24.2, click Update now and confirm the new version number afterward.
2. No update button? Check the license
WP Rocket is a paid plugin, and its advisory treats an expired license as a reason a site may not be able to update. If you see no update but your version is below 3.24.2, check the license status in your WP Rocket account. Renew it, or apply the workaround below until you do.
3. Check the two settings
Go to WP Rocket > Page Optimization > Image & Media (on versions before 3.24, the Media tab). Note whether LazyLoad for CSS background images and Self-host Google Fonts are on. If you cannot update yet, turn both off and save. WP Rocket says this blocks the documented attack paths until you install 3.24.2 or later.
4. Managing many sites?
WP Rocket published a small helper plugin that switches off both settings and can be pushed to many sites with WP-CLI. On Multisite, it has to be activated on each affected subsite. It is a stopgap, not a replacement for the update.
If your site ran an old version with either setting on
Updating stops new attacks, but it does not remove anything an attacker already planted. Ask your host, developer or security team to look for the signs Patchstack lists:
- Unexpected PHP files in
wp-content/wp-rocket-config/,wp-content/uploads/or directly inwp-content/, for example files named likewp-media-*.php. - Outbound requests from your web server to unfamiliar hosts, including
nip.ionames ortrycloudflare.comtunnels. - Requests to
/wp-admin/admin-ajax.phpwithaction=rocket_beaconthat report full URLs or come from clients that never loaded the page. - New administrator accounts or plugins you did not add.
If anything turns up, treat it as a compromised site: restore from a clean backup taken before November 25 if you have one, change passwords and keys, and review user accounts.
Where the sources differ
- Which versions. WP Rocket’s advisory says versions 3.15 through 3.24.1 are affected. The CVE record, Wordfence and Patchstack say all versions before 3.24.2. Either way the fix is the same: update to 3.24.2 or later. If you run something older than 3.15, do not assume it is safe.
- What kind of bug. The NVD record describes a path traversal weakness, while WP Rocket and Patchstack describe the result, remote code execution. They refer to the same CVE.
- Setting name. Patchstack calls the font option “Host Fonts Locally”. In WP Rocket’s settings it is labeled “Self-host Google Fonts”.
- Government list. As of the morning of November 28, the flaw was not in CISA’s Known Exploited Vulnerabilities catalog. Its absence does not mean the attacks are not real; Patchstack’s own monitoring shows they are.
What it means for a small business
Performance plugins like WP Rocket are often installed once by a developer and then forgotten, and paid plugins depend on a license someone has to keep renewing. This attack hit exactly that gap: a fix existed, but only sites with a working update path and someone watching got it in time. Keep a list of every paid plugin on your site, who holds each license and when it renews, and put plugin updates on a weekly schedule with a backup first. Our look at November’s surge in AI-found WordPress bugs explains why that routine matters more every month.
FAQ
Is WP Rocket safe to use?
Yes, once it is updated. CVE-2026-125812 is fixed in WP Rocket 3.24.2, released November 19, 2026. Older versions are vulnerable when LazyLoad for CSS background images or Self-host Google Fonts is turned on.
How do I fix CVE-2026-125812?
Update WP Rocket to 3.24.2 or later. If you cannot update yet, open WP Rocket, Page Optimization, Image and Media, and turn off LazyLoad for CSS background images and Self-host Google Fonts until you can.
My WP Rocket license expired. Am I at risk?
Possibly. WP Rocket's advisory says sites with an expired license may not be able to update. Turn off the two affected settings now, then renew the license and update.
Is the WP Rocket vulnerability being exploited?
Yes. Patchstack reports the first exploitation attempt on November 25, 2026, and automated campaigns with tens of thousands of blocked attempts on November 26.
Does updating WP Rocket remove malware if my site was already hacked?
No. The update blocks new attacks but does not delete files an attacker already planted. Check wp-content, wp-content/uploads and wp-content/wp-rocket-config for unexpected PHP files, or ask your host to scan the site.
Sources
- Patchstack, "Critical WP Rocket RCE (CVE-2026-125812) Under Active Attack" by Dave Jong (November 27, 2026), read in full. https://patchstack.com/articles/critical-wp-rocket-rce-cve-2026-125812-under-active-attack/
- WP Rocket, "WP Rocket security advisory and mitigation steps for CVE-2026-125812" (last updated November 27, 2026), read in full. https://wp-rocket.me/docs/wp-rocket-security-advisory-and-mitigation-steps-for-cve-2026-125812/
- WP Rocket plugin changelog, versions 3.24.1 to 3.24.3, read directly. https://wp-rocket.me/changelog/
- National Vulnerability Database, CVE-2026-125812 (published November 25, 2026), read via the NVD API. https://nvd.nist.gov/vuln/detail/CVE-2026-125812
- Wordfence Intelligence, "WP Rocket < 3.24.2 - Unauthenticated Remote Code Execution" (published November 23, 2026). https://www.wordfence.com/threat-intel/vulnerabilities/wordpress-plugins/wp-rocket/wp-rocket-3242-unauthenticated-remote-code-execution
- Patchstack database entry for WP Rocket below 3.24.2 (November 23, 2026). https://patchstack.com/database/wordpress/plugin/wp-rocket/vulnerability/wordpress-wp-rocket-plugin-3-24-2-remote-code-execution-rce-vulnerability
- CISA Known Exploited Vulnerabilities catalog, version 2026.11.27, checked November 28, 2026. https://www.cisa.gov/known-exploited-vulnerabilities-catalog