Critical WP Rocket Flaw Lets Hackers Execute Remote Code on WordPress Sites

Sites running the WP Rocket plugin are under threat due to a severe vulnerability labeled CVE-2026-125812, which allows attackers to run unauthorized PHP code without needing to log in. The issue impacts all WP Rocket versions released before version 3.24.2, which rolled out on November 19, 2026. This plugin, widely used by over 5.5 million WordPress sites and more than 386,000 paid clients, offers performance enhancements like page caching and resource optimization.

What Triggers the Vulnerability

The flaw stems from two optimization options within WP Rocket that many performance-focused sites enable: “LazyLoad for CSS background images” and “Host Fonts Locally.” When either feature is active, a script sent from the visitor’s browser makes measurements and reports them via an AJAX endpoint. Because the plugin doesn’t strictly validate those received URLs, malicious actors can report a URL under their control. The site will then fetch content from that URL and save it as a PHP file, which can later be executed. These results pose serious risks for unauthorized remote code execution.

Exploit Activity & Indicators

The first attempt to exploit this flaw was detected on November 25, 2026. Over the next several days, attacks ramped up dramatically, with tens of thousands of attempts flagged and blocked by security tools by November 26. Wordfence, a well-known WordPress security provider, reported blocking 135 exploit attempts in just 24 hours. The attacks originated from dozens of IP addresses, including but not limited to 103.235.74.71, 157.245.122.230, and 112.78.154.32.

Some of the key signs that a site has been targeted include:

  • Incoming “rocket_beacon” requests from clients that haven’t actually loaded the page they’re reporting on.
  • Outbound server requests to unfamiliar hosts, such as domains using nip.io, temporary trycloudflare.com tunnels, or other potentially compromised WordPress sites.
  • Unexpected PHP files bearing names like “wp-media-*.php” appearing in directories including wp-content/wp-rocket-config/, wp-content/uploads/, or even directly in wp-content/.

While version 3.24.2 addresses the vulnerability, updating immediately does not automatically purge PHP files that may already have been placed by attackers. Site owners who ran older, vulnerable versions should inspect the directories listed above, review server logs for suspicious activity, and remove any unauthorized files.

This issue highlights how performance plugins—designed to speed up sites—can become attack vectors if security isn’t baked in. Many sites turn on LazyLoad or local hosting of fonts to improve user experience, without realizing these features were central to this exploit. Vigilance in plugin settings and prompt updates are crucial defenses.

What to watch for now: new exploits targeting other optimization tools, especially those executing code based on user-supplied data; attacker shifts to less obvious features within plugins; any evidence that attackers are chaining this exploit with others to deepen compromises. Keeping all plugins updated and monitoring file system changes should no longer be optional.