Security professionals are observing active exploitation of a critical vulnerability, designated CVE-2026-125812, within the WP Rocket caching plugin, which permits the execution of arbitrary PHP code on WordPress installations.
This flaw stems from inadequate validation of data transmitted to a public endpoint, enabling unauthorized individuals to upload and execute PHP code sourced externally. The vulnerability impacts any instance of WP Rocket preceding version 3.24.2, specifically when the functionalities labeled 'LazyLoad for CSS background images' or 'Host Fonts Locally' are active. It is worth noting that both of these features are not enabled by default.
WP Media, the developer of the plugin, informed the community about the issue on November 19, issuing an advisory over the weekend and advising users to update to version 3.24.2 or a more recent iteration.
Patchstack, a WordPress security firm, noted the initial instances of low-intensity, manual exploitation attempts on November 25 at 15:27 UTC, a pattern that intensified into fully automated campaigns the subsequent day. The researchers indicated that the attacks were designed to target both susceptible features, sometimes within a single request, to trigger the exploit regardless of which option was enabled on the target site. Patchstack reported, "Attackers use both feature paths, sometimes in one request, so that whichever feature a site has enabled, one of them fires." Furthermore, the actors are reported to be hosting their malicious payloads on bare IP addresses, wildcard DNS names such as nip.io, temporary trycloudflare.com tunnels, and other potentially compromised WordPress websites.
For operators unable to immediately deploy the newest version of WP Rocket, the recommended mitigation involves deactivating 'LazyLoad for CSS background images' and ensuring Google Fonts are self-hosted through the WP Rocket interface, specifically navigating to Page Optimization > Image & Media > Media tab. The vendor also provided a supplementary plugin to assist those overseeing numerous websites in mitigating this exposure risk. Additionally, Patchstack has published a list of attacker IP addresses that site administrators should implement in their blocklists immediately.
It is crucial for site administrators who were running the vulnerable version with either option that creates an exploitation pathway to conduct a thorough review of their logs for any outbound connections or suspicious requests, as updating to a secure version does not automatically erase previously placed files. Patchstack has cautioned that large-scale, automated assaults are currently underway, evidenced by their security platform successfully blocking over 25,000 malicious requests originating from numerous attackers.
The premium caching plugin, which enhances website performance through techniques like page caching, CSS optimization, and lazy-loading images, is reportedly utilized by over 394,000 customers across more than 5.6 million websites.
This incident highlights the continuous operational risk associated with third-party dependencies, where even seemingly minor configuration options in widely adopted platforms can introduce high-severity access vectors.
On December 15th, Eoin Hinchy, the co-founder and CEO, along with Martin Moroney, the Head of AI Transformation, and Christina Troy, the Sr. Manager, IT, will host an open discussion to review the outcomes, shortcomings, and lessons learned from this event, inviting participation for candid insights and questions.
Why it matters
This vulnerability represents a severe platform risk, allowing unauthenticated attackers to compromise sites running this widely used caching plugin. Operators must immediately verify their WP Rocket version and take mitigation steps to prevent unauthorized code execution and potential data breaches.






