Actively exploited CVSS 9.8 Security news
WP Rocket: attackers exploit CVE-2026-125812 to plant PHP code on WordPress sites without logging in
A critical flaw in the paid WordPress caching plugin WP Rocket, CVE-2026-125812 (CVSS 9.8), has been exploited since 25 November 2026 according to Patchstack, and automatically since 26 November. An unauthenticated attacker can make the site download and run a PHP file. Versions 3.15 to 3.24.1 are affected when one of two optimisation features is enabled. The fix, 3.24.2, shipped on 19 November - but updating does not remove files an attacker planted earlier.
Key points
- The flaw: a public endpoint that receives page measurements from WP Rocket's script in visitors' browsers does not validate URLs strictly enough. A crafted report makes the server download attacker content and save it as a PHP file.
- Precondition: LazyLoad for CSS background images or Self-host Google Fonts enabled (both are off by default).
- Exploitation: Patchstack saw the first attempt on 25 Nov at 15:27 UTC and tens of thousands of automated attempts a day from 26 Nov.
- Fix: 3.24.2, released 19 Nov 2026. Without a valid licence, the vendor advises turning both features off; it also published a helper plugin for fleets.
Vulnerabilities: CVE-2026-125812
What happened
WP Media fixed a critical flaw in its WP Rocket caching plugin in version 3.24.2 back on 19 November 2026. NVD has listed it since 25 Nov as CVE-2026-125812, rated CVSS 3.1 9.8 (record supplied by Patchstack). On 27 November Patchstack reported that attackers are exploiting it: it caught the first manual attempt on 25 Nov at 15:27 UTC, and from 26 Nov automated campaigns by several actors, with tens of thousands of blocked attempts a day. WP Media updated its security advisory the same day.
Technical details
WP Rocket injects a script that measures the page in the visitor's browser and sends the results to the public admin-ajax.php endpoint (action rocket_beacon). The plugin uses the reported URLs to optimise the page, but according to Patchstack it does not validate them strictly enough. A crafted report can make the server fetch content from an attacker-controlled host and save it as a PHP file, which then runs. No login is needed. NVD classifies the bug as path traversal (CWE-22).
Two features are exploitable: LazyLoad for CSS background images and local hosting of Google Fonts. Patchstack says attackers often try both paths in a single request. We do not describe the method further.
According to Patchstack, attackers serve the malicious PHP from a mix of places: bare IP addresses, wildcard DNS names such as nip.io, temporary trycloudflare.com tunnels and other WordPress sites they have probably already compromised. The ten most active addresses sent roughly half of all blocked attempts, and one cluster sent byte-identical requests from four residential IPs, which points to a rotating proxy pool. Blocking addresses therefore only goes so far - updating is what counts.
Who is affected
- WP Rocket 3.15 to 3.24.1 (per the vendor; NVD says all versions before 3.24.2).
- Only when at least one of LazyLoad for CSS background images or Self-host Google Fonts is enabled. Both are off by default.
- WP Media says the plugin runs on more than 5.6 million sites.
How to tell if you were compromised
Patchstack recommends looking for the following (addresses defanged; the most active IPs from its table):
wp-content/wp-rocket-config/wp-media-*.php unexpected PHP files
wp-content/uploads/*.php unexpected PHP files
wp-content/*.php unexpected PHP files (other than index.php)
POST /wp-admin/admin-ajax.php action=rocket_beacon reporting full URLs instead of domains
outbound connections from the server to *.nip[.]io and *.trycloudflare[.]com
103.235.74[.]71
103.235.74[.]72
157.245.122[.]230
152.89.170[.]194
180.232.236[.]101
201.79.120[.]217
112.78.154[.]32
167.71.75[.]155
43.163.8[.]253
51.79.199[.]209
rocket_beacon requests from clients that never loaded the page they report on are also suspicious. Go back through logs for the whole period a vulnerable version was running. Pull addresses out of logs in bulk with our IOC extractor.
If you have shell access to the server, a quick check helps (our advice, not the vendor's): wp plugin list --name=wp-rocket (WP-CLI) shows the plugin version, find wp-content -name '*.php' -newermt 2026-11-25 lists PHP files changed since 25 Nov, and searching the web server access log for rocket_beacon finds the beacon requests. A log hit alone does not mean a breach - attackers also probe sites without the features enabled - but together with a new PHP file it is a strong signal.
What to do
- Update WP Rocket to 3.24.2 or later and confirm the version on the Plugins screen.
- Without a valid licence, turn off both features (WP Rocket → Page Optimization → Image & Media) and keep them off until you can update. For many sites the vendor published a helper plugin,
wp-rocket-mitigate-cve-2026-125812(wp-media/wp-rocket-helpers repository on GitHub). - If either feature was on while a vulnerable version ran, check the site as described above, including new administrator accounts. Updating does not remove planted files.
- If you find anything, restore from a backup taken before 25 Nov and change admin, database and FTP passwords.
Timeline
- 19 Nov 2026 - WP Rocket 3.24.2 with the fix.
- 25 Nov 2026 - CVE-2026-125812 published in NVD; first exploitation attempt at 15:27 UTC per Patchstack.
- 26 Nov 2026 - automated campaigns begin.
- 27 Nov 2026 - Patchstack analysis and updated WP Media advisory.
- 30 Nov 2026 - the flaw is not yet in the CISA KEV catalog (latest version 2026.11.27); exploitation is reported by Patchstack.
FAQ
How do I check whether one of the vulnerable features is enabled?
In the WordPress dashboard go to WP Rocket → Page Optimization → Image & Media (the Media tab before 3.24). The options at risk are LazyLoad for CSS background images and Self-host Google Fonts. If both are off, the vendor says the documented attack paths do not work - you should still update.
I updated after 25 November. Am I done?
No. The update stops new attempts but does not remove files or accounts an attacker already created. Review wp-content and your access logs as described under How to tell if you were compromised, or ask your host to check.
Does this affect a free version from WordPress.org?
WP Rocket is a paid plugin from WP Media and is not in the WordPress.org directory, so only sites that bought and installed it are affected. WP Media says it runs on more than 5.6 million sites.
Sources
Spotted a mistake? Let us know and we will correct it openly.