Critical WP Rocket Vulnerability Exploited in the Wild Just Six Days After Patch Release

Hackers began exploiting a critical-severity flaw in the WP Rocket WordPress plugin less than a week after the vendor issued patches, according to Patchstack. The vulnerability, tracked as CVE-2026-125812 with a CVSS score of 9.8, allows unauthenticated remote code execution by tricking the plugin into saving attacker-controlled content as a PHP file in the web root. Exploitation requires either the LazyLoad for CSS background images or Self-host Google Fonts feature to be enabled, both of which are disabled by default but commonly activated for performance gains. WP Rocket version 3.24.2, released on November 19, addressed the issue, yet in-the-wild attacks started on November 25 and quickly escalated into automated campaigns. Patchstack observed tens of thousands of blocked attempts on November 26 alone, with multiple independent operators using residential proxies, bare IP addresses, wildcard DNS, and Cloudflare tunnels. Site owners are urged to update immediately and scan for post-exploitation artifacts, as the patch does not remove files or accounts created by attackers.

SecurityWeekTranslated from English

Read at source

Hackers started exploiting a critical-severity vulnerability in the WP Rocket WordPress plugin less than a week after patches were rolled out, WordPress security firm Patchstack warns.

A premium caching and performance optimization plugin designed to speed up websites, improve page scores, and reduce server loads, WP Rocket is used on more than 5.6 million sites. It relies on a script in the visitors’ browsers to measure pages and report the results, but also writes cached files into the web root.

The exploited security defect, tracked as CVE-2026-125812 (CVSS score of 9.8), exists because, in versions 3.15 through 3.24.1, the plugin did not sufficiently validate reported URLs during page optimization. An attacker could exploit the bug via a crafted report to cause the target site to download attacker-controlled content and save it as a PHP file. The code would then be executed on the server, leading to unauthenticated code execution.

CVE-2026-125812 can only be triggered on deployments with the LazyLoad for CSS background images or the Self-host Google Fonts feature enabled. The plugin ships with both disabled by default, but they are typically enabled to boost site performance.

WP Rocket version 3.24.2 was released on November 19 with patches for the vulnerability. In-the-wild exploitation started six days later, on November 25, Patchstack says. “Within a day the activity had turned into automated campaigns, with tens of thousands of blocked attempts on November 26 alone,” the company notes.

Patchstack has observed exploitation attempts targeting either or both feature paths and payloads hosted on bare IP addresses, wildcard DNS names, temporary Cloudflare tunnels, and potentially compromised WordPress sites. “Several independent operators are active. Some send one identical payload to site after site; one cluster sent byte-identical requests from four residential IP addresses, a sign of a rotating proxy pool. Since November 25, the ten most active addresses accounted for roughly half of all blocked attempts,” Patchstack notes.

WordPress website owners and administrators are advised to update their WP Rocket installations to the latest version and then check for potential exploitation attempts. The update does not remove the files or accounts the attackers created on sites compromised before patching. On sites with expired WP Rocket licenses or that cannot be updated immediately, administrators should disable the LazyLoad for CSS background images and Self-host Google Fonts features, which mitigates the attack paths. A mitigation helper plugin is available for organizations managing multiple sites.

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