A newly discovered vulnerability in the WP Rocket plugin for WordPress—designated CVE-2026-125812 and rated 9.8 out of 10 on the CVSS scale—allows unauthenticated attackers to write and run malicious PHP on compromised sites. The flaw affects versions 3.15 through 3.24.1, and poses serious risk whenever either “LazyLoad for CSS background images” or “Host Fonts Locally” is enabled. While these settings are disabled by default, activating just one is enough to open the door to exploitation. A patch addressing the issue—version 3.24.2—was released on November 19, 2026.
How the Flaw Works
WP Rocket creates page measurement reports in visitors’ browsers as part of its performance-optimization features. The vulnerability arises because some of the data in these reports isn’t properly validated. Exploiting this gap, attackers can inject PHP code directly into the web server without needing a WordPress account or password, a technique known as remote code execution (RCE). This grants full control over functions such as writing files, setting configurations, or executing commands on the server.
What’s Already Happening Out in the Wild
The fix land-ed on November 19, and within days, attempts to exploit the flaw were already documented. On November 25, at around 15:27 UTC, the security firm Patchstack observed the first manual attack, followed closely by automated attacks. Tens of thousands of exploit attempts were blocked just one day later—on November 26. While the records don’t prove how many sites were breached, they do show attack traffic is widespread and ramping up.
Sites at Risk & Immediate Defenses
Users of WP Rocket should update to version 3.24.2 or later immediately—even if there are no obvious signs of intrusion. For those who can’t apply the update right away, disabling both risky features (LazyLoad for CSS background images and Host Fonts Locally) tempers the risk. Patchstack’s RapidMitigate rule also offers protection and was active more than two days before first seeing the attack.
If your site previously ran a vulnerable WP Rocket version with either setting enabled, you’ll need to audit your systems. Look back to at least November 25 in web and outbound traffic logs, and search for odd PHP files in key WordPress directories (especially wp-content/uploads/ and wp-content/wp-rocket-config/). Filenames like wp-media-*.php have been flagged. If something suspicious shows up, collect logs and files, and loop in your hosting provider or incident-response team.
Why This Matters and What to Look Forward To
This vulnerability underscores a troubling trend where plugin features aimed at improving performance—font hosting or delayed image loading—also introduce complex security risks. Performance optimization tools have a history of being targets once their elective components become more widely used. Developers and site administrators need to balance speed with safety more aggressively than ever.
Moving forward, keep an eye on how WP Rocket and similar tools handle input validation around optional features. Watch for monitoring tools and firewalls incorporating exploit detection for CVE-2026-125812. Until then, any site still running one of the affected versions should consider itself at risk and treat the update and audit as an urgent priority.