Attackers are exploiting a critical WP Rocket flaw that lets them run PHP code on WordPress sites without signing in. The vulnerability affects versions before 3.24.2 when a site uses either of two optional features. WP Media released a fix on November 19, six days before researchers spotted the first attack attempts.

Two optional settings determine exposure

WP Rocket is a paid plugin that helps WordPress sites load faster. The vulnerable settings handle two specific tasks. One delays loading CSS background images, while the other hosts fonts locally. Both settings are off by default, but enabling either one on an affected version exposes the site to the flaw.

The vulnerability, tracked as CVE-2026-125812, stems from how the plugin checks incoming data. On a vulnerable site, an attacker can cause the server to save and run unauthorized PHP code. WP Media says more than 394,000 customers use its plugin across 5.6 million sites. Those figures cover its overall customer base, and the number of sites running an exposed configuration remains unclear.

Attacks shifted from manual attempts to automated campaigns

WordPress security researchers first observed a small number of manual attempts on November 25. By the following day, attackers had automated the activity. The researchers reported blocking more than 25,000 malicious requests from multiple attackers. That figure counts requests their platform stopped and does not establish how many sites suffered a breach.

How to address the WP Rocket flaw

WP Media urges administrators to install WP Rocket 3.24.2 or later. For sites that cannot update immediately, the company advises turning off both CSS background image lazy loading and local Google Fonts hosting. Administrators can find those controls in the Media tab under Page Optimization. WP Media also released a helper plugin for teams that need to apply the mitigation across several sites.

Sites that previously ran a vulnerable version with either setting enabled need a further check. Updating closes the entry point, but files an attacker placed on the server can survive the update. Researchers advise administrators to review logs from the period of exposure for suspicious requests and unexpected outbound connections, then investigate any unfamiliar files they find.


0 responses to “WP Rocket flaw puts unpatched WordPress sites at risk”