Security

Attackers Are Exploiting a Critical WP Rocket Flaw — No Login Needed to Run Code on Affected Sites

A critical flaw in WP Rocket — the caching plugin that speeds up more than 5.5 million WordPress sites — lets anyone run code on an affected site with no login, when either of two common speed settings is switched on. Patchstack says the attacks began on November 25, 2026 and turned automated within a day; WP Rocket shipped the fix, version 3.24.2, on November 19 — before the first attack. Who is exposed, the signs someone already got in, and the game plan.

A laptop on a desk in a dark room, its screen filled with blurred lines of code under an orange-red glow
Hero image generated for Auraspace News

On November 27, 2026, Patchstack — the WordPress security firm whose firewall sits in front of a large share of WordPress sites — reported that a critical vulnerability in WP Rocket is being exploited in the wild. WP Rocket is a paid caching plugin: it speeds up WordPress sites, and Patchstack puts its install base at more than 5.5 million sites. The flaw, tracked as CVE-2026-125812 and rated 9.8 out of 10 — critical — lets an attacker with no account and no password write and execute PHP code on an affected site: in plain terms, run their own programs on someone else's web server. It is not open on every WP Rocket site. Two conditions have to line up: the site runs a version older than 3.24.2, and one of two speed features is switched on — LazyLoad for CSS background images, or the setting that hosts Google Fonts locally (the vendor calls it Self-host Google Fonts; Patchstack calls it Host Fonts Locally). Both features are off by default. Both are also exactly the kind of setting a performance-tuned site turns on.

How the attack works

WP Rocket runs a small script in each visitor's browser that measures the page and reports the results back to the site, to a public endpoint — a POST to /wp-admin/admin-ajax.php with the action rocket_beacon. WP Rocket then uses the reported URLs to optimize the page. Patchstack's account of the flaw is that those reports are not validated strictly enough: a crafted report can make the site download content from a server the attacker controls and save it as a PHP file, and that file then runs on the server. Attackers are using both feature paths — sometimes in a single request, so whichever feature a site has enabled, one of them fires — and hosting their payloads on bare IP addresses, wildcard DNS names such as nip.io, temporary trycloudflare.com tunnels, and other WordPress sites that are likely already compromised.

The first attempt Patchstack saw came on November 25, 2026, at 15:27 UTC, and it was manual work: one attacker testing a payload against a few sites, then retrying with encoded variants when the first attempt was blocked. Within a day the activity had turned into automated campaigns — tens of thousands of blocked attempts on November 26 alone — run by several independent operators. Since November 25, the ten most active addresses account for roughly half of all blocked attempts; one cluster sent byte-identical requests from four residential IP addresses, the signature of a rotating proxy pool. Patchstack's own customers were covered before the attacks began: its RapidMitigate rule for this CVE was live more than two days before the first attempt arrived.

Who is exposed — and the fix that already exists

WP Rocket's vendor advisory narrows the affected range to versions 3.15 through 3.24.1, with one of the two features enabled; Patchstack describes the affected set as every version before 3.24.2 with either feature on. The fix is version 3.24.2, which WP Rocket released on November 19, 2026 — six days before the first attack Patchstack observed. For a site with an active licence, the fix is the ordinary one: Plugins, WP Rocket, Update now, and confirm the installed version reads 3.24.2 or later. The vendor also wrote the path for sites that cannot update yet — an expired licence is the common case. In WP Rocket's settings (Page Optimization, then Image & Media; on versions before 3.24, the Media tab), turn off both LazyLoad for CSS background images and Self-host Google Fonts, save, and confirm both are off on each site; the vendor says turning off both mitigates the documented attack paths immediately, and they stay off until 3.24.2 or later is installed. Agencies and hosts managing many sites get a vendor-built helper plugin that applies the same workaround in bulk, deployable with WP-CLI; on multisite it is activated on each affected subsite.

Updating is not the same as cleaning

Both sources are explicit on the point site owners most often miss: the update stops new attacks, but it does not remove files an attacker already planted. If either feature was switched on while a site ran a vulnerable version, the vendor's instruction is to have the hosting provider or a security team check for signs of compromise — files or accounts an attacker created need a separate investigation. Patchstack names the signs to look for: rocket_beacon requests from clients that never loaded the page they report on, or that report full URLs where WP Rocket expects bare domains; outbound connections from the web server to unfamiliar hosts, nip.io names or trycloudflare.com tunnels; and unexpected PHP files in wp-content/wp-rocket-config/, wp-content/uploads/ or wp-content/ itself — wp-media-*.php is the example it gives. A site that was never exposed to the vulnerable combination has none of this to do.

What it means for your business

WordPress runs a large share of small-business websites, and WP Rocket is one of its most common paid plugins — the sites exposed here are ordinary business sites whose owners paid for speed. The exposure test is specific, which cuts both ways: a site is not at risk because it runs WordPress, or even because it runs WP Rocket. It is at risk if WP Rocket is older than 3.24.2 and one of two settings is on — and nothing on the site's front end tells a visitor, or an owner glancing at the dashboard, whether that is true. That is a five-minute check in the WordPress admin, or one question to whoever maintains the site. The other half of the story is timing: the patch existed before the attacks did. The sites being hit this week are the ones where a November 19 update sat unapplied — the recurring shape of plugin incidents, and the reason the game plan below starts with the version number.

Sources

  1. Patchstack — "Critical WP Rocket RCE (CVE-2026-125812) Under Active Attack" (November 27, 2026) — read first-hand: the CVE and its CVSS 9.8 critical rating; unauthenticated write-and-execute of PHP code; affected versions before 3.24.2 with LazyLoad for CSS background images or Host Fonts Locally enabled; the 5.5M+ install base; the rocket_beacon measurement-endpoint mechanism (POST /wp-admin/admin-ajax.php, action=rocket_beacon); first exploitation attempt November 25, 2026 at 15:27 UTC and the shift within a day to automated campaigns with tens of thousands of blocked attempts on November 26 alone; the ten most active addresses accounting for roughly half of all blocked attempts since November 25; payload hosting on bare IP addresses, nip.io names, trycloudflare.com tunnels and likely-compromised WordPress sites; the three detection signs (anomalous rocket_beacon requests, outbound connections to unfamiliar hosts, unexpected PHP files such as wp-media-*.php); the RapidMitigate rule live more than two days before the first attack; and the warning that the update stops new attacks but does not remove planted files.
  2. WP Rocket (WP Media) — "WP Rocket security advisory and mitigation steps for CVE-2026-125812" — read first-hand: the affected range, versions 3.15 through 3.24.1 with LazyLoad for CSS background images or Self-host Google Fonts enabled; arbitrary code execution without authentication under those conditions; the fix in version 3.24.2, released November 19, 2026; the update path for active licences (Plugins → WP Rocket → Update now, confirm 3.24.2 or later); the mitigation for sites that cannot update — both settings off in Page Optimization → Image & Media (Media tab before 3.24), confirmed off on each site and kept off until 3.24.2 or later is installed; the mitigation helper plugin for multi-site operators, deployable with WP-CLI and activated per subsite on multisite; and the instruction that previously exposed sites ask their hosting provider or security team to check for signs of compromise, since files or accounts an attacker created require separate investigation.

Not sure what this means for your website?

Run our free Website Health Check — it checks the things that quietly cost local businesses customers, from your Google profile to your contact forms.

Run the free Health Check →

More from the newsroom