WP Rocket: How to Check Whether Your Site Is Exposed to CVE-2026-125812

WP Rocket: How to Check Whether Your Site Is Exposed to CVE-2026-125812

Attackers are exploiting CVE-2026-125812 in WP Rocket, a flaw that can allow PHP code to run on WordPress sites without logging in. The vulnerability affects versions earlier than 3.24.2 if at least one of two features is enabled: lazy loading of CSS background images or local hosting of Google Fonts. WP Rocket released the fix on November 19, 2026, and Patchstack observed the first attempts on November 25.

The campaign described by Patchstack shifted from manual attempts to automated activity, with tens of thousands of attempts blocked in a single day. Sources describe it as automated; they do not provide data to characterize it as an AI-driven campaign. The specific risk is for those using vulnerable versions of WP Rocket with either of the two options enabled. Both are disabled by default, but may be enabled on sites configured to improve performance.

Check the version and options

WP Rocket statusConditionWhat to do
Earlier than 3.24.2One or both affected features are enabledUpdate; if you cannot do so immediately, disable both features
3.24.2 or laterFixed versionAlso check whether the site was exposed before updating

WP Rocket specifies that the flaw affects versions 3.15 through 3.24.1 when at least one of the listed features is enabled. Other sources summarize the range as “earlier than 3.24.2.” To verify a specific installation, check the installed version and the status of both options.

The path for checking the options depends on the plugin version. In WP Rocket 3.24 and later, open WP Rocket > Page Optimization > Image & Media. In versions earlier than 3.24, also open the Media tab. The option names may appear in English: “LazyLoad for CSS background images” and “Self-host Google Fonts”.

What to do, step by step

  1. Identify all sites using WP Rocket. Include those you manage directly and those you manage for clients. If your installation is WordPress Multisite, check the subsites: WP Rocket says the auxiliary mitigation plugin must be activated individually on each one.

  2. Check the installed version. In the WordPress dashboard, open Plugins, find WP Rocket, and check its version. If it is earlier than 3.24.2, the site needs an update. A vulnerable version alone does not prove that an intrusion occurred: the described exploitation path requires at least one of the two features to be enabled.

  3. Update to 3.24.2 or later. WP Rocket says that with an active license, you can go to Plugins, find WP Rocket, and click “Update now”. Then confirm that the installed version is 3.24.2 or later. If the update is not available or you cannot install it, immediately follow the next step as a temporary mitigation.

  4. Disable both options if you cannot update. Open WP Rocket > Page Optimization > Image & Media and turn off “LazyLoad for CSS background images” and “Self-host Google Fonts”. In versions earlier than 3.24, open the Media tab. Save the changes and verify that both options are disabled on every affected site. WP Rocket recommends keeping them disabled until you install the fixed version.

  5. Manage multisite installations separately. WP Rocket offers an auxiliary plugin that disables both affected features; the provider says it can be deployed across multiple sites using WP-CLI or standard deployment tools. You should then check each site. In Multisite, the plugin is installed once and activated on each affected subsite; do not assume that activating it on one covers the others.

  6. Investigate whether there was prior exposure. If the site ran a vulnerable version with one or both options enabled, ask your hosting provider or security team to check for signs of compromise. Patchstack recommends examining historical logs and the server’s outbound connections. Updating closes the path to new attacks, but does not delete files that may already have been created.

  7. Look for specific indicators in logs and files. Patchstack points to “rocket_beacon” requests from clients that never loaded the page they claim to report, outbound connections to unknown servers, and domains such as nip.io or trycloudflare.com tunnels. It also recommends checking for unexpected PHP files named, for example, wp-media-*.php in wp-content/wp-rocket-config/, wp-content/uploads/, or directly in wp-content/. The presence of an indicator requires investigation; do not delete files without understanding their purpose or preserving the information needed to analyze them.

  8. Escalate suspicious findings. If you find unexpected files, unusual requests, or unrecognized connections, share the logs with your provider or security team. WP Rocket warns that files or accounts created by an attacker require a separate investigation in addition to updating or changing settings.

“Updating stops new attacks, but does not remove files an attacker has already installed.”

— Patchstack

WP Rocket: cómo comprobar si tu sitio está expuesto a CVE-2026-125812
© WP Rocket

Mistakes to avoid

Do not confuse updating with cleanup. Installing the fixed version reduces the risk of future exploitation through this path, but does not prove that the site is clean or remove possible malicious files. If there was exposure, review the logs and file system, and ask for help if you find suspicious signs.

Do not disable just one feature. The vulnerability can be exploited through either of the two paths: lazy loading of CSS background images or local hosting of Google Fonts. If you cannot update, WP Rocket recommends disabling both and verifying their status on every affected site.

Do not check only the main site. In installations with multiple sites or a Multisite network, confirm the version and settings of every relevant installation. For the auxiliary plugin, WP Rocket explicitly says it must be activated on every affected subsite.

Do not rely on IP blocking as your only response. Patchstack published addresses associated with the attempts, but sources describe multiple operators and different servers hosting the payloads. The primary measure is to install WP Rocket 3.24.2 or later; if that is not possible, disable both options and look for possible traces.

Do not keep the mitigation as a permanent solution. Disabling the affected options is useful while you are unable to update. WP Rocket’s stated goal is to install the fixed version as soon as possible; until then, make sure both features remain disabled.

Sources: The Hacker News, BleepingComputer, Patchstack, BleepingComputer, WP Rocket