2 min Security

Hackers exploit critical vulnerability in WordPress plugin WP Rocket

Hackers exploit critical vulnerability in WordPress plugin WP Rocket

Hackers are actively exploiting a critical security vulnerability, registered as CVE-2026-125812, in the WP Rocket caching plugin. The vulnerability allows attackers to execute arbitrary PHP code on WordPress websites.

This was reported by BleepingComputer. WP Rocket is a paid WordPress plugin that improves website performance through page caching, CSS optimization, and lazy-loading images. According to WP Media, the plugin’s developer, WP Rocket is used on more than 5.6 million websites.

WP Media released a security update for the vulnerability on November 19. Last weekend, the company issued a warning. Users are urged to upgrade to version 3.24.2 or later.

The vulnerability stems from insufficient validation of data sent to a publicly accessible endpoint. This allows unauthenticated attackers to store and execute PHP code from an external source on the server.

Fully automated attacks

The WordPress security firm Patchstack observed the first small-scale exploitation attempts on November 25. The following day, the activity escalated into fully automated attacks.

The vulnerability affects WP Rocket versions prior to 3.24.2, provided that the “LazyLoad for CSS background images” or “Host Fonts Locally” options are enabled. Both options are disabled by default.

Users who are currently unable to install the latest version of WP Rocket are advised to disable the “LazyLoad for CSS background images” and “Host Fonts Locally” features. This can be done via WP Rocket > Page Optimization > Image & Media > “Media” tab. The vendor also shared a helper plugin to help administrators of multiple websites mitigate the risk of exploitation across all their sites.

Updating to a secure version does not remove files attackers previously placed. Website administrators using the vulnerable version with at least one of the two options enabled should therefore check their logs for suspicious requests and outbound connections.

Patchstack warns that large-scale, automated attacks are already underway. The company’s security platform has already blocked more than 25,000 malicious requests from various attackers.