Skip to main content

Wolfcore Cyber Security

WP Rocket Flaw CVE-2026-125812: Update and Check Your Site

WP Rocket Flaw CVE-2026-125812: Update and Check Your Site

A critical WP Rocket vulnerability, a flaw in the WordPress caching plugin, is being exploited right now. It lets someone with no login write a PHP file to your web server and run it. The fix has been out since 19 November, so if your site runs WP Rocket, check the version today and look for signs that someone got there first.

What the WP Rocket vulnerability is and what happened

WP Rocket is a paid caching plugin that its maker, WP Media, says runs on more than 5.5 million sites. The flaw is tracked as CVE-2026-125812 and scored 9.8 out of 10 (The Hacker News). It affects every version before 3.24.2, which was released on 19 November 2026. The attack needs one of two optional settings switched on: LazyLoad for CSS background images, or Host Fonts Locally. Both are off by default but common on tuned sites.

Patchstack recorded the first exploitation attempt on 25 November, six days after the fix shipped. By 26 November it was blocking tens of thousands of attempts. SOCRadar lists 3.24.3, released on 26 November, as the latest version. Patchstack warns that updating stops new attacks but does not remove files already planted.

Why it matters if you run a small or mid-sized business

This is a clean example of how most website compromises really happen. Nobody guessed a password. The attacker found a public page of the plugin that accepts reports from visitors’ browsers, and the plugin did not check what it was told strictly enough. That one gap let the site fetch attacker-supplied content and save it as a PHP file. Then the attacker asked for that file and the server ran it.

From there the attacker is running code as your website. That can mean stolen customer data, spam pages, a payment page skimmer or a foothold on the same server as other sites.

Two controls would have stopped it. The first is patching within days, not months. The gap between the fix and the first attack here was six days. The second is not running settings and plugins you do not need. A site with both features off was not exploitable by this route.

Note the lesson in that. Many owners assume “off by default” means safe. It does not. A setting someone switched on two years ago for page speed is part of your attack surface, and nobody remembers it is there.

Some sites also have no one watching. If an agency built the site and moved on, the update may never have been applied. Ask who owns that job.

What to do this week

  1. Ask your IT person or agency to open the WordPress Plugins page and confirm WP Rocket is on 3.24.2 or later, ideally the latest release, 3.24.3.
  2. Take a backup first, then update, and ask them to check the site still loads and your checkout and contact forms still work.
  3. Have them search the wp-content, uploads and wp-rocket-config folders for PHP files named wp-media-something.php, reported as indicators of compromise in security advisories, and review web server logs back to 25 November.
  4. Review the Users screen for administrator accounts nobody recognises, and reset admin passwords if anything looks wrong.
  5. Delete plugins and themes you do not use, not just deactivate them, and turn on automatic updates for plugins where your change process allows.

If you find a planted file, treat the site as compromised. Do not just delete the file. Restore from a clean backup, change all passwords and keys stored on that server, and get the cause confirmed.

Frequently asked questions

Which WP Rocket versions are affected? Every version before 3.24.2, according to The Hacker News, and only when LazyLoad for CSS background images or Host Fonts Locally is switched on.

Does updating remove a hacker who already got in? No. Patchstack warns that updating stops new attacks but does not remove files already planted, so check for them as well.

How do I know if my site was compromised? Search for PHP files named wp-media followed by other characters in the wp-content, uploads and wp-rocket-config folders, and review web server logs back to 25 November.

How Wolfcore helps

Wolfcore is a UK-based offensive security firm working with businesses worldwide. Wolfcore simulates attackers, so we test your site the way they would, rather than just listing plugin versions. Start with our free web vulnerability scan, then see how a manual web application penetration test goes further, or our wider penetration testing service. For how we report findings, read our API authorisation case study, for a plain-English definition see CVE, and for the technical detail read our WP Rocket CVE-2026-125812 entry.

Ruben Selby, Founder and Lead Security Consultant, Wolfcore

Sources

Related reading: Website Installer Vulnerability: Movable Type and Drupal

Wolfcore

Would your staff click a phishing email?

Run a real, safe phishing test on your team with Phishy. Free for 14 days, up to 10 staff, no card. We help you set it up.

Start a free phishing testFree website security scanor book a 30 minute call