WP Rocket < 3.24.2: Attackers Are Already Exploiting the Beacon Endpoint to Run PHP on Your Site (CVE-2026-125812, CVSS 9.8)

Check your own app — free, in about a minute.

The free mini-scan checks your live homepage for TLS/HTTPS basics, response security headers, cookie flags, exposed sensitive files, Firebase/Supabase backend rules, and the WordPress plugin versions your site exposes. You get a score and the finding titles — no account, no card.

Run the free mini-scan →

WP Rocket < 3.24.2: Attackers Are Already Exploiting the Beacon Endpoint to Run PHP on Your Site (CVE-2026-125812, CVSS 9.8)

WP Rocket is the caching plugin on millions of WordPress sites — it makes pages faster, and one of the ways it does that is a small script in visitors' browsers that measures each page and reports the results to a public endpoint. That endpoint takes a URL from the visitor and uses it to optimize the page. It does not validate the URL strictly enough. An attacker can send a crafted report and make the site download content from a server the attacker controls and save it as a PHP file — and then the attacker's code runs on the server. No login required. Patchstack watched the first exploitation attempt on November 25, 2026; by November 26 there were tens of thousands of blocked attempts. This is the one to patch today.

What Happened

CVE-2026-125812 is an unauthenticated remote code execution flaw in WP Rocket, rated CVSS 9.8 (Critical) — CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H. Network-accessible, low complexity, no privileges, no user interaction, full compromise of confidentiality, integrity, and availability. The underlying weakness is CWE-22, a path traversal: the reported URL is not contained to where it should be.

Am I Affected?

Any site running WP Rocket before 3.24.2 with either LazyLoad for CSS background images or Host Fonts Locally enabled. If you run WP Rocket, check the version in wp-admin — the version is not visible from the public site, so this is a check only you can do from inside.

Then check for compromise, because the update stops new attacks but does not remove files an attacker already planted. Patchstack's detection guidance: look for unexpected PHP files in wp-content/wp-rocket-config/, wp-content/uploads/, or directly in wp-content/ — for example files named wp-media-*.php. Look for outbound requests from your web server to unfamiliar hosts, nip.io names, or trycloudflare.com tunnels. And in your access logs, 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.

What To Do Now

  1. Update WP Rocket to version 3.24.2 or later, now. This is an actively exploited unauthenticated RCE in one of the most widely used WordPress plugins — Patchstack's advisory page carries a 5.5M+ figure for the plugin — and the attack volume rose from a first probe to tens of thousands of attempts within a day. Do not wait for the next maintenance window.
  2. If you cannot update right away, turn off both features — LazyLoad for CSS background images and Host Fonts Locally. Either one being on is enough for the attack; turning both off closes the path until the update lands.
  3. Check for planted files. The update stops new attacks; it does not remove files an attacker already planted. Search wp-content/wp-rocket-config/, wp-content/uploads/, and wp-content/ for unexpected PHP files, and review your logs for rocket_beacon requests and outbound connections to unfamiliar hosts. If you find a planted file, treat the site as compromised: remove the file, rotate credentials, and audit admin accounts and uploads.
  4. Review what else the site exposes. A performance-optimization endpoint that takes a URL from the wire is still an endpoint. Inventory your public AJAX actions the way you inventory public pages — anything that fetches a caller-supplied URL is a file-write primitive unless the URL is validated against an allow-list.

The Bigger Lesson

A performance feature is still an attack surface. The beacon endpoint exists to make pages faster: a browser script measures, reports, and the server optimizes. But every public endpoint that accepts a URL from the wire and fetches it is a download primitive, and a download primitive that saves to a web-accessible path with a controllable extension is remote code execution. The fix is not to stop optimizing — it is to validate the reported URL against an allow-list before fetching anything, and to never let a visitor-supplied value choose a filename. When a plugin's job is to make your site faster, the security question is the same as for any other endpoint: who can call it, and what can they make it do?

Related: Confection WordPress Cable 0.4.0–0.4.7: A Settings Value Written Into a PHP File Is Unauthenticated RCE (CVE-2026-115252, CVSS 10.0) — the same class in a different shape: a value from the request written unmodified into a PHP file the plugin serves.

The PreShipIt Brief — a short weekly email for people shipping vibe-coded apps: the week's important vulnerabilities and launch-safety checks, in plain English.

New and free. Double opt-in: we email you a confirmation link before anything else arrives. Unsubscribe any time.

Check your own app — free, in about a minute.

The free mini-scan checks your live homepage for TLS/HTTPS basics, response security headers, cookie flags, exposed sensitive files, Firebase/Supabase backend rules, and the WordPress plugin versions your site exposes. You get a score and the finding titles — no account, no card.

Run the free mini-scan →

← Back home · Run a free mini-scan · Scan my app — $29 · See a sample report