Dev.to Security 🔐 Cybersecurity 👁 0 📖 2 min read

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

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 o

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.

Sources

First published on RescueMySites.

📰 Read the original article on Dev.to Security

Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.