If your WordPress or WooCommerce store runs a WP Rocket version older than 3.24.2, you may be exposed to an actively exploited remote code execution flaw, tracked as CVE-2026-125812 (CVSS 9.8). Attackers can write and run PHP code on an affected site without logging in. That puts customer data, checkout integrity, and server availability at risk.
The flaw affects sites where LazyLoad for CSS background images or Host Fonts Locally is switched on. Update WP Rocket to 3.24.2 or later and confirm the installed version. Then check the site for planted files and suspicious requests, because updating alone does not remove anything an attacker has already left behind.
Which Stores Are Exposed and Why Automated Updates Often Fail
According to Patchstack’s active exploitation report, CVE-2026-125812 affects WP Rocket releases before 3.24.2 when either CSS background image lazy-loading or local Google Font hosting is active. Both settings are off by default, but they are common on performance-tuned stores.
Even if both settings are off today, an outdated installation could become exposed the moment someone enables either feature. Licensing adds a second complication:
- No WordPress.org safety net: WP Security Ninja’s warning notes that WP Rocket is a commercial plugin distributed outside the WordPress.org plugin directory. Updates arrive through WP Rocket’s own update system or a manual download from your account.
- Expired licenses stop updates: When a license lapses, the plugin keeps running but no longer updates. Confirm that your site can actually receive the patched release.
- A vague changelog: WP Rocket released 3.24.2 on November 19, 2026, with a security entry about validating cached CSS, font, and preconnect files. The changelog does not name the CVE, so you would not spot it by skimming.
- A short patch window: Patchstack observed the first exploitation attempt on November 25, 2026, six days after the fix shipped.
| Store configuration | Exposure to CVE-2026-125812 | Immediate operational requirement |
|---|---|---|
| WP Rocket before 3.24.2, with either affected feature on | Critical: Patchstack reports active unauthenticated exploitation. | Update to 3.24.2 or later, purge the cache, and check for planted files and suspicious requests. |
| WP Rocket before 3.24.2, with both features off | Patchstack identifies the affected features as necessary for this attack path, so enabling either one could expose the site. | Update rather than relying on settings alone. |
| WP Rocket before 3.24.2, with an expired license | The plugin keeps running while updates stop. Exposure also depends on the affected settings. | Check the license, then update through WP Rocket’s available update or manual installation process. |
| WP Rocket 3.24.2 or later | Patched against this vulnerability. Updating does not remove files an attacker already planted. | Verify the installed version and investigate if the site was previously exposed. |
How Performance Features Become a Server Backdoor
The vulnerability is classified as CWE-22 path traversal. As described in Ostorlab’s analysis, WP Rocket builds cache and font file locations from URLs without adequately checking that the result stays inside the intended folder.
The exposure starts with a routine feature. WP Rocket runs a measurement script in visitors’ browsers and sends the results to a public WordPress AJAX endpoint. The plugin then uses the reported URLs to optimize the page.
Where Validation Broke Down
According to Mallory’s technical advisory, weak path normalization and missing directory-containment checks in the CSS cache layer and local font storage can let attacker-influenced content land outside the intended directories.
Patchstack reports that a crafted measurement report can make an affected site download content from an attacker-controlled server and save it as a PHP file, which lets the attacker’s code run. Whether a written PHP file can actually execute also depends on the server configuration.
The lesson reaches beyond this plugin: any feature that accepts public input and writes files needs tight boundaries. Maintaining WordPress scalability and server stability includes limiting where server processes can write and execute files.
Inside the Active Exploitation Campaign
Patchstack’s telemetry recorded the first exploitation attempt on November 25, 2026, at 15:27:11 UTC. Rescana’s incident timeline notes that the flaw was absent from CISA’s Known Exploited Vulnerabilities catalog when it checked on November 27, 2026. That absence did not mean it was not being exploited.
- Rapid escalation: The first observed attacker tested payloads against a few sites and retried with encoded variants. Within a day, activity had become automated, with tens of thousands of blocked attempts on November 26.
- Both feature paths targeted: Patchstack observed several independent operators. Some requests went after both CSS background lazy-loading and local font hosting.
- Varied payload hosting: Attackers used bare IP addresses,
nip.iowildcard domains, temporarytrycloudflare.comtunnels, and other WordPress sites that were likely already compromised. - Concentrated infrastructure: One cluster sent identical requests from four residential IP addresses, which suggests a rotating proxy pool. The ten most active source addresses accounted for roughly half of the blocked attempts observed since November 25.
Remediation vs. Mitigation Trade-Offs
- Update WP Rocket: Install 3.24.2 or later and verify the deployed version. Mallory reports that 3.24.2 adds path normalization, host and filename validation, directory-containment checks, restrictions on executable file extensions, and font-content verification.
- Use interim mitigation only if the update is delayed: Patchstack recommends turning off both LazyLoad for CSS background images and Host Fonts Locally, or using its RapidMitigate rule. The rule was live more than two days before the first observed attack. Mallory’s advisory cautions that disabling an individual feature is not established as a reliable mitigation. Treat any workaround as temporary, never as a substitute for updating.
A tested WooCommerce deployment workflow helps your team ship critical updates while keeping checkout risk under control.
Post-Patch Compromise Audit and Immediate Triage
Updating WP Rocket stops new exploitation through this flaw, but it does not delete PHP files an attacker already planted. As with the WP connect plugin backdoor incident, patching is not a substitute for investigating a potentially compromised site.
Step 1: Verify Your Installed Version and License Status
Check the installed version in WordPress, or have a developer confirm it with WP-CLI. If the site runs WP Rocket below 3.24.2 and no update appears, check the license and use WP Rocket’s available update or manual installation process. After updating, verify the version again and purge the cache.
Step 2: Inspect High-Risk Folders for Unexpected PHP Files
If the site ran a vulnerable version with either affected feature enabled, ask your technical lead or hosting provider to check:
- Potential drop locations:
wp-content/,wp-content/uploads/, andwp-content/wp-rocket-config/for unfamiliar PHP files, including names resemblingwp-media-*.php. - Cache directories:
wp-content/cache/andwp-content/cache/background-css/for unexpected PHP files.
Step 3: Audit Server Access and Outbound Logs
Review available historical logs, starting from November 25, 2026, when Patchstack recorded the first observed attempt:
- Suspicious measurement requests: Look for
POSTrequests to WordPress’s public AJAX endpoint (/wp-admin/admin-ajax.php) that carry WP Rocket’s measurement-beacon action. Red flags include requests from clients that never loaded the reported page, and reports containing full URLs where WP Rocket expects bare domains. Access logs may not show request-body details. - Outbound connections: Check available egress logs for unexpected requests to unfamiliar hosts,
nip.iodomains, ortrycloudflare.comtunnels. - Account and file review: Review WordPress administrator accounts and recently modified theme or plugin files. If you find evidence of compromise, bring in your hosting or incident-response team, preserve evidence, clean and restore from a verified backup as appropriate, and rotate any potentially exposed credentials.
You can also harden your WooCommerce server with immutable file systems and edge filtering to reduce the chance that web workers can write or execute unexpected files.