SAASMENT

News

Attackers are writing PHP onto WordPress sites through a WP Rocket cache bug (CVE-2026-125812).

CVE-2026-125812 lets an unauthenticated attacker save and run PHP on WordPress sites that still run WP Rocket before 3.24.2 with CSS-background lazy load or local Google Fonts turned on, and exploitation attempts were recorded starting November 25.

Illustration of a charcoal window with a lime page, a charcoal folder with a pink file sliding in, and a charcoal double triangle beside a lime circle

Impact

What was impacted
CVE-2026-125812, scored 9.8 on CVSS, in the WP Rocket caching plugin for WordPress, in every version before 3.24.2. That release came out on November 19, 2026. A script in the visitor's browser measures the page and reports the results to a public AJAX endpoint. The plugin does not check those reported URLs strictly enough, so an attacker can make the site download content from a server they control and save it as a PHP file. Patchstack says this works when LazyLoad for CSS background images or Host Fonts Locally is turned on. Both features are off by default. The vendor's site says the plugin is used by more than 5.5 million WordPress sites and more than 386,000 customers.
Who was impacted
Anyone running WP Rocket before 3.24.2, especially where CSS-background lazy loading or local hosting of Google Fonts is enabled. Patchstack says both features are common on sites tuned for performance.
What you need to do
Update WP Rocket to 3.24.2 or newer. The update stops new attacks and does not remove files already planted. If the site ran a version before 3.24.2, look for unexpected PHP files named wp-media-*.php in wp-content/wp-rocket-config/, wp-content/uploads/, and wp-content/. Review logs for rocket_beacon requests from clients that never loaded the page they report on, and for outbound requests to unfamiliar hosts, nip.io domains, temporary trycloudflare.com tunnels, or other WordPress sites. Patchstack recorded the first attempt on November 25, 2026, at 3:27 p.m. UTC, against the measurement endpoint, and said tens of thousands of attempts were blocked on November 26, 2026. Wordfence said it blocked 135 attacks in the 24 hours covered by its advisory.

Attackers are exploiting a newly patched critical flaw in WP Rocket, the WordPress caching plugin. CVE-2026-125812 is scored 9.8 and affects every version before 3.24.2, released on November 19, 2026. The vendor's site says the plugin is used by more than 5.5 million WordPress sites and more than 386,000 customers.

Patchstack researcher Dave Jong said the bug lets an unauthenticated attacker write and execute PHP on sites running a version before 3.24.2 when either LazyLoad for CSS background images or Host Fonts Locally is turned on. A small script in the visitor's browser measures the page and posts the results to a public AJAX endpoint so the plugin can optimize it. The plugin does not validate the reported URLs strictly enough. A crafted report can make the site download content from an attacker-controlled server and save it as a PHP file that can then be run. Patchstack says the two features that can be abused are CSS background lazy loading and local hosting of Google Fonts. Both are off by default, and both are common on performance-tuned sites.

The first exploitation attempt Patchstack recorded was on November 25, 2026, at 3:27 p.m. UTC, aimed at WP Rocket's measurement endpoint. The activity then became large-scale and automated. Patchstack said tens of thousands of attempts were blocked on November 26, 2026, alone. It listed these source 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, and 51.79.199.209. Wordfence said in its own advisory that it had blocked 135 attacks against this flaw in the previous 24 hours.

Patchstack's indicators are 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 WordPress sites, and unexpected PHP files named wp-media-*.php under wp-content/wp-rocket-config/, wp-content/uploads/, or wp-content/. Installing 3.24.2 stops new attacks. It does not delete files an attacker already planted. A site that ran an older version without protection should check those directories and its historical logs.

For your AI agent

Agent instructions — copy paste to Claude

You are helping me respond to CVE-2026-125812 in the WP Rocket WordPress plugin. Unauthenticated attackers are sending crafted measurement reports that can make a vulnerable site save and run PHP. Do not send a measurement report. Do not upload a PHP file. Do not write a proof of concept. Do not request the AJAX endpoint. Ask before you update the plugin, delete a file, block an address, or take a site offline.

