Hackers exploit critical WordPress WP Rocket flaw to breach sites
WP Rocket is a paid WordPress plugin that aims to improve website performance. Its features include page caching, CSS optimization, and lazy-loading images. The developer, WP Media, says the plugin is used on more than 5.6 million sites by 394,000 customers. The article does not explain the technical details of caching. In general web practice, caching stores a ready-to-use copy of a page or parts of it. A visitor can then receive that copy instead of waiting for the site to rebuild the page from scratch. This can reduce the work a website must do for each visit. That explanation is general background, not a detail provided in the article. WP Rocket combines caching with other optimization tools, so its flaw could affect sites that rely on it for performance. The vulnerability affects versions before 3.24.2 only when one of two particular options is enabled; both are off by default. WP Media urges users to upgrade to version 3.24.2 or later.
What is WP Rocket, and how does a caching plugin help a website load faster?
WP Rocket is a paid WordPress plugin that aims to improve website performance. Its features include page caching, CSS optimization, and lazy-loading images. The developer, WP Media, says the plugin is used on more than 5.6 million sites by 394,000 customers. The article does not explain the technical details of caching.
In general web practice, caching stores a ready-to-use copy of a page or parts of it. A visitor can then receive that copy instead of waiting for the site to rebuild the page from scratch. This can reduce the work a website must do for each visit. That explanation is general background, not a detail provided in the article.
WP Rocket combines caching with other optimization tools, so its flaw could affect sites that rely on it for performance. The vulnerability affects versions before 3.24.2 only when one of two particular options is enabled; both are off by default. WP Media urges users to upgrade to version 3.24.2 or later.
How could this flaw let someone without an account write and run PHP code on a site?
The flaw, CVE-2026-125812, stems from insufficient validation of data sent to a public endpoint. Because the endpoint is public, an attacker does not need an account to send it a request. The risk is serious because the weakness can turn that request into a path for running code on a vulnerable WordPress site.
The article says attackers can write and run PHP code downloaded from an external source. Patchstack observed attackers targeting both affected feature paths, sometimes in the same request. That approach means an exploit can be triggered through whichever of the two features is enabled on the target site: LazyLoad for CSS background images or Host Fonts Locally.
WP Rocket versions before 3.24.2 are affected when either option is active; both are inactive by default. Patchstack first saw low-scale, manual attempts on November 25, followed by automated campaigns the next day. WP Media released fixes on November 19 and urges users to upgrade. Those dates show the reported exploitation began after the fix was released.
Which WP Rocket versions and settings leave a site vulnerable?
The vulnerable range is WP Rocket versions before 3.24.2. But version alone is not the whole test: the flaw can be exploited when either LazyLoad for CSS background images or Host Fonts Locally is enabled. The article notes that both settings are inactive by default, so sites with them off do not meet the stated conditions.
Patchstack says attackers target both feature paths, sometimes in the same request. This means a request can try to trigger the exploit through whichever affected option is active on the site. For example, a site running an older version with LazyLoad for CSS background images enabled falls within the article’s stated risk conditions, even if Host Fonts Locally is off.
WP Media urges users to install version 3.24.2 or later. If an owner cannot update immediately, the article advises turning off the affected options. It gives the settings path as WP Rocket > Page Optimization > Image & Media > Media tab, and also mentions a helper plugin for people managing multiple sites.
How widely is WP Rocket used, and how many malicious requests did security tools block?
WP Rocket has a broad footprint: its developer, WP Media, says it is used on more than 5.6 million sites by 394,000 customers. That reach makes the vulnerability relevant to many website owners, although the article does not say how many sites are vulnerable. Exposure depends on the plugin version and whether either affected setting is enabled.
The vulnerability allows unauthenticated attackers to write and run PHP code downloaded from an external source. Attackers reportedly targeted both feature paths, sometimes in a single request. They hosted payloads on bare IP addresses, wildcard DNS names such as nip.io, temporary trycloudflare.com tunnels, and other WordPress sites that may have been compromised.
Patchstack says exploitation moved from low-scale manual attempts on November 25 to automated campaigns the following day. Its security platform blocked more than 25,000 malicious requests from multiple attackers. WP Media urges users to upgrade to version 3.24.2 or later; those unable to do so should disable the affected settings and review for signs of compromise if they ran a vulnerable setup.
What could attackers do after gaining the ability to run PHP code on a website?
The confirmed consequence in the article is that unauthenticated attackers can write and run arbitrary PHP code on vulnerable WordPress sites. That is a serious capability because PHP is used to power WordPress and its server-side features. The article does not describe specific damage attackers caused after gaining code execution, so particular outcomes cannot be confirmed from this report.
As general background, PHP code running on a site may be able to change site behavior or work with files and data, depending on the code and its permissions. Those are possibilities, not impacts the article reports for this incident. Patchstack says attackers used the flaw to deploy an exploit and hosted payloads on several kinds of infrastructure, including IP addresses and temporary tunnels.
Automated campaigns were already underway, and Patchstack’s platform blocked more than 25,000 malicious requests from multiple attackers. Site owners should install WP Rocket 3.24.2 or later. If they ran an affected version with either vulnerable option enabled, they should also review logs and outbound connections for suspicious activity, because an update does not remove files already planted.
Why might updating WP Rocket not remove an attacker's files, and what should site owners check?
Installing a fixed version addresses the vulnerable WP Rocket code, but it cannot be assumed to clean up a site after an earlier compromise. The article explicitly warns that updating to a safe version does not remove files attackers may have planted. This matters for administrators who ran a vulnerable version while either exploitation-path setting was active.
For example, if a site had LazyLoad for CSS background images enabled on an affected version, attackers could have used the flaw to write and run PHP code. After updating, the administrator should not treat the patch alone as proof that the site is clean. The article recommends reviewing logs for suspicious requests and checking outbound connections for signs of activity.
WP Media urges users to upgrade to version 3.24.2 or later, while Patchstack reports that automated attacks are already happening. Owners who cannot update immediately should turn off the affected settings. Patchstack also listed attacker IP addresses for blocking, and WP Media shared a helper plugin for people managing multiple websites.
What is PHP, and why can code written in it control parts of a WordPress site?
PHP is a programming language used to build and run server-side website features. WordPress uses PHP, which helps explain why the reported flaw matters: attackers can write and run PHP code on an affected site. This definition is established background; the article itself does not explain what PHP is or describe its role in WordPress.
In general, server-side code can determine how a website responds to requests and performs its functions. What a particular PHP program can do depends on its code and permissions. The article’s specific claim is narrower: insufficient validation of data sent to a public endpoint lets unauthenticated attackers write and run PHP code downloaded from an external source.
The flaw affects WP Rocket versions before 3.24.2 when either of two settings is enabled. WP Media recommends upgrading to version 3.24.2 or later. Since the article warns that an update does not remove previously planted files, administrators who had a vulnerable setup should review logs and outbound connections for suspicious activity.
This brief was written by AI from the original reporting and checked by other models. Names, figures and quotes come from the source; read it for full context.
Read more in the JupiteX app
Pulse is free. New stories every 4 hours, each one broken into the questions that explain it.
Or read more news on the web