What happened
A public measurement request could save attacker code
WP Rocket says CVE-2026-125812 affects versions 3.15 through 3.24.1 when either LazyLoad for CSS background images or Self-host Google Fonts is enabled. A public measurement endpoint did not check reported URLs strictly enough. Under those conditions, an unauthenticated request could make the server fetch attacker-controlled content, save it as a PHP file and run it.
WP Rocket released version 3.24.2 on 19 November. Patchstack reports its first observed exploitation attempt on 25 November and automated campaigns the following day. Those are observations in Patchstack’s telemetry, not a count of compromised sites.
The settings determine exposure
Defender workflow
Update, then check the exposure window
- 1
Confirm the plugin and settings. Inventory WP Rocket installations, their running versions and whether either affected feature was enabled. Update to 3.24.2 or later and verify the installed version afterward.
- 2
Review the measurement endpoint. Search web logs for unusual requests to WordPress admin-ajax.php with action=rocket_beacon, especially reports containing full external URLs or requests without a plausible preceding page load.
- 3
Inspect writable locations. Check wp-content/wp-rocket-config, wp-content/uploads and wp-content for unexpected PHP files, and correlate them with outbound requests from the web server. Preserve suspicious files and logs before cleanup.
Defender note
A clean version check does not answer the incident question
An updated plugin prevents this route from creating new files. It does not remove code already planted on a site. If the site was exposed between disclosure and update, pair the version check with file, request and process evidence.