TLDR
A critical WP Rocket flaw, CVE-2026-125812, lets attackers run PHP code without logging in.
It affects versions 3.15 through 3.24.1 when two optional features are turned on.
The fix arrived in version 3.24.2 on November 19, and attacks began on November 25.
Sites that cannot update yet can switch off both features as a workaround.
Updating does not remove files that attackers have already planted.
A critical flaw in the WP Rocket caching plugin lets attackers run code on WordPress sites without logging in. It is tracked as CVE-2026-125812.
WP Rocket is a paid plugin that speeds up sites through page caching, CSS optimization and image lazy-loading. Its developer, WP Media, says it runs on more than 5.6 million sites and has 394,000 customers.
Good news first: not every site is exposed. The flaw only works when LazyLoad for CSS background images or Self-host Google Fonts is turned on, and both are off by default.
Affected versions run from 3.15 through 3.24.1. The cause is weak checks on data sent to a public endpoint.
That gap lets an attacker write PHP code downloaded from an external source and run it on the site. No account or password is needed.
How The Attacks Unfolded
The fix arrived in version 3.24.2 on November 19. A public advisory followed in the days after.
WordPress security firm Patchstack saw the first low-scale manual attempts on November 25 at 15:27 UTC, six days after the patch. By the next day, the attacks were fully automated.
More than 25,000 malicious requests have been blocked so far, from multiple attackers. A list of attacker IP addresses has been published for site owners to block.
Attackers target both vulnerable features, sometimes in a single request. That way the exploit fires whichever feature a site has switched on.
Payloads are hosted on bare IP addresses, wildcard DNS names such as nip.io, and temporary trycloudflare.com tunnels. Some also sit on other WordPress sites that are likely compromised.
View post by @TheHackersNews on X
Fixes And Workarounds
Sites with an active license should open Plugins in the WordPress dashboard, find WP Rocket and select Update now. The installed version should read 3.24.2 or later.
Owners with an expired license, or who cannot update yet, can turn off both features. Go to WP Rocket, then Page Optimization, then Image & Media. On versions before 3.24, use the Media tab.
Both settings should be off and saved on each affected site. They should stay off until the update is installed, which stops the documented attack paths.
Agencies and hosts can use a helper plugin that turns off both features across many sites. With WP-CLI, the command is wp plugin install ./wp-rocket-mitigate-cve-2026-125812.zip --activate.
On multisite networks, the helper is installed once and activated on each subsite. The command wp plugin activate wp-rocket-mitigate-cve-2026-125812 --url=https://example.com/subsite/ does this for one site.
Updating does not remove files an attacker has already planted. Owners who ran a vulnerable version with either feature on should have their host or security team check logs for suspicious requests and outbound connections.

