Summary
- CVE-2026-125812 in WP Rocket allows unauthenticated attackers to write and execute arbitrary PHP code on affected WordPress sites.
- The vulnerability affects WP Rocket versions before 3.24.2 when either the LazyLoad for CSS background images or Host Fonts Locally feature is enabled — both are off by default.
- WP Media released a patch on 19 November; exploitation began manually on 25 November and escalated to fully automated attacks the following day.
- Patchstack has blocked more than 25,000 malicious requests across multiple attacker campaigns, with payloads hosted on bare IP addresses, wildcard DNS services, and likely compromised WordPress sites.
- Updating to 3.24.2 does not remove previously planted files; site administrators must audit logs for suspicious requests and outbound connections.
The vulnerability
WP Rocket, a paid WordPress performance plugin used on more than 5.6 million sites across 394,000 customers, carries a critical flaw tracked as CVE-2026-125812. The root cause is insufficient validation of data submitted to a public endpoint. When exploited, it allows an unauthenticated attacker to download PHP code from an external source and execute it on the target server — effectively full remote code execution without any login required.
Conditions required for exploitation
The flaw is exploitable only when at least one of two specific features is active: LazyLoad for CSS background images, or the Host Fonts Locally option (also described as Self-host Google Fonts). Importantly, both are disabled in a default WP Rocket installation, which limits the exposed population somewhat. That said, these are commonly enabled performance features, and organisations running managed WordPress environments at scale may well have activated one or both across many sites without detailed visibility into which are vulnerable.
Rapid escalation to automated attacks
WordPress security firm Patchstack observed the first exploitation attempts on 25 November at 15:27 UTC — characterised as low-volume and manual. Within 24 hours, activity had escalated to fully automated campaigns. Attackers were observed targeting both vulnerable feature paths simultaneously in a single request, ensuring the exploit fires regardless of which feature a given site has enabled. Payloads are being hosted across a range of infrastructure: bare IP addresses, wildcard DNS services such as nip.io, temporary Cloudflare tunnels via trycloudflare.com, and what Patchstack assesses are other already-compromised WordPress sites.
Patch and interim mitigations
WP Media released version 3.24.2 containing the fix on 19 November, prior to exploitation commencing. Organisations that cannot immediately update should disable both the LazyLoad for CSS background images and Self-host Google Fonts features via WP Rocket's Page Optimization settings. WP Media has also made available a helper plugin intended to assist administrators managing multiple WordPress installations to apply the mitigation at scale.
Post-compromise considerations
A detail worth stressing for security teams: applying the patch does not remove any files an attacker may have already planted on a compromised host. Any site that ran a vulnerable version with either triggering feature enabled should be treated as potentially compromised until proven otherwise. Administrators should review server logs for unusual inbound requests to public endpoints and monitor for unexpected outbound connections. Patchstack has published a list of attacker IP addresses that can be used to inform blocklists and retrospective log analysis.
Why it matters
For CISOs overseeing organisations with a WordPress presence — whether a corporate site, customer portal, or digital publishing platform — this is a live, automated threat targeting a widely deployed commercial plugin. The unauthenticated nature of the exploit means no user interaction or credential compromise is required; a publicly reachable site with the right features enabled is sufficient. The speed of escalation from manual probing to automated campaign within a single day underscores how quickly the window between patch availability and mass exploitation has narrowed. Organisations should audit their WordPress environments for WP Rocket version and feature configuration as an immediate priority, and treat any site that may have been exposed as requiring incident response steps beyond patching.
What to do now
- Upgrade all WP Rocket installations to version 3.24.2 or later as a priority.
- If immediate patching is not possible, disable the LazyLoad for CSS background images and Self-host Google Fonts features via WP Rocket > Page Optimization > Image and Media > Media tab.
- Use the WP Media helper plugin to apply mitigations across multiple WordPress sites where individual updates are not yet feasible.
- Add the attacker IP addresses published by Patchstack to network and WAF blocklists.
- Review web server and application logs on any site that ran a vulnerable version with either triggering feature enabled, looking for suspicious requests to public endpoints and unexpected outbound connections.
- Conduct file integrity checks on sites that may have been exposed, as patching does not remove files planted prior to the update.
