Threat actors are actively exploiting a critical vulnerability in WP Rocket, a widely deployed premium caching and performance plugin for WordPress. The flaw, tracked as CVE-2026-125812, allows unauthenticated remote attackers to write and execute arbitrary PHP code on affected web servers.

According to reporting from BleepingComputer, WP Rocket developer WP Media maintains that the software is deployed across more than 5.6 million websites by roughly 394,000 customers. Because of the software's large footprint, the flaw represents an immediate threat to WordPress infrastructure where vulnerable configurations remain exposed.

Technical Details and Attack Vector

The security flaw stems from insufficient input validation when processing requests delivered to a public endpoint. By sending tailored data to this interface, an unauthenticated attacker can force the web server to fetch malicious PHP code from an external source, save it locally, and run it.

CVE-2026-125812 affects all versions of WP Rocket prior to version 3.24.2. However, successful exploitation is conditional. A target site is vulnerable only if administrators have enabled either the "LazyLoad for CSS background images" setting or the "Host Fonts Locally" feature. While both of these options are disabled by default in standard installations, many performance-conscious site owners enable them during site optimization.

Automated Campaigns Underway

Security researchers at WordPress security firm Patchstack first detected manual, low-scale exploitation attempts on November 25 at 15:27 UTC. Within 24 hours, the activity escalated into fully automated exploitation campaigns targeting sites en masse.

Patchstack observed threat actors designing requests that target both vulnerable feature paths simultaneously. This technique ensures that if a site has activated either the font hosting or background lazy-loading configuration, the malicious payload triggers successfully. Attackers have been staging external payloads using bare IP addresses, wildcard DNS services such as nip.io, temporary Cloudflare tunnels via trycloudflare.com, and previously compromised WordPress environments. Patchstack reported that its defense systems have intercepted more than 25,000 exploitation requests from diverse attackers.

Vendor Response and Mitigation

WP Media quietly issued a fix on November 19 with the release of WP Rocket version 3.24.2, followed by an advisory urging all administrators to apply the update immediately. To assist organizations managing large portfolios, the vendor also made a helper plugin available to mitigate the underlying risk across multiple sites.

Administrators should note that simply updating the software does not remediate an existing intrusion. Applying the patch protects against future requests but will not remove webshells or malicious files planted before the update was applied.

What You Should Do

Administrators responsible for environments running WP Rocket should take the following steps:

  • Update immediately: Upgrade WP Rocket to version 3.24.2 or later to neutralize the public endpoint flaw.
  • Apply manual mitigations if delayed: If immediate updates are not feasible, disable the vulnerable functions manually by navigating to WP Rocket > Page Optimization > Image & Media > Media and disabling both "LazyLoad for CSS background images" and "Self-host Google Fonts."
  • Block malicious infrastructure: Review and implement IP address blocklists published by security monitoring firms, including Patchstack, to halt known exploit sources at the perimeter.
  • Inspect server logs and filesystem: Check web server logs for suspicious inbound requests hitting WP Rocket endpoints and outbound network connections initiated by the web server to unknown IP addresses, nip.io domains, or Cloudflare tunnels. Audit the WordPress filesystem for recently created or altered PHP files.