CPI Security
Active attack

WP Rocket critical flaw is being attacked: update to 3.24.2

Published · 2 min read

Key points
  • CVE-2026-125812 is a critical flaw (CVSS 9.8) in WP Rocket that lets an attacker with no login run code on the server.
  • It affects versions before 3.24.2 when LazyLoad for CSS background images or Host Fonts Locally is turned on.
  • Patchstack saw the first attack attempt on November 25, 2026. Update to 3.24.2 or later.

What happened

Patchstack reported on November 27, 2026 that attackers are exploiting a flaw in WP Rocket, a popular caching plugin. The flaw is tracked as CVE-2026-125812 and rated 9.8 out of 10. No account is needed to use it, and a successful attack can write a PHP file on the site and run it.

Who is affected

Sites running WP Rocket before version 3.24.2 that have at least one of two features enabled: LazyLoad for CSS background images, or Host Fonts Locally. Both are off by default, but they are common on sites tuned for speed.

According to Patchstack, the plugin collects page measurements from visitors' browsers and does not check the reported addresses strictly enough. That lets a crafted request make the site fetch a file from a server the attacker controls.

What to do now

  1. Update WP Rocket to 3.24.2 or later. Check the installed version even if your host manages updates.
  2. If you cannot update today, turn off both LazyLoad for CSS background images and Host Fonts Locally until you can.
  3. Take a backup before you change anything, then confirm the site still loads and checks out correctly.

How to check if you were hit

Updating stops new attacks but does not remove files an attacker already placed. Patchstack suggests looking for:

  • Unexpected PHP files in wp-content/wp-rocket-config/, in wp-content/uploads/, or directly in wp-content/ (for example files named like wp-media-*.php).
  • Requests to admin-ajax.php with the action rocket_beacon from clients that never loaded the page they report on.
  • Outbound requests from your server to unfamiliar hosts, including nip.io names and trycloudflare.com tunnels.

If you find a suspicious file, do not just delete it. Keep a copy for review, look for other changes, and change passwords and keys. A site that was exposed for several days deserves a full review.

A note for site owners

Performance plugins run on every page and touch the file system, so they are a valuable target. Keep a short list of the plugins you use, remove the ones you do not need, and check for security updates weekly. This is exactly the kind of review a regular maintenance routine covers.

Sources

Facts checked against the sources on November 28, 2026. This article is general information from public sources. It is not a report about any specific client site.

Need help with something like this?

I do this kind of defensive work: checking sites, applying updates safely and hardening WordPress and WooCommerce. If you want a second pair of eyes on your site, reach me on Mostaql or WhatsApp.

Keep reading