Hackers Exploit Critical WP Rocket Bug to Compromise WordPress Sites
Hackers are actively exploiting a critical vulnerability, tracked as CVE-2026-125812, in the WP Rocket caching plugin, which is used on more than 5.6 million WordPress sites. The flaw stems from insufficient validation of data sent to a public endpoint, allowing unauthenticated attackers to download and execute arbitrary PHP code. It affects WP Rocket versions before 3.24.2, but only when the LazyLoad for CSS background images or Host Fonts Locally options are enabled — both of which are off by default.
WP Media patched the bug on November 19 and urged users to upgrade to version 3.24.2 or later. Security firm Patchstack observed the first manual exploitation attempts on November 25, with attacks escalating to fully automated campaigns the following day. Attackers target both vulnerable feature paths, sometimes within a single request, and host their payloads on bare IP addresses, wildcard DNS names like nip.io, temporary trycloudflare.com tunnels, and other likely compromised WordPress sites.
Users who cannot immediately update should disable LazyLoad for CSS background images and the Self-host Google Fonts option, and Patchstack has published a list of attacker IPs to block. Importantly, updating alone does not remove previously planted malicious files, so administrators who ran a vulnerable version with either option enabled should review logs for suspicious requests and outbound connections.