Dev.to Security 🔐 Cybersecurity 👁 0 📖 2 min read

Critical WP Rocket Flaw Under Active Attack: 25,000+ Malicious Requests Blocked. Patch to 3.24.2 Now.

Hackers are actively exploiting a critical vulnerability in WP Rocket — a caching plugin installed on more than 5.6 million WordPress sites — that lets unauthenticated attackers execute arbitrary PHP code. Automated atta

Hackers are actively exploiting a critical vulnerability in WP Rocket — a caching plugin installed on more than 5.6 million WordPress sites — that lets unauthenticated attackers execute arbitrary PHP code. Automated attack campaigns are already running, and Patchstack has blocked over 25,000 malicious requests (BleepingComputer, Nov 30). If your site or your clients' sites run WP Rocket, this is a today-task, not a this-week task.

The vulnerability in plain terms

CVE-2026-125812 is caused by insufficient validation of data sent to a public endpoint, allowing unauthenticated attackers to write and run PHP code downloaded from an external source. In practice: a stranger on the internet can place and execute their own code on your server — full site takeover territory.

Who is affected

The flaw impacts WP Rocket versions before 3.24.2, but only when either "LazyLoad for CSS background images" or "Host Fonts Locally" is enabled. Both options are inactive by default — so many installs are safe by configuration. WP Media, the developer, reports the plugin runs on more than 5.6 million sites used by 394,000 customers. Attackers probe both feature paths, sometimes in a single request, so whichever one a site has enabled, the exploit fires (Patchstack).

The attack timeline

WP Media released the fix on November 19 and published an advisory urging users to upgrade to version 3.24.2 or later. Patchstack observed the first low-scale manual exploitation attempts on November 25, escalating to fully automated campaigns the next day. Payloads are hosted on bare IP addresses, wildcard DNS names like nip.io, temporary trycloudflare.com tunnels, and previously compromised WordPress sites.

What to do right now

  1. Update WP Rocket to 3.24.2 or later on every site you manage. 2. If you cannot update immediately, disable both "LazyLoad for CSS background images" and "Self-host Google Fonts" (WP Rocket > Page Optimization > Image & Media > Media tab). 3. WP Media published a helper plugin to mitigate risk across many sites at once — useful for agencies. 4. Blocklist the attacker IP addresses Patchstack published.

After patching: check for compromise

Updating does not remove files an attacker may already have planted. If your site ran a vulnerable version with either option enabled, review your logs for suspicious requests and outbound connections, scan the filesystem for unexpected PHP files, and rotate credentials. Treat "we patched" and "we are clean" as two separate questions.

Bottom line

A five-minute update today is cheaper than an incident response tomorrow. At Manadger Tech we maintain and secure WordPress and e-commerce sites for businesses that cannot afford downtime — get in touch if you want your stack audited.

Sources

📰 Read the original article on Dev.to Security

Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.