Fix the WP Rocket vulnerability CVE-2026-125812
Update WP Rocket to 3.24.2 or turn off two settings; neither step removes files an attacker already planted.
Published here · 4 sources · Resume reading
The WP Rocket vulnerability CVE-2026-125812 lets an attacker with no login write and run PHP on your site, and Patchstack has logged exploitation attempts since 2026-11-25. Update WP Rocket to 3.24.2 or newer, or turn off LazyLoad for CSS background images and Self-host Google Fonts until you can. [1][2]
Related reading: Plan for PHP 8.2 end of life, Patch W3 Total Cache CVE-2026-135616 and Patch Drupal SA-CORE-2026-019. Browse the Security topic.
Check your WP Rocket version
The WP Rocket advisory lists versions 3.15 through 3.24.1 as affected. Patchstack rates it CVSS 9.8. [1][2]
In the WordPress dashboard, open Plugins and read the WP Rocket version. With WP-CLI, list every plugin with its version. [2][3]
wp plugin list --fields=name,version,statusAnything below 3.24.2 needs the next step today.
Update to 3.24.2
Version 3.24.2 was released on 2026-11-19, six days before the first attack Patchstack recorded. With an active license, WP Rocket says to open Plugins, select Update now on WP Rocket, then confirm the installed version is 3.24.2 or later. [1][2]
If no update appears, WP Rocket points to its update guide from the same advisory. [2]
Turn off the two settings if you cannot update
The bug sits in two speed features: CSS background lazy loading and local hosting of Google Fonts. Patchstack says both are off by default but common on tuned sites. [1]
Open WP Rocket, then Page Optimization, then Image & Media (the Media tab on versions before 3.24). Turn off LazyLoad for CSS background images and Self-host Google Fonts, save, and keep them off until 3.24.2 is installed. [2]
For many sites, WP Rocket publishes a mitigation helper plugin that switches both settings off. After downloading its zip from the advisory, install it with WP-CLI. [2]
wp plugin install ./wp-rocket-mitigate-cve-2026-125812.zip --activateOn Multisite, activate the helper on each affected subsite. Then confirm both settings are off on every site. [2]
Look for files an attacker already planted
Warning: updating or switching the settings off does not remove a webshell or an admin account created before you did it. [1][2]
The attack works by making WP Rocket download content from an attacker's server and save it as a PHP file. Patchstack lists where to look: unexpected PHP files in wp-content/wp-rocket-config/, wp-content/uploads/ or directly in wp-content/, for example wp-media-*.php. [1]
Patchstack also lists outbound requests from your web server to unfamiliar hosts, nip.io names or trycloudflare.com tunnels as signs, because attackers host payloads there. [1]
List every administrator account and compare it with the people you expect. [4]
wp user list --role=administrator --format=csvIf either setting was on while you ran a vulnerable version, WP Rocket says to ask your host or security team to check for compromise. [2]
Send this to the friend who turned on every WP Rocket speed setting and never looked back.
Keep this guide
Questions about this guide
Which WP Rocket versions are vulnerable to CVE-2026-125812?
The WP Rocket advisory lists 3.15 through 3.24.1, and only when LazyLoad for CSS background images or Self-host Google Fonts is on. Version 3.24.2, released 2026-11-19, fixes it.
Is CVE-2026-125812 being exploited?
Yes. Patchstack saw the first attempt on 2026-11-25 at 15:27:11 UTC and tens of thousands of blocked attempts on 2026-11-26 alone. Every attempt goes to POST /wp-admin/admin-ajax.php with action=rocket_beacon.
What if my WP Rocket license expired and I cannot update?
WP Rocket says to turn off LazyLoad for CSS background images and Self-host Google Fonts under WP Rocket, Page Optimization, Image & Media, and keep both off until you can install 3.24.2.
Does updating WP Rocket clean a hacked site?
No. Patchstack says the update does not remove files an attacker already planted, and the WP Rocket advisory says any files or accounts an attacker created need separate investigation.
Sources
- WP-CLI: wp plugin listdeveloper.wordpress.org
- WP-CLI: wp user listdeveloper.wordpress.org