Key facts
- Attackers are actively exploiting CVE-2026-125812 in the WP Rocket caching plugin to execute arbitrary PHP code on WordPress sites.
- The flaw affects WP Rocket versions earlier than 3.24.2 if the LazyLoad for CSS background images setting or the Host Fonts Locally setting is enabled.
- CVE-2026-125812 results from poor validation of information sent to a public endpoint, letting unauthenticated attackers write and run PHP code fetched from an outside source.
- WP Media released a patch on November 19, 2026 and posted an advisory that same weekend. The notice urges adoption of WP Rocket version 3.24.2 or a later release.
Attackers are actively exploiting the WP Rocket caching plugin flaw CVE-2026-125812 to run arbitrary PHP code on WordPress sites, BleepingComputer reported. Patchstack detected initial small-scale manual attacks on Nov. 25, 2026 at 15:27 UTC. Fully automated attacks followed on Nov. 26, 2026.
The security platform blocked over 25,000 malicious requests from multiple attackers. Patchstack said the blocked requests are evidence that large-scale automated attacks are now underway. Patchstack listed attacker IP addresses that website owners can add to a blocklist.
Versions earlier than 3.24.2 are affected when the LazyLoad for CSS background images setting or the Host Fonts Locally setting is enabled. Both options are inactive by default in WP Rocket. Attackers sometimes target both vulnerable features in one request. The exploit fires if either feature is active on the site.
Poor validation of information sent to a public endpoint causes CVE-2026-125812. That weakness lets unauthenticated attackers write and run PHP code fetched from an outside source. The attackers do not need authentication to exploit the flaw.
Malicious payloads sit on bare IP addresses. Attackers also use nip.io wildcard DNS names. They use trycloudflare.com temporary tunnels. They use other hacked WordPress sites.
WP Media issued the patch on Nov. 19, 2026. It posted an advisory that same weekend. The advisory urges adoption of WP Rocket version 3.24.2 or a later release. The patch addresses CVE-2026-125812.
More than 5.6 million sites run the plugin, WP Media said. It serves 394,000 customers. WP Media also provided a helper plugin for administrators managing multiple websites. The helper plugin reduces exploitation risk across them all.

“Attackers use both feature paths, sometimes in one request, so that whichever feature a site has enabled, one of them fires,” Patchstack said. When an update is not possible right now, administrators should disable LazyLoad for CSS background images and Self-host Google Fonts. They should go to WP Rocket, then Page Optimization, then Image & Media. The Media tab contains both settings.
Site administrators who ran a vulnerable version with either option enabled should check logs for unusual requests and external connections. A patched WP Rocket version does not remove files attackers may have already planted.
WP Rocket is a paid WordPress plugin. It boosts site performance using page caching, CSS optimization, and lazy-loading images. The fix is available as WP Rocket 3.24.2. Until administrators can apply it, disabling the two affected settings and reviewing server logs are the recommended mitigations.

Join the discussion