Facts from the report:
- CVE-2026-125812 is scored 9.8 on CVSS. It affects every WP Rocket version before 3.24.2. Version 3.24.2 was released on November 19, 2026. The vendor's site says the plugin is used by more than 5.5 million WordPress sites and more than 386,000 customers. Do not invent a later fixed version. 3.24.2 is the fix this report names.
- Patchstack researcher Dave Jong said an unauthenticated attacker can write and execute PHP on affected sites. The bug is in a browser script that measures the page and reports results to a public AJAX endpoint. The plugin does not validate the reported URLs strictly enough, so a crafted report can make the site download content from an attacker-controlled server and save it as PHP. Do not reconstruct that request.
- The report says this affects versions before 3.24.2 on sites with either LazyLoad for CSS background images or Host Fonts Locally turned on. Both features are off by default and are common on performance-tuned sites. If both are off, this report does not describe that configuration as exploitable. If either feature was on while the site was still below 3.24.2, planted files can remain after the update.
- The first exploitation attempt Patchstack recorded was on November 25, 2026, at 3:27 p.m. UTC, against the measurement endpoint. It said tens of thousands of attempts were blocked on November 26, 2026. Source addresses it listed: 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, and 51.79.199.209. Wordfence said it blocked 135 attacks in the 24 hours covered by its advisory. Do not add other addresses.
- Indicators from Patchstack: 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 WordPress sites; unexpected PHP files named wp-media-*.php in wp-content/wp-rocket-config/, wp-content/uploads/, and wp-content/.
- The update stops new attacks and does not remove files already planted. Do not assume a site on 3.24.2 is clean if it ran an older version during the attempts.

Context:
- What was impacted: WP Rocket before 3.24.2, when CSS-background lazy load or local Google Fonts hosting is on, via the public measurement endpoint. CVE-2026-125812.
- Who should care: operators of WordPress sites with WP Rocket installed.
- What to do: update to 3.24.2 or newer, then look for planted wp-media-*.php files and the log indicators above. The update does not delete those files.

Do this in order. Prefer read-only checks. Ask before you update a plugin, delete a file, change a firewall, or restore a backup.

1. Inventory
   - List every WordPress site, the installed WP Rocket version, and whether LazyLoad for CSS background images or Host Fonts Locally is enabled. Read only. If the version is 3.24.2 or newer, still record whether an older version was installed on or after November 19, 2026.
   - If WP Rocket is not installed, say so and stop.
2. Contain
   - If the version is below 3.24.2 and either feature is on, leave the site up and propose the update. Ask before you change it.
   - Do not disable the plugin, delete wp-content, or block the listed addresses until I agree. Blocking those addresses is not a substitute for the update.
3. Remediate
   - After I agree, update WP Rocket to 3.24.2 or a newer release in the same plugin line. Stop if the package does not identify itself as a fix for CVE-2026-125812 or as version 3.24.2 or later.
   - After the update, search only these locations for files matching wp-media-*.php: wp-content/wp-rocket-config/, wp-content/uploads/, and wp-content/. Show me the paths. Ask before you delete anything. A matching name is an indicator, not proof I have already approved removal.
   - Review logs, read only, for rocket_beacon requests from clients that never loaded the reported page, and for outbound requests to unfamiliar hosts, nip.io, trycloudflare.com, or other WordPress sites. Also note any of the ten addresses listed above. Do not send traffic to those hosts.
4. Verify
   - Report the WP Rocket version now installed, whether either feature is on, every matching PHP path you found, and whether I approved a deletion. If I did not agree to a change, report the inventory and the read-only log findings only.
5. Report back
   - Which sites were below 3.24.2, which of the two features were enabled, what indicators you found, and that 3.24.2 stops new exploitation without removing files already written. State the first observed attempt as November 25, 2026, at 3:27 p.m. UTC, and the blocked-attempt day as November 26, 2026.

Do not invent versions, addresses, or exploit requests. If a check needs access I have not given you, say what you need and stop.

← All news

Try the platform.

Open the demo workspace with mock data. No login. Register from the banner when you want early access. No security team. No call.

Try the platform