Sunday, November 29, 2026
Patch priority

WP Rocket vulnerability under attack: how do you fix it?

Patchstack saw the first attempt on November 25. Updating closes the hole but leaves behind anything an intruder already wrote to disk.

Computer screens displaying code with neon lighting

The WP Rocket vulnerability CVE-2026-125812 is being exploited, Patchstack reported on November 27. Update every site to version 3.24.2 or later, then look for PHP files an attacker may have left behind. If you can't update yet, switch off two settings: LazyLoad for CSS background images, plus Host Fonts Locally.

Which versions does the WP Rocket vulnerability affect?

Every WP Rocket release below 3.24.2 is affected. Patchstack gives the flaw a CVSS score of 9.8 and says an attacker needs no account to write PHP code to a site and run it. Its attack report ties the risk to sites that have either of those two settings turned on. Both are off by default, though the firm says they're common on sites tuned for speed.

Patchstack puts the plugin on more than 5.5 million installations. That is an install figure, and it doesn't tell you how many sites are still exposed. WP Media, which makes WP Rocket, released 3.24.2 on November 19. A researcher credited as Vorelito reported the bug on November 4. Patchstack's advisory followed on November 23, and the CVE record on November 25.

How are attackers exploiting CVE-2026-125812?

Attackers send forged page reports to a public WordPress endpoint that WP Rocket listens on. A short piece of JavaScript from the plugin measures pages as people view them, then reports home. WP Rocket uses the web addresses in those reports to optimize the page, without checking them strictly enough. A crafted report makes the site fetch a file from the attacker's server and save it as PHP.

The requests arrive as POST calls to /wp-admin/admin-ajax.php with action=rocket_beacon. Patchstack logged the first attempt on November 25 at 15:27 UTC, worked by hand against a few sites. Within a day the work was automated, and the company blocked tens of thousands of attempts on November 26 alone. Some requests try both features at once, so whichever one a site has enabled will fire.

How do you update WP Rocket, and what can block it?

Update from the Plugins page in your WordPress dashboard, where the notice appears under WP Rocket. The plugin needs to be active. If no notice shows, go to Dashboard, then Updates, and select Check Again. ZeroPath, summarizing the vendor's documentation, also describes a manual route: export your settings, download the plugin from your WP Rocket account, deactivate and delete the old copy, upload the new ZIP, activate it and bring your settings back in.

Check the license first. WP Rocket is a paid plugin that isn't in the WordPress.org directory, and an expired license stops updates while the plugin keeps running. ZeroPath also notes that the plugin turns off unattended automatic updates, since caching changes can affect how a site looks. A fixed release can sit unused for both reasons. Confirm the installed version on each site after you update.

How can you tell whether a site was already hit?

Look for PHP files you can't explain in three places: wp-content/wp-rocket-config/, wp-content/uploads/ and the top level of wp-content/. Patchstack gives wp-media-*.php as an example name. Updating stops new attacks, but it doesn't delete files that are already there, so check any site that ran an old version without a blocking rule.

Then read the web server logs. Warning signs are rocket_beacon calls about a page the same client never opened, calls carrying full URLs where the plugin expects bare domain names, and outbound connections from the server to unfamiliar hosts. Attack files have been hosted on bare IP addresses, nip.io names, temporary trycloudflare.com tunnels and other WordPress sites that are probably compromised.

If you find signs of a break-in, ZeroPath relays the vendor's general guidance: turn preloading off and empty the cache, then deactivate the plugin, clean the site and switch WP Rocket back on only after that.

Which addresses has Patchstack blocked most?

The busiest source was 103.235.74.71, on Ikubaru's network in Indonesia, with 5,352 blocked requests. Next came 157.245.122.230 at DigitalOcean with 5,003, and 152.89.170.194 at C1V Hosting in Italy with 3,455. A neighbor of the first address, 103.235.74.72, sent 1,950, while 180.232.236.101 on Eastern Telecom in the Philippines sent 2,288.

Ten addresses in all accounted for roughly half of the attempts Patchstack blocked since November 25. Search your logs for the ones above, and treat a clean result with caution. These five are only part of the top ten, and about half of the blocked attempts came from outside even those ten. Several independent operators are involved. One group sent identical requests from four residential addresses, which Patchstack reads as a sign of a rotating proxy pool.

Do the two feature settings decide whether you're safe?

Don't rely on the settings alone; the version number is the safer test. Patchstack's November 27 report names the two features and offers disabling them as a stopgap. ZeroPath, writing on November 25 after comparing the old and new code, said the public material then available didn't establish which settings an attack needs, and it advised against treating a disabled feature as proof of safety.

Tuskira reported on November 26 that a public proof-of-concept exploit works against version 3.24.1, with font optimization turned on in its author's test lab. It had seen no report of exploitation at that point and noted that CISA's November 25 list of exploited flaws didn't include it. Patchstack's report of live attacks is newer. Treat it as the current picture and patch now. Our guides to the WordPress core update flaw and to checking an Optimizely snippet for infection cover other recent website risks.

What should IT teams do about WP Rocket today?

Update and verify first, then hunt for anything planted before the fix.

  • List every WordPress site you own or pay an agency to run, with its WP Rocket version.
  • Renew expired licenses, or download 3.24.2 or later from the account and install it by hand.
  • Where an update has to wait, turn off LazyLoad for CSS background images, plus Host Fonts Locally. Patchstack customers can also rely on its blocking rule.
  • Search the three folders for unexpected PHP files and review logs back to at least November 19, when the fix shipped.
  • Check outbound traffic from web servers for the hosting patterns listed above.
  • Clean and investigate any site with a hit before you call it fixed.