Skip to content
Brief Security & Trust ·

Attackers exploit critical flaw in WP Rocket WordPress plugin

Patchstack says attacks began November 25 and let outsiders run their own PHP code on affected sites.

In brief
  • Patchstack says attackers are exploiting CVE-2026-125812 in WP Rocket versions before 3.24.2 on sites with LazyLoad for CSS background images or Host Fonts Locally enabled (both off by default).
  • Updating stops new attacks but does not remove files already planted. Sites that ran a vulnerable version should check for them.

Patchstack, a WordPress security firm, said on Friday that attackers are exploiting CVE-2026-125812, a critical flaw in the WP Rocket caching plugin. It lets a stranger with no login make a site save a PHP file and run it. Only versions before 3.24.2 are hit, and only on sites using CSS background lazy loading or local Google Fonts hosting. Patchstack's data shows the first attempt on November 25 at 15:27 UTC.

The plugin runs a script in visitors' browsers that sends page measurements to a public web address. Patchstack says the plugin does not check the addresses in those reports closely enough. A forged report can make the site fetch a file from the attacker's server, store it as PHP, and run it. Several separate groups are attacking, and an update does not remove files already planted. Patchstack has not said how many sites were hit or who is behind it.

Both settings are off by default but common on speed-tuned sites, so optional features in a trusted plugin can widen exposure. Leaders can ask which sites run WP Rocket, which of these settings are on, and who checks for planted PHP files after patching. Patchstack advises updating to 3.24.2 or later, or turning both settings off.

A WebPulse Brief: a short report of an important event, written by the WebPulse Newsroom with AI assistance and checked against the reporting below. When there is more to explain, we follow up with a full story. How we use AI.

Reporting: Patchstack.