Hackers Exploit Critical WP Rocket Flaw: How to Check and Protect Your WordPress Site
Hackers are exploiting WP Rocket flaw CVE-2026-125812. Update to 3.24.2, turn off two risky options and check for planted files.

Hackers are actively exploiting a critical flaw in WP Rocket, the paid WordPress caching plugin used on more than 5.6 million sites, BleepingComputer reports. The bug, tracked as CVE-2026-125812, lets attackers with no login write and run PHP code on a site.
Quick answer: Update WP Rocket to version 3.24.2 or later now. If you can’t, turn off LazyLoad for CSS background images and Self-host Google Fonts under WP Rocket > Page Optimization > Image & Media. Sites are only exposed when one of those two options is on; both are off by default.
What Happened
The flaw comes from weak validation on a public endpoint. Developer WP Media shipped the fix on November 19 and published an advisory over the weekend. Security firm Patchstack saw the first manual attacks on November 25, and fully automated campaigns began the next day.

How to Check and Protect Your Site
- In WordPress, go to Plugins and check your WP Rocket version. Anything below 3.24.2 is vulnerable.
- Update from the Plugins page or download the latest version from your WP Rocket account. You need an active license.
- Check whether either risky option was ever turned on. If it was, updating isn’t enough: attackers may already have planted files.
- Look for new or unfamiliar PHP files in
wp-content, especially inuploads, and review server logs for odd requests and outbound connections. - Block the attacker IP addresses Patchstack published, and run a malware scan.
If your site was hit, restore from a clean backup taken before November 25. Read the best managed WordPress hosting, the best backup software and what to do after a data breach. See WP Rocket’s site for release notes.
FAQs
Which WP Rocket versions are affected?
All versions before 3.24.2.
Is every WP Rocket site vulnerable?
Only sites with LazyLoad for CSS background images or self-hosted Google Fonts turned on.
Does updating remove planted malware?
No. Check for unknown files and restore a clean backup if needed.
Featured image: WP Rocket.
Disclosure: TheTechHacker has no paid relationship with WP Media or Patchstack.
More in News

Optimizely Hack Planted Malicious Code on Sites of 178 Organizations, Including CNN and Zoom
Optimizely says attackers abused a flaw to add malicious code to customer sites on Nov 16. What happened, which brands were hit and what to do now.

VMware vCenter CVE-2026-123903: Who Needs to Patch Again and Who Doesn’t
vCenter CVE-2026-123903 is rated 9.8. Fixed versions, why 8.0 U3m users are covered on vCenter, and the ESX update everyone still needs.

Palo Alto Warns Fragnesia Flaw Is Being Exploited in PAN-OS Attacks: Fixed Versions and What to Do
Attackers chain PHP2Shell and Fragnesia against internet-exposed PAN-OS management interfaces. Fixed builds for 10.2 to 12.2 and the steps to take now.
The week in tech, minus the noise.
New reviews, fixes and the stories that matter — once a week, straight to your inbox.
We only use your email to send the newsletter. Unsubscribe any time. See our privacy policy.

Comments