Security

Attackers exploit critical WP Rocket caching plugin flaw

Patchstack saw manual attempts on Nov. 25 and automated campaigns the next day. Sites with the CSS background lazy load or self-hosted Google Fonts option enabled are exposed until 3.24.2.

Illustration: WP Rocket plugin
Illustration: Five Nines

WP Rocket's security advisory confirms that attackers are actively exploiting a remote code execution flaw in the caching plugin. The vulnerability, tracked as CVE-2026-125812, affects WP Rocket versions 3.15 through 3.24.1 when either the LazyLoad for CSS background images feature or the Self-host Google Fonts feature is enabled. The vendor released version 3.24.2 on November 19, 2026, to fix the flaw. The advisory notes that Patchstack has reported active automated exploitation attempts against vulnerable sites.

Patchstack detected the first low-volume, manual exploitation attempts on November 25 at 15:27 UTC, and activity grew into fully automated campaigns the next day, BleepingComputer reported. The attackers target both vulnerable features, sometimes in a single request, to hit whichever option is turned on. They host payloads on raw IP addresses, wildcard DNS names like nip.io, temporary trycloudflare.com tunnels, and other WordPress sites that are probably compromised. Patchstack has stopped more than 25,000 malicious requests coming from several attackers.

CybersecurityNews reported on Monday that the flaw is rated CVSS 9.8 because the plugin does not adequately check data sent to a public endpoint. The plugin gathers page-measurement data from site visitors, and Patchstack found that parts of those reports were not validated. On a vulnerable site, that gap lets an attacker place and run PHP code on the server without any WordPress account. Both vulnerable options are off by default; turning on either one exposes the site.

WP Rocket's advisory tells users who cannot update yet to switch off the two affected options: LazyLoad for CSS background images and Self-host Google Fonts. Both settings are under Page Optimization > Image & Media > Media. The vendor also provides a helper plugin for administrators managing many sites, which can be activated with WP-CLI. On multisite setups, the helper must be enabled on each affected subsite. Applying the update prevents further exploitation, but it does not delete files an attacker may have already placed.

Patchstack's research lists attacker IP addresses that website owners should block immediately. For sites that ran a vulnerable version with either feature enabled, defenders should review web and outbound logs back to at least November 25, look for unusual requests tied to WP Rocket's page measurements, and search for unexpected PHP files in the uploads folder and the wp-rocket-config folder. Patchstack highlighted filenames matching wp-media-*.php as items to verify. If a suspicious file is found, keep it and its logs, then contact your hosting provider or incident response team to investigate.

Sources: WP Rocket, BleepingComputer, CybersecurityNews

Noor Haddad

Noor Haddad covers attacks, breach disclosures and exploited vulnerabilities for Five Nines. Noor writes from CISA and vendor advisories, SEC disclosures and published reporting.

Corrections. Report an error to corrections@thefivenines.com. We list substantive corrections on the corrections page.