Attackers are exploiting a critical flaw in WP Rocket, the paid WordPress caching plugin from WP Media, on sites that have not moved to version 3.24.2. Tracked as CVE-2026-125812 with a CVSS score of 9.8, the bug lets an unauthenticated visitor get PHP code written to the server and run. It affects versions 3.15 through 3.24.1, but only where LazyLoad for CSS background images or Self-host Google Fonts is switched on, according to the plugin’s security advisory. The fix shipped on November 19, 2026, and the plugin runs on more than 5.6 million sites.

    Two speed settings with a history

    WP Rocket launched in July 2013, built by developers who were frustrated with the caching plugins of the day, and it became the first product of the company they incorporated in Lyon in early 2014. Over the following decade it grew from page caching into the front-end work that performance scores reward. The two settings behind this bug came late in that run. LazyLoad for CSS background images arrived in version 3.15 in 2023, extending lazy loading to images declared in stylesheets, which is why the vulnerable range starts there. Self-host Google Fonts followed in version 3.18, pulling font files down so they could be served from the site’s own server.

    Caching plugins were supposed to be the quiet part of a WordPress stack.

    Critical WP Rocket WordPress Plugin Flaw Exploited Days After Patch Release

    What went wrong

    WP Rocket runs a script in visitors’ browsers that measures each page and reports URLs back to a public endpoint, and the plugin uses those reports to optimize the page. According to Patchstack, those URLs were not checked strictly enough, so a crafted report can make a site fetch attacker-controlled content and save it as a PHP file, which the server then executes.

    The gap was short. Wordfence’s vulnerability entry, which credits a researcher named Vorelito, went public on November 23, and Patchstack logged its first attempt on November 25 at 15:27 UTC, with tens of thousands blocked on November 26 alone. Payloads sit on bare IP addresses, nip.io names, temporary trycloudflare.com tunnels and other WordPress sites that are probably compromised. Several independent operators are involved. Drupal administrators got a similar warning recently when Drupal flagged an actively exploited core flaw.

    Updating and checking for damage

    Sites with an active license should update to 3.24.2 or later from the Plugins screen and confirm the version number. Updates depend on a license, so the vendor gives sites with an expired one, or that can’t update yet, a fallback: open WP Rocket > Page Optimization > Image & Media (the Media tab before 3.24) and turn off both settings until the update is in. For agencies, a helper plugin named “WP Rocket | Mitigate CVE-2026-125812” disables them and installs with WP-CLI:

    wp plugin install ./wp-rocket-mitigate-cve-2026-125812.zip --activate

    Neither step cleans up a site that was already hit. WP Rocket says files or accounts an attacker created need separate investigation, and Patchstack suggests looking for unexpected PHP files such as wp-media-*.php in wp-content/wp-rocket-config/, wp-content/uploads/ or wp-content/. Anyone lining up the developer changes in WordPress 7.2 Beta 5 can add this plugin check to the same pass.

    Grace is a technical SEO specialist and web developer who writes about structured data, metadata, and site configuration for Webcode Tools. She helps websites improve how they appear in search results and on social platforms, and her guides explain the code behind it in a straightforward, practical way.