News

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.

Team Thetechhacker · 2 min read
Hackers Exploit Critical WP Rocket Flaw: How to Check and Protect Your WordPress Site

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.

WP Rocket CVE-2026-125812: how to check and protect your WordPress site

How to Check and Protect Your Site

  1. In WordPress, go to Plugins and check your WP Rocket version. Anything below 3.24.2 is vulnerable.
  2. Update from the Plugins page or download the latest version from your WP Rocket account. You need an active license.
  3. Check whether either risky option was ever turned on. If it was, updating isn’t enough: attackers may already have planted files.
  4. Look for new or unfamiliar PHP files in wp-content, especially in uploads, and review server logs for odd requests and outbound connections.
  5. 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.

Keep reading

More in News

View all →
Written byTeam ThetechhackerEditorial Desk
Team Thetechhacker is the editorial desk at TheTechHacker. Desk posts cover breaking tech news, update roundups and quick fixes, researched from official sources such as vendor release notes, support pages and press releases, and checked by our editors before publishing.

Comments

Leave a comment

The Thetechhacker letter

The week in tech, minus the noise.

New reviews, fixes and the stories that matter — once a week, straight to your inbox.