WordPress operators using WP Rocket should verify two things separately: whether the documented code-execution paths are closed, and whether an attacker used them before the fix. WP Media identifies CVE-2026-125812 in WP Rocket versions 3.15 through 3.24.1 when either LazyLoad for CSS background images or Self-host Google Fonts is enabled. Under those conditions, an unauthenticated attacker can execute arbitrary code on the website.
This is a follow-up on November disclosures, not a newly announced December zero-day. The vendor says version 3.24.2, released November 19, 2026, fixes the issue. In its November 27 report, Patchstack records the first exploitation attempt on November 25 at 15:27 UTC and a shift to automated campaigns the following day. That evidence warrants prompt action on exposed sites; it does not establish how many sites were compromised.
Who needs to act
Check public business sites, contractor portals and agency-managed WordPress installations that use WP Rocket. The vulnerable version alone is not the entire exposure test: at least one of the two affected optimization features must also be enabled. Patchstack says both are off by default. Do not assume that a performance-tuned deployment retained those defaults, or that every site in a managed portfolio has the same settings.
Patchstack describes insufficient validation at a public measurement endpoint: attacker-supplied data can cause the site to retrieve external content and save it as executable PHP. The important trust boundary is between a visitor's optimization report and the server's ability to fetch and run code. The reviewed reporting does not establish a country attribution.
Close both documented paths
- Verify the installed fix. Update WP Rocket and confirm version 3.24.2 or later on each affected site. Record the installed version rather than treating an update notification or deployment request as completion.
- If the update is delayed, disable both features. The vendor directs users to WP Rocket > Page Optimization > Image & Media; versions before 3.24 use the Media tab. Turn off LazyLoad for CSS background images and Self-host Google Fonts, save the changes and verify both remain off. Leave them disabled until the fixed version is installed.
- Check the fleet, not just the dashboard you opened. WP Media provides a mitigation helper for bulk deployment. Its Multisite instructions require activating the helper individually on each affected subsite. Verify the resulting settings per site rather than assuming one activation covers every subsite.
The vendor says disabling both features mitigates the documented attack paths. That is a temporary exposure control, not a substitute for installing the fix or investigating earlier access.
Review what happened before the change
Preserve available web, application and outbound-connection logs before cleanup. Patchstack recommends examining suspicious rocket_beacon requests, especially clients that never loaded the page they report on or that submit full URLs where bare domains are expected. These are investigation leads: the endpoint name alone is not proof of an attack.
Correlate those requests with unfamiliar outbound downloads and unexpected PHP files in wp-content/wp-rocket-config/, wp-content/uploads/ or wp-content/. Patchstack gives wp-media-*.php as an example filename pattern. Validate file provenance and execution context; do not classify every matching path or file as malicious. Legitimate wildcard DNS and tunneling services mentioned in the report are not universally malicious destinations.
WP Media explicitly warns that files or accounts already created by an attacker require separate investigation. If evidence indicates compromise, involve the host or incident-response team to scope changed files, accounts and access. As a defensive precaution, assess which site secrets and connected services the compromised web application could reach, and recover affected credentials from a trusted system when exposure is established. Do not restore a backup solely because it predates today's patch; validate that it predates the intrusion and is clean.
Bulwark assessment
For small businesses and government contractors, the operational risk is treating a green update screen as a clean-site certificate. Maintain two completion records: one proving the vulnerable feature paths are closed, and another documenting the earlier-exposure review and any recovery work. A patched plugin can coexist with an attacker-created PHP file or account. Conversely, the presence of an affected plugin is exposure evidence, not proof that the site was breached.
The reviewed primary reports establish conditional unauthenticated code execution and observed exploitation attempts. They do not provide a confirmed victim total or prove that every vulnerable installation was attacked. Prioritize reachable sites with either feature enabled and preserve that distinction when briefing customers.
Primary source: WP Rocket security advisory and mitigation steps, updated November 27, 2026.
Primary source: Patchstack exploitation observations and detection guidance, November 27, 2026.

