← All posts

WP Rocket CVE-2026-125812: the rocket_beacon RCE and who it reaches

Since 25 November 2026 attackers have hit an unauthenticated RCE in WP Rocket before 3.24.2, via admin-ajax.php action=rocket_beacon. It needs one of two settings on. Most AI-built apps don't run WordPress; the marketing site next to them might.

On 27 November 2026 Patchstack reported active exploitation of CVE-2026-125812, an unauthenticated remote code execution flaw in WP Rocket, the WordPress caching plugin. It affects versions before 3.24.2, which shipped on 19 November 2026. Patchstack's first recorded attempt was on 25 November at 15:27 UTC; on 26 November it blocked tens of thousands of requests, with ten IP addresses behind roughly half of them.

The vector is WP Rocket's measurement beacon. The plugin's front-end script reports back to a public AJAX endpoint, POST /wp-admin/admin-ajax.php with action=rocket_beacon, and the URLs in that report weren't validated strictly enough. Rescana classes it as CWE-22 path traversal: an attacker can get a remote file saved as a .php file inside the web root, then request it. The 3.24.2 changelog only says "Improve validation of cached CSS, font and preconnect files", so it was easy to miss.

It isn't exploitable on every install. Patchstack says the vulnerable path is only reached when LazyLoad for CSS background images or Host Fonts Locally is enabled. Both are off by default, and both are exactly what someone tuning for Core Web Vitals switches on.

Does this reach your app?

If you built your product with Lovable, Bolt, Replit, Cursor or v0 on Supabase or Next.js, the app itself doesn't run WordPress and this flaw doesn't touch it. Where we'd look is next to the app: the marketing site on www, the blog on a subdomain, or a headless WordPress install that feeds content to your Next.js front end. Those are often WordPress, often set up once by someone else, and rarely updated.

The one check for today: list every WordPress install on your domains and check the WP Rocket version under Plugins (or wp plugin list with WP-CLI). Anything below 3.24.2 gets updated now. If you can't update, turn off both settings until you can.

Updating doesn't clean up. Patchstack lists what to look for if an old version ran with either setting on:

  • unexpected PHP files in wp-content/wp-rocket-config/, wp-content/uploads/ or directly in wp-content/, for example wp-media-*.php
  • outbound requests from the server to nip.io names, trycloudflare.com tunnels or bare IP addresses
  • rocket_beacon requests in your access logs from clients that never loaded the page they report on

If the WordPress box shares a database, API keys or a Supabase service key with your app, treat a hit as a compromise of those too, and rotate them.

Quick answers

What is CVE-2026-125812 in WP Rocket?

An unauthenticated remote code execution flaw in the WordPress plugin WP Rocket before 3.24.2, rated CVSS 9.8. Attackers send crafted reports to admin-ajax.php with action=rocket_beacon and get a remote file saved and run as PHP.

Which WP Rocket settings make CVE-2026-125812 exploitable?

Patchstack says a site is only exploitable when "LazyLoad for CSS background images" or "Host Fonts Locally" is enabled. Both are off by default. With both off, an old version is not exploitable through this flaw.

Does the WP Rocket flaw affect a Lovable, Bolt or Next.js app?

Not the app itself, since it doesn't run WordPress. It matters if your marketing site, blog or a headless WordPress backend runs WP Rocket before 3.24.2 with one of the two settings on.

Is your app affected? Get a $199 audit

Not sure whether this touches your app? That is exactly what the audit answers.

  • A recorded video walkthrough of your app, by the person who would fix it
  • Written findings: what is broken or exposed, and why
  • A fixed price for the fix, before any work starts
Book my $199 audit

Book my audit

$199. Fixed price, agreed up front.

Ask a question first

No payment and no obligation, just an answer.