CVE-2026-125812: WP Rocket flaw under active attack

Attackers are actively exploiting a critical vulnerability in WP Rocket, a caching plugin for WordPress used on more than 5.5 million websites, to run their own code on affected sites without logging in.
The flaw, tracked as CVE-2026-125812 and rated 9.8 out of 10, is an unauthenticated remote code execution vulnerability. It affects WP Rocket versions before 3.24.2 on sites where either LazyLoad for CSS background images or Host Fonts Locally is switched on. Both features are off by default but are common on performance-tuned sites.
Patchstack, which reported the flaw, said its telemetry recorded the first exploitation attempt on 25 November 2026 at 15:27 UTC, and that the volume of attempts rose sharply afterwards, with tens of thousands of blocked attempts on 26 November alone. Several independent operators are active, according to Patchstack, and some payloads are hosted on bare IP addresses, wildcard DNS names and temporary Cloudflare tunnels.
How the flaw works
WP Rocket runs a small script in visitors' browsers that measures each page and reports the results to a public AJAX endpoint, action=rocket_beacon. The plugin then uses the reported URLs to optimise the page, but it does not check them strictly enough. An attacker who sends a crafted report can make the site download content from a server the attacker controls and save it as a PHP file, which then runs on the server.
The two features involved build cache and font file paths by appending a URL path to a fixed directory without checking that the result stays inside it. A path containing parent-directory segments can escape the cache directory, so the attacker-controlled content lands where it can be executed.
What site owners should do
The fix is WP Rocket 3.24.2, released on 19 November 2026. WP Rocket's own security advisory confirms the flaw affects versions 3.15 through 3.24.1 where either of the two features is enabled, and that an attacker can execute arbitrary code without authentication under those conditions.
Site owners who cannot update at once should turn off both LazyLoad for CSS background images and Host Fonts Locally, which blocks the documented attack paths immediately. Updating stops new attacks but does not remove files an attacker has already planted, so sites that ran a vulnerable version should look for unexpected PHP files in wp-content, wp-content/uploads and wp-content/wp-rocket-config, including files named wp-media-*.php, and review server logs for unusual admin-ajax.php requests.