Hackers are actively exploiting a critical flaw, tracked as CVE-2026-125812, in the WP Rocket caching plugin that allows executing arbitrary PHP code on WordPress sites. WP Rocket is a paid plugin used on more than 5.6 million sites by 394,000 customers, according to its developer, WP Media.
The flaw is caused by insufficient validation of data sent to a public endpoint, allowing unauthenticated attackers to write and run PHP code downloaded from an external source. It impacts WP Rocket versions before 3.24.2 when the 'LazyLoad for CSS background images' or 'Host Fonts Locally' options are enabled, though both are inactive by default.
WP Media released fixes for the vulnerability on November 19 and published an advisory over the weekend, urging users to upgrade to version 3.24.2 or later. Patchstack observed the first low-scale, manual exploitation attempts on November 25 at 15:27 UTC, with activity escalating to fully automated campaigns the following day.
The researchers report that the attacks targeted both vulnerable features, sometimes in the same request. Patchstack says attackers host payloads on bare IP addresses, wildcard DNS names such as nip.io, temporary trycloudflare.com tunnels, and other WordPress sites that are likely compromised.
Users who cannot install the latest version should turn off LazyLoad for CSS background images and Self-host Google Fonts. Patchstack warns that large-scale, automated attacks are already happening, as its security platform blocked more than 25,000 malicious requests from multiple attackers, and notes that updating does not remove previously planted files.