WP Rocket: Canadian WordPress Sites Urged to Update and Check for Compromise


Attackers are exploiting a critical remote code execution flaw (CVE-2026-125812) in WP Rocket, a caching plugin used on more than 5.6 million websites. Canadian businesses, agencies and public bodies that run WordPress need to update now and confirm their sites were not compromised before the patch.

SaveAdd to Google
Vulnerability

A critical flaw in the WP Rocket caching plugin is being exploited against WordPress sites worldwide, including sites run by Canadian organizations.

Breaking TORONTO, ON

Attackers are exploiting a critical vulnerability in WP Rocket, one of the most widely used premium performance plugins for WordPress. The first attacks came less than a week after the developer shipped a fix. It shows Canadian website operators again how little time now separates a patch from an attack.

The flaw is tracked as CVE-2026-125812 and carries a CVSS score of 9.8. It affects WP Rocket versions 3.15 through 3.24.1 and lets an unauthenticated attacker execute code on the underlying server, the worst possible outcome for a web application. WP Media, the company behind WP Rocket, fixed the issue in version 3.24.2 on November 19, 2026. WordPress security firm Patchstack says exploitation attempts began on November 25 and became automated the next day.

WP Rocket runs on more than 5.6 million websites. Unlike free plugins from the WordPress.org repository, it is a commercial product, and updates are delivered through an active licence. Sites with lapsed licences often miss security releases.

How the flaw works

WP Rocket's page optimisation features use a script that runs in the visitor's browser. The script measures the page and sends the results back to the site, and the plugin then writes optimised cache files into the web root. Because the plugin does not properly validate the URLs in those reports, an attacker can send a forged report. The forged report makes the site download attacker-controlled content and save it as a PHP file. Once that file sits in a web-accessible directory, the attacker can run it on the server.

WP Media's changelog for 3.24.2 lists the fix as improved validation of cached CSS, font and preconnect files.

Two conditions limit exposure. A site is exploitable only if at least one of two features is enabled: LazyLoad for CSS background images or Self-host Google Fonts. Both are off by default. However, site owners commonly turn them on to improve Core Web Vitals scores, so performance-tuned sites are most likely to be exposed.

Six days from patch to attack

The timeline follows a familiar pattern. The patch shipped on November 19 and the first exploitation attempts appeared on November 25. By November 26 the activity was automated, and Patchstack blocked tens of thousands of attempts that day alone.

Patchstack's data points to more than one attacker. Since November 25, the ten most active source addresses have accounted for roughly half of all blocked attempts. One cluster sent byte-identical requests from four residential IP addresses, which suggests a rotating residential proxy pool. Attackers hosted their payloads on bare IP addresses, wildcard DNS names and temporary Cloudflare tunnels, and possibly on WordPress sites they had already compromised. Patchstack said several independent operators are active, and some are sending the same payload to large numbers of sites.

Attackers can diff a patched release against the previous version, find the vulnerable code path and build a working exploit within days. Sites that update weekly or monthly are therefore exposed for most of that cycle.

What it means for Canadian organisations

Many Canadian small and medium-sized businesses, non-profits, municipalities, school boards and media outlets run their public websites on WordPress, often maintained by small agencies or a single administrator. Many of those sites use premium performance plugins such as WP Rocket to stay fast on shared hosting.

With code execution on the server, attackers can install web shells, create rogue administrator accounts, inject SEO spam or malicious redirects, and steal database credentials. On WooCommerce stores they can plant payment skimmers on checkout pages. Depending on the hosting setup, a compromised WordPress site can also give access to other sites on the same account or server.

The Canadian Centre for Cyber Security (Cyber Centre) has long advised organisations to prioritise patching internet-facing systems, especially software with known exploitation. Organisations that find signs of compromise can report incidents to the Cyber Centre.

What administrators should do now

Updating closes the hole but does not undo earlier damage. Any site that ran a vulnerable version with either feature enabled after November 25 should be treated as possibly compromised until checked.

  1. Check the installed version. On a dashboard, go to Plugins. On a server, run wp plugin list with WP-CLI. Versions 3.15 through 3.24.1 are vulnerable.
  2. Update to WP Rocket 3.24.2 or later. Version 3.24.3, released November 26, is the current release.
  3. If you cannot update immediately, for example because the licence has expired, turn off LazyLoad for CSS background images and Self-host Google Fonts in WP Rocket's settings.
  4. Agencies and hosts managing many sites can use the mitigation helper plugin referenced in the exploitation reports to apply the workaround across a fleet.
  5. Hunt for compromise. Look for unexpected .php files in WP Rocket's cache directories under wp-content/cache/ and anywhere else in the web root. Review administrator accounts for unfamiliar users, and check web server logs since November 25 for unusual requests to the plugin's optimisation endpoints. Watch for unexpected outbound connections from the server.
  6. If you find signs of intrusion, rotate WordPress, database, hosting and SFTP credentials and regenerate the WordPress security salts. Restore from a known-clean backup taken before November 25, then assess your breach reporting obligations under PIPEDA or provincial law.

A recurring lesson

This is not the first security issue WP Rocket has disclosed this year. Earlier 2026 releases fixed cross-site scripting, sensitive data exposure, broken access control and denial-of-service issues. But CVE-2026-125812 is in a different category: it is unauthenticated, rated critical and actively exploited.

Patch velocity now matters as much as the patch itself, especially for organisations that treat their website as "set and forget". Automatic updates for security releases, a valid licence for premium plugins and a web application firewall in front of production sites are now baseline defences, not extras.

The vulnerability in this story

  1. 9.8 Critical CVE-2026-125812 (cve.org, opens in a new tab)

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') vulnerability in WP Media WP Rocket wp-rocket allows Path…

    Published Nov 25, 2026

Scores and dates: NVD (not endorsed by the NVD). Each ID opens its record on cve.org.

About the author

Editor's Picks

The best of cybersecuritynews.ca, delivered to you weekly.

On Display
Server room

SharePoint flaw scored 9.9 lets insiders borrow Secure Store credentials

Ottawa

Ottawa says AI-enabled intruders were in federal networks for weeks

Illustration: a cloud with a padlock

How to lock down a cloud account: the first day in AWS, Azure or Google Cloud