Alert

Logo de WP Rocket

Alert 2026-186 Exploited critical vulnerability in WP Rocket allows remote code execution

Affected product(s): 

ProductAffected versionsFix
WP Rocket3.15 through 3.24.13.24.2 (3.24.3 or later is recommended)

Exploiting this flaw requires at least one of these options to be enabled: LazyLoad for CSS background images, or Self-host Google Fonts, both of which are disabled by default. The range is the vendor’s; the CVE record lists versions earlier than 3.24.2.

Description

A critical vulnerability has been reported in WP Rocket, a caching plugin for WordPress that, according to the vendor, is used by more than 5.6 million sites, identified as CVE-2026-125812 (CVSS 9.8, critical). An unauthenticated remote attacker can execute PHP code on the server when at least one of these options is enabled: LazyLoad for CSS background images, or Self-host Google Fonts. Both are disabled by default, so not every installation is exposed.

The plugin receives browser measurement reports on a public AJAX endpoint and uses the URLs supplied to optimize the page, without validating them rigorously enough. A crafted report can cause the site to download content and save it as a PHP file that is then executed. The vendor limits the affected versions to 3.15 through 3.24.1; the CVE record lists versions earlier than 3.24.2.

The minimum fix, 3.24.2, was published on Nov 19, 2026. The CVE identifier was issued on Nov 25, 2026, and the vendor advisory was updated on Nov 27, 2026. The vulnerability is already being exploited: researchers observed the first attempt on Nov 25, 2026, and, on Nov 26, tens of thousands of blocked attempts. A team that administers WordPress sites documented on Nov 26, 2026 an intrusion in which a PHP file was planted, wp-config.php was read, administrator accounts were created and a backdoor was left behind. As of Nov 29, 2026, this vulnerability is not listed in the Known Exploited Vulnerabilities catalog.

Mitigation

There is an official workaround from the vendor, intended for those who cannot update yet (for example, if the license has expired): under WP Rocket → Page Optimization → Image & Media (on versions earlier than 3.24, the Media tab), turn off LazyLoad for CSS background images and Self-host Google Fonts, save the changes and confirm that both settings are off on each affected site. They must remain off until 3.24.2 or later is installed. Turning off only one of the two is not enough.

The vendor also publishes a helper plugin, “WP Rocket | Mitigate CVE-2026-125812”, that applies the same measure, including across multiple sites at once. The official workaround does not replace the update and does not remove files or accounts an attacker may already have created.

Detection

Updating the plugin or applying the official workaround closes the documented path for new attacks, but it does not delete files or accounts an attacker may already have created. Sites that may have been exposed should be reviewed, even if they are already updated. As a review guide, not as an exploitation procedure, look for:

  • Anomalous requests to /wp-admin/admin-ajax.php with action=rocket_beacon (for example, from clients that did not load the page they report, or that send full URLs where the plugin expects domains).
  • Unexpected PHP files in wp-content/wp-rocket-config/, wp-content/uploads/ or wp-content/ (for example, wp-media-*.php).
  • Outbound server connections to unknown names, or to nip.io domains or trycloudflare.com tunnels.
  • New or unrecognized administrator accounts.
  • Traffic associated, among others and without the list being exhaustive, with addresses observed in attempts since Nov 25, 2026: 103.235.74.71, 157.245.122.230, 152.89.170.194, 180.232.236.101, 103.235.74.72, 201.79.120.217, 112.78.154.32, 167.71.75.155, 43.163.8.253 and 51.79.199.209.

Solution

The solution is to update WP Rocket to version 3.24.2 or later; that is the minimum fix. As of Nov 29, 2026, 3.24.3 or later is recommended, already published, and it includes this fix. After updating, confirm that the installed version is 3.24.2 or later and review the site in case it was exposed before the patch.

For information on how to update, visit the following link:

https://wp-rocket.me/docs/wp-rocket-security-advisory-and-mitigation-steps-for-cve-2026-125812/

Additional information: