Cybersecurity

WP Rocket Flaw Under Attack: Update WordPress Now

Affix Center · · 5 min read

Red padlock resting on a black computer keyboard

In short: Attackers are exploiting a critical flaw in WP Rocket, a popular WordPress caching plugin, that can let them run their own code on a website without logging in. It is tracked as CVE-2026-125812 and is fixed in version 3.24.2. Sites that use WP Rocket should update now and check for planted files.

What Happened

On 27 November 2026, WordPress security firm Patchstack published an analysis of CVE-2026-125812, a critical vulnerability in the WP Rocket plugin rated 9.8 on the CVSS scale. According to Patchstack's report, the flaw allows unauthenticated remote code execution, which means an attacker does not need any account on the site to exploit it.

Patchstack says the first exploitation attempt it recorded was on 25 November 2026 at 15:27 UTC. The Hacker News reported on 1 December 2026 that Patchstack blocked tens of thousands of attempts on 26 November alone and described the activity as large-scale and automated. The same report says Wordfence blocked 135 attacks targeting the flaw in a 24-hour period.

WP Rocket is widely used to speed up WordPress websites. The Hacker News, citing WP Rocket's own website, says the plugin is used on more than 5.5 million sites.

Who Is Affected

According to Patchstack, the flaw affects WP Rocket versions before 3.24.2, but only on sites where at least one of these two features is turned on:

  • LazyLoad for CSS background images
  • Host Fonts Locally

Both features are off by default. Many site owners and agencies turn them on to improve page speed scores, so do not assume your site is safe without checking the settings. The Hacker News reports that version 3.24.2, which fixes the issue, was released on 19 November 2026.

In simple terms, WP Rocket uses a small script in the visitor's browser to measure pages and send results back to the site. Patchstack found that the plugin did not check those reports strictly enough, so an attacker could make the site download attacker-controlled content and save it as a PHP file that can then be run on the server.

What It Means for Indian Businesses

A large number of Indian company websites, online stores, schools, hospitals and agency-built sites run on WordPress, often with caching plugins added for speed. If an attacker runs code on your web server, they can deface pages, insert spam or malicious redirects, steal form submissions and customer data, or use the server to attack others. For a business, that means lost leads, damage to search rankings and trust, and possible reporting duties.

Two points matter most. First, updating the plugin stops new attacks but, as Patchstack notes, it does not remove files an attacker has already planted. Second, the exploitation started within days of the fix, so sites that update only once a month were exposed. If your website is managed by an outside agency, ask them today whether WP Rocket is installed and which version is running.

If your organisation finds signs of compromise, check your obligations under CERT-In's directions on reporting cyber incidents, which our CERT-In 6-hour reporting checklist explains, and confirm the details with your adviser.

What to Do Now

  1. Check if WP Rocket is installed: log in to WordPress, open Plugins and look for WP Rocket on every website your company or agency runs, including old microsites and campaign pages.
  2. Update to version 3.24.2 or later: update the plugin immediately on every site, after taking a backup of files and database.
  3. Turn off the two risky features if you cannot update today: disable LazyLoad for CSS background images and Host Fonts Locally in WP Rocket settings until the update is done, as Patchstack advises.
  4. Look for planted PHP files: check wp-content/wp-rocket-config/, wp-content/uploads/ and wp-content/ for unexpected PHP files, such as files named wp-media-*.php.
  5. Review web server logs: look for POST requests to /wp-admin/admin-ajax.php with action=rocket_beacon from clients that never loaded the page, and for outbound connections from the server to unfamiliar hosts, nip.io names or trycloudflare.com tunnels.
  6. Clean up and reset if you find anything: remove planted files, restore from a known clean backup if needed, change WordPress admin, hosting, database and FTP passwords, and check for new admin users.
  7. Put ongoing protection in place: enable automatic or weekly plugin updates, add a web application firewall and schedule regular security testing.

A web application firewall can block many attacks of this kind while you patch; our guide on web application firewalls for websites explains how it works and where its limits are. For a wider routine, see website maintenance services.

Frequently Asked Questions

Is my site at risk if I use WP Rocket with default settings?

According to Patchstack, the flaw is only exploitable when LazyLoad for CSS background images or Host Fonts Locally is turned on, and both are off by default. You should still update to 3.24.2 or later, because settings are often changed during speed tuning.

Does updating the plugin remove an existing infection?

No. Patchstack says the update stops new attacks but does not remove files that were already planted. Check the folders listed above and review logs from before the update.

Do we need to report this to CERT-In?

Having a vulnerable plugin is not the same as an incident. If you find evidence that your site was compromised, review CERT-In's reporting directions with your adviser to decide what applies to your organisation.

How Affix Center Can Help

Affix Center helps Indian businesses keep WordPress and custom websites patched, monitored and secure. Our VAPT services in Mumbai test websites for flaws like this one before attackers find them, and our team works as a web development company in Mumbai that can audit plugins, clean compromised sites and set up safe update routines.

If you are not sure whether your website runs WP Rocket or has already been hit, contact Affix Center for a quick check.