Overview
Attackers are exploiting CVE-2026-125812, a critical flaw (CVSS 9.8) in the WP Rocket caching plugin for WordPress. It lets an unauthenticated attacker write and run PHP code on the site. It affects all versions before 3.24.2, which was released on November 19, 2026. WP Rocket says the plugin is used on more than 5.5 million sites.
How the flaw works
A browser-side script measures each page and reports the results to a public AJAX endpoint. The plugin does not validate the reported URLs strictly enough. A crafted report can make the site fetch content from an attacker-controlled server and save it as a PHP file, which the attacker can then run.
The flaw is only reachable when one of two options is on:
- LazyLoad for CSS background images
- Host Fonts Locally
Both are off by default but common on performance-tuned sites. Patchstack researcher Dave Jong reported the issue, and Wordfence published its own advisory.
Exploitation
- The first recorded attempt was on November 25, 2026 at 3:27 p.m. UTC.
- Activity became automated and large-scale, with tens of thousands of attempts blocked on November 26.
- Wordfence reported blocking 135 attacks in the 24 hours before its advisory.
Indicators of compromise
- Requests containing
rocket_beaconfrom clients that never loaded the page they report on. - Unexpected PHP files named
wp-media-*.phpinwp-content/wp-rocket-config/,wp-content/uploads/orwp-content/. - Outbound requests from the web server to unfamiliar hosts,
nip.iodomains, temporarytrycloudflare.comtunnels, or other possibly compromised WordPress sites. - Source IPs reported in the attacks: 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 and 51.79.199.209.
What to do
- Update WP Rocket to 3.24.2 or later. This blocks new attacks but does not remove files already planted.
- Hunt for compromise. Check the directories above for
wp-media-*.phpfiles and review historical web and egress logs for the indicators. - If you find a planted file, treat the site as compromised: restore from a known-good backup, rotate WordPress, database and hosting credentials, and review for new admin users.
- As a stopgap on sites you cannot patch right away, turn off the two options above.