WP Rocket vulnerability CVE-2026-125812 shown as a cracked rocket over a glowing server rack

WP Rocket Vulnerability CVE-2026-125812: Check, Patch, Detect

Key takeaways

  • CVE-2026-125812 is a CVSS 9.8 flaw in WP Rocket that lets unauthenticated attackers write and execute PHP code, and it is being actively exploited.
  • All versions before 3.24.2 (released November 19, 2026) are affected, but exploitation requires LazyLoad for CSS background images or Host Fonts Locally to be enabled.
  • Updating to 3.24.2 stops new attacks but does not remove files an attacker already planted.
  • Look for unexpected wp-media-*.php files, rocket_beacon requests from clients that never loaded the page, and unusual outbound connections from the server.
  • Sites that ran a vulnerable version without protection should review historical logs, not just patch.

The WP Rocket vulnerability CVE-2026-125812 is a critical flaw (CVSS 9.8) that lets unauthenticated attackers write and execute PHP code on WordPress sites running WP Rocket versions before 3.24.2. According to The Hacker News, attackers are already exploiting it at scale. Update to 3.24.2 or later, then check your server for files an attacker may have left behind.

WP Rocket is a premium caching plugin. Per its website, as cited in the report, it is used on more than 5.5 million WordPress sites and by over 386,000 customers. That reach explains why automated scanning started quickly after the fix shipped.

This guide explains how the flaw works, who is exposed, how to patch, and how to look for compromise.

What is the WP Rocket vulnerability CVE-2026-125812?

CVE-2026-125812 is an unauthenticated remote code execution (RCE) bug. “Unauthenticated” means the attacker needs no account and no login. Patchstack researcher Dave Jong said it “lets unauthenticated attackers write and execute PHP code on affected sites.”

The root cause sits in a small script the plugin runs in visitors’ browsers. The script measures each page and reports results to a public AJAX endpoint, and the plugin then uses that data to optimize the page. Because the plugin does not validate the reported URLs strictly enough, an attacker can send a crafted report that makes the site download content from an attacker-controlled server and save it as a PHP file. The attacker can then request that file to run the code.

Anyone who can write PHP to a web-accessible directory effectively controls the site. That typically means stolen data, injected spam or malware, new admin users, and a foothold for further attacks on the server.

Who is affected?

All WP Rocket versions before 3.24.2 are affected. The fixed version was released on November 19, 2026. Exploitation is not universal, though. Patchstack says the flaw affects sites with either of two options turned on:

  • LazyLoad for CSS background images
  • Host Fonts Locally (local hosting of Google Fonts)

Patchstack notes both are off by default, “but both are common on performance-tuned sites.” Treat that as a reason to check, not a reason to relax. Many site owners enable these settings to improve Core Web Vitals and may not remember doing so.

How are attackers exploiting it?

According to Patchstack, the first exploitation attempt was recorded on November 25, 2026, at 3:27 p.m. UTC, aimed at WP Rocket’s measurement endpoint. By November 26 the activity had grown into large-scale, automated campaigns, with tens of thousands of attempts blocked that day alone. Wordfence said in its own advisory that it blocked 135 attacks in a 24-hour period.

The report lists these source IP addresses:

103.235.74.71 157.245.122.230 152.89.170.194
180.232.236.101 103.235.74.72 201.79.120.217
112.78.154.32 167.71.75.155 43.163.8.253
51.79.199.209

IP lists age quickly because attackers rotate infrastructure. Use them to search your logs, but do not treat a lack of matches as proof you are clean.

How do I check if my site is exposed?

Work through these steps in order:

  1. Find your version. In the WordPress dashboard, open Plugins and read the WP Rocket version number. Anything below 3.24.2 is vulnerable.
  2. Check the risky settings. In WP Rocket’s media and file optimization options, see whether LazyLoad for CSS background images or Host Fonts Locally is enabled. If either is on, you were in the affected configuration.
  3. Note your exposure window. The fix shipped November 19, and exploitation was first seen November 25. A site that ran a vulnerable version after that date without a firewall or virtual patch deserves a full review.

How do I fix it?

Update WP Rocket to version 3.24.2 or later from your dashboard or your WP Rocket account. If you manage many sites, push the update through your management tooling and verify the version afterward rather than assuming it applied.

If you cannot update immediately, temporarily disabling the two affected options reduces exposure, based on Patchstack’s description of the conditions. That is a stopgap inferred from the report, not an official mitigation, so update as soon as you can.

