WP Rocket flaw used to break into sites

WP Rocket (WordPress)

Attackers are exploiting a critical flaw (CVE-2026-125812) in WP Rocket, a paid WordPress caching plugin its developer says runs on more than 5.6 million sites, that lets unauthenticated attackers write and run PHP code fetched from elsewhere. Sites are exposed when the LazyLoad for CSS background images or Host Fonts Locally options are turned on. WordPress security firm Patchstack saw manual attempts begin on November 25 and fully automated attacks the next day, blocking more than 25,000 malicious requests. WP Media fixed the bug in version 3.24.2 on November 19, but updating doesn’t remove files already planted.

The bug, tracked as CVE-2026-125812, comes from weak checks on data sent to a public endpoint in WP Rocket, BleepingComputer reported. An attacker with no account can make a site download PHP code from an outside server and run it. Versions before 3.24.2 are vulnerable, but only when the LazyLoad for CSS background images or Host Fonts Locally option is on. Both are off by default.

Developer WP Media shipped fixes on November 19 and later posted an advisory urging users to upgrade. WP Media says the paid plugin is used on more than 5.6 million sites by 394,000 customers.

Patchstack logged the first manual exploitation attempts at 15:27 UTC on November 25, and attacks turned fully automated the next day. Attackers hit both features in the same request so the exploit works if either is enabled. Patchstack said it blocked more than 25,000 malicious requests from several attackers.

Site owners who cannot upgrade can switch off the two features, per the advisory. BleepingComputer said upgrading does not remove files already planted, so administrators who ran an exposed setup should check logs for suspicious requests and outbound connections.

Summary of published news reports, linked above. WP Rocket (WordPress) has no connection to Loop Data.