Vulnerabilities and exploitation

Attackers exploit critical WP Rocket flaw to run code on WordPress sites

CVE-2026-125812 lets unauthenticated attackers execute PHP on WordPress sites running WP Rocket before 3.24.2 with either of two optional features enabled.

By Junglewise News DeskPublished 4 min read
Close-up of an illuminated laptop keyboard with keys in sharp focus
Photo by Sam Albury on UnsplashVideo: Junglewise Live

Attackers are actively exploiting a critical flaw in WP Rocket, one of the most widely deployed WordPress caching plugins, to write and run their own PHP code on vulnerable sites. Successful exploitation requires no login, no user interaction and no prior access: a crafted request to a public endpoint is enough to turn a performance plugin into a remote code execution path.

The flaw, tracked as CVE-2026-125812, affects WP Rocket versions before 3.24.2, though only on sites where one of two optional features is switched on. Developer WP Media says the plugin runs on more than 5.6 million sites for 394,000 customers, according to BleepingComputer, so even a minority of sites with those settings enabled amounts to a large target population. Anyone who takes over a WordPress install this way can plant files, create accounts and keep access long after the plugin is updated.

What to do now

  1. Update WP Rocket to version 3.24.2 or later. WP Media released the fix on 19 November 2026 and published an advisory over the following weekend. Confirm the installed version in the WordPress dashboard under Plugins, using Update now.
  2. If you cannot update immediately, turn off both vulnerable features: LazyLoad for CSS background images and Self-host Google Fonts, both found under WP Rocket > Page Optimization > Image & Media > Media tab. Attackers target both feature paths, so disabling only one is not enough.
  3. If your licence has expired, disable both features and leave them off until you can update. WP Rocket says affected customers can contact it for help renewing.
  4. If you manage many sites, use the mitigation helper plugin WP Media published as a downloadable .zip with its code on GitHub. It can be deployed through WP-CLI or existing deployment tooling, and the vendor provides an install command. On WordPress Multisite, install it once and activate it individually on each affected subsite.
  5. Put a web application firewall in front of sites that cannot be patched straight away. The CVE record's mitigation advice is to use Patchstack or a similar web application firewall to block attacks targeting this flaw until the plugin is patched, and Patchstack has published a list of attacker IP addresses worth blocklisting.
  6. Assume a patched site may already be a compromised site. Updating does not remove anything an attacker planted earlier. If a site ran a vulnerable version with either feature enabled, review logs for suspicious requests and unexpected outbound connections, and have your host or an incident responder look the site over for evidence of intrusion. Files or accounts an attacker already created need their own investigation and clean-up.

Technical details

CVE-2026-125812 is a path traversal issue, classified as CWE-22, improper limitation of a pathname to a restricted directory. It is rated critical with a CVSS score of 9.8, reflecting a flaw reachable over the network at low complexity, requiring neither privileges nor user interaction, and fully compromising confidentiality, integrity and availability within a single scope.

The root cause is insufficient validation of data sent to a public endpoint, which lets an unauthenticated attacker write and then execute PHP code fetched from an external source, BleepingComputer reported.

All WP Rocket versions before 3.24.2 are affected, but exploitation depends on configuration. The vendor's advisory states that versions 3.15 through 3.24.1 are vulnerable when at least one of two options is enabled: LazyLoad for CSS background images, or Host Fonts Locally. Both are inactive by default, which limits the blast radius considerably, though neither is an exotic setting for a site tuned for speed.

Patchstack observed the first low-scale, manual exploitation attempts on 25 November 2026 at 15:27 UTC, escalating to fully automated campaigns the next day, BleepingComputer reported. The security firm's platform blocked more than 25,000 malicious requests from multiple attackers during the large-scale automated activity. Patchstack said attackers "use both feature paths, sometimes in one request, so that whichever feature a site has enabled, one of them fires", a detail that makes partial mitigation unreliable.

Payload hosting follows a familiar pattern of disposable infrastructure. According to Patchstack, the payloads sit on bare IP addresses, wildcard DNS names such as nip.io, temporary trycloudflare.com tunnels, and other WordPress sites that are themselves likely compromised. Outbound requests from a web server to any of those destinations are worth treating as suspicious.

WP Rocket's own advisory references Patchstack's report of active automated exploitation attempts and points administrators to Patchstack's detection guidance. It also warns that updating resolves the vulnerability but not its consequences: anything an attacker created before the patch stays where it is.

Timeline so far: WP Media shipped the fixed release, 3.24.2, on 19 November 2026, with the advisory dated 23 November 2026. Exploitation was first seen two days after that, on 25 November 2026, and became automated on 26 November 2026. Vulnerability records compiled on 25 November 2026 still listed no recorded exploitation, having been assembled before the in-the-wild attacks became public.

What is not yet known is how many sites were successfully compromised rather than merely probed, who is behind the campaigns, and what the attackers are doing with the access they gain. No victim organisations have been named.

Share this article

On Junglewise Threat Intelligence

Related stories

Scan your domain free: see what attackers can see from outside, in about 30 seconds.

This article as Markdown. Atom feed.