Hackers Actively Exploiting Critical WP Rocket Flaw CVE-2026-125812 to Breach WordPress Sites

Hackers are actively exploiting a critical flaw tracked as CVE-2026-125812 in the WP Rocket caching plugin, enabling unauthenticated attackers to execute arbitrary PHP code on affected WordPress sites. The vulnerability stems from insufficient validation of data sent to a public endpoint, allowing attackers to download and run PHP payloads from external sources. It affects versions prior to 3.24.2 when the LazyLoad for CSS background images or Host Fonts Locally options are enabled, though both are disabled by default. WP Media released the patch on November 19, and Patchstack observed initial manual exploitation attempts on November 25 that quickly escalated to automated campaigns. Attackers host payloads on bare IPs, nip.io wildcards, trycloudflare.com tunnels, and compromised WordPress sites, targeting both vulnerable feature paths. Site owners unable to update immediately should disable the affected options and block listed attacker IPs, while administrators must scan logs for planted files even after patching.

BleepingComputerTranslated from English

Read at source

Hackers are actively exploiting a critical flaw, tracked as CVE-2026-125812, in the WP Rocket caching plugin that allows executing arbitrary PHP code on WordPress sites.

WP Rocket is a paid WordPress plugin that improves website performance through page caching, CSS optimization, and lazy-loading images. According to its developer, WP Media, the plugin is used on more than 5.6 million sites by 394,000 customers.

CVE-2026-125812 is caused by insufficient validation of data sent to a public endpoint, allowing unauthenticated attackers to write and run PHP code downloaded from an external source. The flaw impacts WP Rocket versions before 3.24.2, when the ‘LazyLoad for CSS background images’ or ‘Host Fonts Locally’ options are enabled. However, both are inactive by default.

WP Media released fixes for the vulnerability on November 19 and published an advisory over the weekend, urging users to upgrade to version 3.24.2 or later.

WordPress security firm Patchstack observed the first low-scale, manual exploitation attempts on November 25 at 15:27 UTC, the activity escalating to fully automated campaigns the following day. The researchers report that the attacks targeted both vulnerable features, sometimes in the same request, to deploy the exploit when either option is active on the target site.

“Attackers use both feature paths, sometimes in one request, so that whichever feature a site has enabled, one of them fires,” Patchstack says. “They host their payloads on bare IP addresses, wildcard DNS names such as nip.io, temporary trycloudflare.com tunnels, and other WordPress sites that are likely compromised.”

Users who cannot install the latest version of WP Rocket at this time should turn off LazyLoad for CSS background images and Self-host Google Fonts via WP Rocket > Page Optimization > Image & Media > Media tab. The vendor also shared a helper plugin to help those managing multiple websites mitigate the exploitation risk across them all.

Patchstack also listed attacker IP addresses that website owners should put in a blocklist now. Updating to a safe version does not remove previously planted files, so website administrators who ran the vulnerable version with either option that opens an exploitation path should review their logs for suspicious requests and outbound connections.

Patchstack warns that large-scale, automated attacks are already happening, as its security platform blocked more than 25,000 malicious requests from multiple attackers.

Meridian digestThe week's most consequential security stories, distilled into one briefing.See the digest

More in Vulns & Exploits

Docker Sandboxes Flaw Allows Malicious Kits to Exfiltrate AI API Keys Without User Prompts
OFFIS DCMTK Toolkit Hit by Critical Missing Authorization and Partial String Comparison Flaws
CISA Warns of Critical Vulnerabilities in Nextgen Healthcare Mirth Connect Allowing Arbitrary Script Execution and Man-in-the-Middle Attacks