According to BleepingComputer, hackers are actively exploiting a critical vulnerability in the WP Rocket WordPress plugin to run arbitrary PHP code on target websites. Security teams are advised to immediately update to version 3.24.2 or disable vulnerable plugin settings to mitigate automated attacks.
Background
WP Rocket is a popular paid performance-optimisation plugin for WordPress websites, developed by WP Media. Designed to improve website load times through features such as page caching, CSS optimisation, and lazy-loading images, the software is deployed on over 5.6 million websites across 394,000 customers worldwide, according to BleepingComputer. Because performance plugins handle core content rendering and site media, vulnerabilities within them present a significant potential exposure surface for web infrastructure.
What happened
According to BleepingComputer, security researchers and vendor advisories have disclosed active exploitation of a critical vulnerability tracked as CVE-2026-125812 in the WP Rocket plugin. The flaw stems from insufficient validation of data submitted to a public endpoint. This oversight enables unauthenticated remote attackers to download, write, and execute arbitrary PHP code—a scripting language used to power WordPress—from external attacker-controlled sources onto vulnerable websites. WP Media issued security fixes on November 19 and released a formal advisory urging site owners to upgrade to version 3.24.2 or later.
Threat activity rapidly escalated shortly after the advisory. Security firm Patchstack first detected low-scale, manual exploitation attempts on November 25 at 15:27 UTC, which transformed into fully automated exploitation campaigns by the following day. Attackers have been observed targeting two specific plugin features—’LazyLoad for CSS background images’ and ‘Host Fonts Locally’—frequently combining both paths in a single HTTP request to guarantee execution regardless of which setting is active. Patchstack reported blocking more than 25,000 malicious requests, noting that threat actors host payloads on bare IP addresses, wildcard DNS domains such as nip.io, temporary trycloudflare.com tunnels, and previously compromised WordPress websites.
Who is affected
According to BleepingComputer, this security issue affects organisations using any version of the WP Rocket plugin prior to version 3.24.2, specifically where either the ‘LazyLoad for CSS background images’ or the ‘Host Fonts Locally’ (also listed as ‘Self-host Google Fonts’) feature is turned on. Although both settings are disabled by default, any website administrator who manually enabled either feature remains vulnerable until the plugin is updated.
Why it matters
Arbitrary code execution represents one of the most severe risks to web infrastructure. An attacker who successfully exploits CVE-2026-125812 gains the ability to execute arbitrary PHP code, potentially allowing them to compromise the target website completely, breach underlying databases, modify site content, or establish persistent backdoors for future access.
Crucially, according to BleepingComputer, applying the plugin update stops future attacks but does not remove malicious files planted before the patch was installed. This means breached sites could remain fully compromised even after updating, requiring administrators to actively inspect their web server environment for residual backdoors and suspicious activity.
What to do now
- Upgrade the WP Rocket plugin immediately to version 3.24.2 or later across all managed WordPress installations.
- Disable both ‘LazyLoad for CSS background images’ and ‘Self-host Google Fonts’ settings via the WP Rocket Media tab if an immediate update cannot be performed.
- Deploy the official helper plugin shared by WP Media to streamline risk mitigation across environments managing multiple websites.
- Add the attacker IP addresses published by security firm Patchstack to your web application firewall or network blocklist.
- Review server access logs and outbound connection history for suspicious requests, as updating the software does not eliminate previously installed payload files.
Key takeaways
- Automated campaigns are actively exploiting CVE-2026-125812 to run arbitrary PHP code on vulnerable WordPress sites.
- Updating to WP Rocket version 3.24.2 patches the flaw but does not clean up previously planted malicious files.
- Organisations unable to update immediately must disable the ‘LazyLoad for CSS background images’ and ‘Host Fonts Locally’ features.
This is a summary of reporting by BleepingComputer. For full details, read the original: Hackers exploit critical WordPress WP Rocket flaw to breach sites.