WP Media, the developer of the WordPress caching plugin WP Rocket, has published a security advisory for a vulnerability (CVE-2026-125812) that lets attackers execute arbitrary code on affected sites without authentication. The fixed version, 3.24.2, was released on November 19, 2026. Meanwhile, Patchstack, which provides security services for WordPress, says it has observed attacks targeting the flaw since November 25.
Sites Running 3.15 Through 3.24.1 With Specific Settings Enabled Are Affected
According to WP Rocket's advisory, the affected versions are 3.15 through 3.24.1. Not every site is exposed, however: the flaw applies only when at least one of two settings, "LazyLoad for CSS background images" or "Self-host Google Fonts," is enabled. Patchstack's materials refer to the second setting as "Host Fonts Locally."
| Item | Details |
|---|---|
| Identifier | CVE-2026-125812 |
| Severity | CVSS 9.8 (Patchstack's rating) |
| Affected versions | 3.15 through 3.24.1 |
| Condition | Either of the two settings above is enabled |
| Fixed version | 3.24.2 (released November 19, 2026) |
Patchstack explains that WP Rocket's measurement script reports page URLs to a public AJAX endpoint (an entry point that can be called from outside), and that the values it receives were not validated strictly enough. A crafted report causes the site to download content prepared by the attacker, save it as a PHP file, and run it. Patchstack also notes that both settings are disabled by default.
Attacks Became Automated Within a Day
Patchstack says it observed the first exploitation attempt on November 25, 2026, at 15:27 UTC (12:27 a.m. JST on November 26). Early activity looked like manual testing, but within a day it had become automated, and the company says it blocked tens of thousands of attacks on November 26 alone.
Attackers send requests that target both settings at once, so the attack succeeds if either one is enabled. Patchstack says the payloads were hosted on servers addressed directly by IP address, temporary tunneling services, and other WordPress sites that appear to have been compromised. Its analysis also indicates that multiple attackers are operating independently.
WP Rocket's official website states that the plugin is used on more than 5.5 million websites. Although it is a paid plugin, its user base is large.
Update to 3.24.2 or Later First, or Disable the Two Settings
WP Media's primary recommendation is to update to version 3.24.2 or later. Sites with an active license can update from the WordPress "Plugins" screen. For sites that cannot update right away, for example because the license has expired, the company asks administrators to go to "WP Rocket" > "Page Optimization" > "Image & Media" (the "Media" tab in versions before 3.24), turn off both settings, and save. The company says this immediately closes the documented attack paths.
For operators managing many sites, WP Media has published a helper plugin on GitHub, "WP Rocket | Mitigate CVE-2026-125812," which forcibly disables the two settings. It is intended only as a temporary measure until sites are updated, and it does not take effect on 3.24.2 or later.
Planted Files Remain Even After Updating
Updating or changing the settings does not remove files or accounts an attacker has already created. WP Media urges owners of sites that ran a vulnerable version with either setting enabled to have their hosting provider or security team check for compromise.
Patchstack's write-up lists three signs to look for: POST requests to "/wp-admin/admin-ajax.php" with "action=rocket_beacon"; outbound connections from the web server to unfamiliar external hosts; and unexpected PHP files in locations such as "wp-content/wp-rocket-config/" and "wp-content/uploads/".
Our Take
About six days passed between the release of the fix and the first attack, and less than a day between that and automated exploitation. The quick publication of an advisory and mitigation options deserves credit. On the other hand, a paid plugin cannot be updated from the dashboard once its license expires, so a number of sites may still be running older versions. Even so, turning off just two settings closes the current attack paths, so administrators who cannot update should start there.
Summary
WP Rocket 3.15 through 3.24.1 contains a vulnerability that allows unauthenticated code execution, and it was being actively exploited at the time of writing. Administrators of WordPress sites with either of the two image- or font-related settings enabled should promptly update to 3.24.2 or later, or disable those settings. They should also review past access logs and check for suspicious PHP files.