Vulnerability · Breaking

WP Rocket’s page-speed beacon is being used to plant PHP shells: CVE-2026-125812 is under automated attack across a plugin on 5.6M sites

A public AJAX endpoint that collects page measurements from visitors can be fed a URL that WP Rocket downloads and saves as PHP. Attacks went automated Nov 26. Here’s how it works, who’s exposed, and what to hunt for.

Nov 30, 2026 · 3 min read

What’s new. Attackers are exploiting CVE-2026-125812, an unauthenticated remote code execution bug in WP Rocket, the paid WordPress caching plugin from WP Media. Patchstack rates it CVSS 9.8. WP Media says the plugin runs on more than 5.6 million sites for 394,000 customers (per BleepingComputer, Nov 30). The fix, 3.24.2, shipped Nov 19. Patchstack logged the first exploitation attempt on Nov 25 at 15:27 UTC (10:27 AM ET). By Nov 26 it was automated, with tens of thousands of blocked attempts that day alone. Patchstack has now blocked more than 25,000 malicious requests from several separate operators (per Patchstack and BleepingComputer). Sites actually compromised: Undisclosed. Attacker: Undisclosed. It isn’t in CISA KEV as of Nov 30.

How it works. WP Rocket puts a small script in visitors’ browsers that measures each page and reports back to a public endpoint: POST /wp-admin/admin-ajax.php with action=rocket_beacon. The plugin then uses the URLs in that report to optimize the page. It doesn’t validate them strictly enough. A forged report can make the server fetch content from an attacker’s host and save it as a .php file, which then runs (per Patchstack). Only two features take that path: LazyLoad for CSS background images, and Host Fonts Locally (Self-host Google Fonts). Both are off by default. Performance-tuned sites turn them on all the time. WP Rocket says versions 3.15 through 3.24.1 are affected. Attackers send both payloads, sometimes in one request, so whichever feature is on will fire.

Why it matters. This is the bug class to remember: an endpoint built to take telemetry from anonymous browsers ended up feeding a server-side fetch-and-write. Any “beacon” or RUM collector that turns client-reported URLs into server work is an SSRF and file-write surface. Also, WP Rocket is a paid plugin. It updates through a license, so sites with lapsed licenses or agency-built marketing sites nobody owns will lag the fix. Those WordPress boxes often hold CRM form handlers, analytics keys and SSO plugins, and they sit on your brand domain.

What we’d do this morning.

Sources