Osegi
Security·2 min read

WP Rocket vulnerability: update now, hackers are already attacking

A critical WP Rocket flaw lets attackers run code on WordPress sites without logging in, and automated attacks have started. Version 3.24.2 fixes it.

A WordPress dashboard plugins page showing a WP Rocket update notice with a red security warning icon.
Image: البوابة التقنية

If your WordPress site runs WP Rocket, check the version number today. The company behind the caching plugin, WP Media, is urging site owners to install an emergency security update after researchers spotted automated attempts to exploit a WP Rocket vulnerability that allows remote code execution without any login.

The flaw is tracked as CVE-2026-125812. According to the company's security advisory, updated on 27 November, it affects versions 3.15 through 3.24.1, but only when one or both of two features are switched on: lazy loading of CSS background images, or self-hosting of Google Fonts.

WP Media fixed the problem in version 3.24.2 on 19 November. Security firm Patchstack says it saw the first exploitation attempt on 25 November, and attacker activity has grown since.

How to protect a WordPress site from the WP Rocket flaw

Open the Plugins section of your WordPress dashboard, install the available WP Rocket update, and confirm the version reads 3.24.2 or newer.

If your licence has expired or you can't update, the company suggests a stopgap. In WP Rocket's settings for page, image and media optimisation (the Media tab in versions older than 3.24), turn off both of these options:

  • LazyLoad for CSS background images
  • Self-host Google Fonts

Save the settings, check that both are really off on every affected site, and leave them off until you install the patched version. The company also offers a helper tool in its advisory for applying this across several sites.

What if my site was already running a vulnerable version?

Patching is not the end of it. If you ran a vulnerable version with either feature enabled, the company recommends asking your host or security team to look for signs of compromise. That means reviewing server logs and hunting for unfamiliar files and user accounts.

The reason is simple. The update blocks new attacks through the known routes, but it doesn't remove malicious files or accounts an attacker may have created before you installed it.

Apps worth a look

SUMO: the number puzzle

Tap the right tiles, add them up, hit the target. Easy to learn, hard to master. Free, for all ages.

Tags:wp rocketwordpressvulnerabilitypatchstackremote code executionwp media

More from this day

See all →

More in: Security

See all →