Table of Contents
A critical WP Rocket vulnerability, tracked as CVE-2026-125812, is under active attack, according to a Patchstack report. The flaw allows unauthenticated remote code execution, which means an outsider can run code on a site without logging in. It carries a CVSS score of 9.8.
The most important detail is that the vulnerable code only runs on sites with certain options switched on. Patchstack says the issue affects WP Rocket versions before 3.24.2 when “LazyLoad for CSS background images” or “Host Fonts Locally” is enabled. Both options are off by default. Patchstack recorded its first attack attempt on November 25, 2026, and tens of thousands of blocked attempts on November 26 alone.
WordPress administrators, agencies and hosting providers that manage sites with this caching plugin should pay attention. Updating stops new attacks but does not remove files an attacker has already planted, so a review of the site is also needed.
WP Rocket vulnerability: Key Takeaway
- The WP Rocket vulnerability CVE-2026-125812 is being exploited at scale, so update to 3.24.2 or later and check your site for planted PHP files.
Find outdated software before attackers do. Tenable offers vulnerability management, which helps teams track exposed and unpatched software across their systems.
Keep a clean copy to restore from. IDrive provides cloud backup, which helps with recovering a site or server after a compromise.
What Happened: Attacks Follow a Plugin Fix
WP Rocket is a widely used WordPress performance plugin. According to the vendor’s press page, it serves more than 5.5 million websites. Neither source says how many of those sites run a vulnerable configuration.
Timeline
- November 19, 2026: WP Rocket released version 3.24.2. Its changelog lists one security item for this release, described as improved validation of cached CSS, font and preconnect files. The entry does not name a CVE or mention exploitation.
- November 25, 2026: Patchstack observed the first attack attempt at 15:27 UTC. The first attacker appeared to test by hand.
- November 26, 2026: Automated campaigns followed, with tens of thousands of blocked attempts in one day.
- November 27, 2026: Patchstack published its report.
According to The Hacker News, Wordfence also reported blocking 135 attacks in a 24 hour period. That figure comes from the news report, and the Wordfence advisory could not be read when this article was prepared.
Technical details
A script in the visitor’s browser sends page measurements to a public AJAX endpoint on the site. AJAX is the mechanism WordPress uses for background requests. Patchstack says the plugin does not validate the reported URLs strictly enough. A crafted report can make the server download attacker controlled content and save it as a PHP file, which the attacker can then run.
WP Rocket Vulnerability Details: Exposure and Indicators
Patchstack lists these facts about CVE-2026-125812:
- Severity: CVSS 9.8, critical, no authentication required.
- Affected versions: all WP Rocket versions before 3.24.2.
- Vulnerable settings: “LazyLoad for CSS background images” or “Host Fonts Locally” enabled.
- Fixed version: 3.24.2.
- Attack volume: the ten most active IP addresses accounted for roughly half of all blocked attempts since November 25. The top address, 103.235.74.71, made 5,352 blocked requests.
Patchstack also lists signs of an attack, called indicators of compromise:
- POST requests to /wp-admin/admin-ajax.php with the body action=rocket_beacon, especially from clients that never loaded the reported page.
- Payloads hosted on bare IP addresses, nip.io wildcard DNS names, temporary trycloudflare.com tunnels or other compromised WordPress sites.
- Unexpected files named wp-media-*.php in wp-content/wp-rocket-config/, wp-content/uploads/ or wp-content/.
- Identical requests from several residential IP addresses, which suggests a rotating proxy pool.
Who Is Affected
Any WordPress site running WP Rocket before 3.24.2 with either of the two options enabled is exposed. Sites with both options off do not match the vulnerable condition described by Patchstack. Because the options are off by default, the number of exposed sites is likely smaller than the plugin’s total install base, but no source gives a figure.
Steps Administrators Can Take
These steps come from Patchstack’s report:
- Update WP Rocket to version 3.24.2 or later.
- If you cannot update right away, turn off both “LazyLoad for CSS background images” and “Host Fonts Locally”.
- Patchstack customers can use its RapidMitigate rule for this CVE. Patchstack says the rule was live more than two days before the first attack.
- Search the three directories above for wp-media-*.php files and review historical access logs for rocket_beacon requests.
- Remember that updating does not delete files that were already planted.
The following are general hardening ideas, not statements from the sources: keep tested backups, limit who can write to the web root, and alert on new PHP files in upload directories. Our guide on responding to a cyber incident covers what to do if you find a planted file.
Implications
Exploitation moved fast
The first recorded attempt came six days after the fixed version shipped and two days before Patchstack published. Defenders should assume that a quiet changelog entry can be reverse engineered quickly.
Off by default is not a safe default
Both vulnerable features are optional, but many site owners enable performance features. Teams should check their real configuration instead of assuming the default applies.
Patching is only half the job
Because a patch does not remove an uploaded PHP file, sites that were online during the attack window may already be compromised. File integrity checks matter as much as version checks.
Plugin security needs layers
Site owners who run many plugins benefit from a firewall and real time monitoring. Our review of Wordfence Premium looks at one such option.
Add threat detection on top of patching. Bitdefender provides antivirus, threat detection and online privacy software for individuals, businesses and managed service providers.
Looking Forward
Patchstack says the attacks come from rotating infrastructure and are likely to continue while unpatched sites remain online. Administrators should expect further scanning and more variants of the same request pattern.
Several things are still unknown. The sources do not say how many sites were compromised, who is behind the campaign or what the attackers install after gaining access. The WP Rocket changelog does not link its security entry to this CVE, so the vendor’s own position on exploitation has not been published in the material reviewed.
Questions Worth Answering
What is CVE-2026-125812?
- It is a critical unauthenticated remote code execution flaw in the WP Rocket WordPress plugin, with a CVSS score of 9.8.
Which WP Rocket versions are vulnerable?
- Versions before 3.24.2 are affected, but only when “LazyLoad for CSS background images” or “Host Fonts Locally” is enabled.
Is the WP Rocket vulnerability being exploited?
- Yes. Patchstack recorded the first attempt on November 25, 2026, and tens of thousands of blocked attempts on November 26.
How do I fix the WP Rocket vulnerability?
- Update to WP Rocket 3.24.2 or later. If that is not possible, disable both affected options.
Does updating remove an attacker’s files?
- No. Patchstack says the update does not remove files already planted, so you must check the directories yourself.
How can I tell if my site was attacked?
- Look for rocket_beacon requests to admin-ajax.php and for wp-media-*.php files in the WP Rocket config, uploads and wp-content directories.
Are the vulnerable options enabled by default?
- No. Both options are off by default, according to Patchstack.
How many sites use WP Rocket?
- The vendor’s press page claims more than 5.5 million websites. The number of vulnerable sites is not reported.
Who is behind the attacks?
- No source names an attacker. Patchstack describes automated campaigns from many IP addresses.
More tools worth a look: 1Password for logins, Optery for personal data removal and EasyDMARC for spoofed email.