Patching is only half the job. Patchstack warns: “The update stops new attacks, but it does not remove files an attacker already planted.”

How do I detect signs of compromise?

Patchstack shared indicators of compromise (IOCs) that you can check on the server and in logs.

Files to look for

Search for unexpected PHP files named *wp-media-.php in these directories:

  • wp-content/wp-rocket-config/
  • wp-content/uploads/
  • wp-content/

PHP files in the uploads folder are a red flag on most sites, since it should normally hold media. Do not just delete what you find. Copy it somewhere safe for analysis first, and note its timestamp.

Log and network signals

  • rocket_beacon requests from clients that never loaded the page they report on.
  • Outbound requests from the web server to unfamiliar hosts, nip.io domains, temporary trycloudflare.com tunnels, or other possibly compromised WordPress sites.
  • Requests from the IP addresses listed above.

Review historical access logs back to at least November 19, and ideally further if you have them. The outbound connections are worth special attention because they show the server fetching attacker content.

If you find something

Assume the site is compromised. Take it offline or restrict access, restore from a clean backup taken before the exposure window, update everything, and rotate all credentials, including WordPress admin passwords, database passwords, and API keys stored in wp-config.php. Then audit admin users and scheduled tasks for anything you did not create. This response guidance is general best practice rather than something stated in the source.

What does this mean for WordPress security more broadly?

This is a familiar pattern: a popular plugin, a feature that handles untrusted input from the public web, and weaponization within about a week of a patch. The vulnerable endpoint is meant to be public, so a login wall could not have protected it. That is why input validation on any public endpoint matters so much.

For site owners, the practical lessons are to keep plugin inventories current, turn on auto-updates for critical plugins where your testing process allows it, and use a web application firewall or virtual patching service. File integrity monitoring that alerts on new PHP files in uploads would have flagged this attack quickly.

Timely patching is a recurring theme across platforms. For comparison, see our coverage of the MOVEit Automation authentication bypass and the cPanel and WHM authentication bypass, which matters if your WordPress sites run on cPanel hosting. You can also review our guide to prioritizing critical fixes during Patch Tuesday for a triage approach. For background on the vulnerability class, see the OWASP resources on injection and file upload risks, and CISA for general remediation guidance. The WordPress.org site hosts official hardening documentation.

The Bottom Line

The WP Rocket vulnerability CVE-2026-125812 is serious, actively exploited, and easy to automate. Update to WP Rocket 3.24.2 today, then spend an extra twenty minutes searching for wp-media-*.php files, rocket_beacon requests, and odd outbound connections. If you find anything, treat the site as breached and restore from a clean backup.

Frequently Asked Questions

What is CVE-2026-125812?

CVE-2026-125812 is a critical (CVSS 9.8) vulnerability in the WP Rocket WordPress caching plugin. It allows unauthenticated attackers to write and execute PHP code on affected sites. It affects all versions before 3.24.2.

Which WP Rocket version fixes the vulnerability?

WP Rocket 3.24.2, released on November 19, 2026, fixes the flaw. Any earlier version is vulnerable, so update to 3.24.2 or newer and confirm the version number in your WordPress dashboard.

Is my site vulnerable if I use default WP Rocket settings?

According to Patchstack, exploitation requires LazyLoad for CSS background images or Host Fonts Locally to be enabled, and both are off by default. Many performance-tuned sites turn them on, so check your settings and update regardless.

Does updating WP Rocket remove a hacker's backdoor?

No. Patchstack states the update stops new attacks but does not remove files an attacker already planted. You need to inspect your directories for unexpected PHP files and review historical logs.

What files should I look for after a WP Rocket compromise?

Look for unexpected PHP files named wp-media-*.php in wp-content/wp-rocket-config/, wp-content/uploads/, and wp-content/. Also check logs for rocket_beacon requests from clients that never loaded the page and for outbound requests to nip.io or trycloudflare.com hosts.

Is the WP Rocket flaw being exploited in the wild?

Yes. Patchstack recorded the first attempt on November 25, 2026, and reported tens of thousands of blocked attempts on November 26. Wordfence also reported blocking 135 attacks in a 24-hour period.

Sources

Enjoyed this? Subscribe to the InnoVirtuoso newsletter for practical AI, security and tech insights — and share your thoughts in the comments.

Browse InnoVirtuoso for more!