Security researchers at Patchstack detected attempts to exploit a critical WP Rocket vulnerability just six days after a patch became available. Organizations that delayed updating may now need to investigate whether their websites were compromised.
On Dec. 2, 2026, Thailand’s Computer Emergency Response Team (ThaiCERT) reiterated warnings about attacks targeting the WordPress performance optimization plugin. Tracked as CVE-2026-125812, the flaw enables unauthenticated remote code execution (RCE).
Which WordPress sites are vulnerable?
In its Nov. 27 threat analysis, Patchstack reported observing its first exploitation attempt on Nov. 25. Automated campaigns followed, with tens of thousands of attempts blocked on Nov. 26 alone.
The Dec. 2 ThaiCERT report reiterated those findings. Patchstack estimates that WP Rocket is used on more than 5.5 million websites, but the number of vulnerable installations remains unknown. Blocked requests do not represent confirmed compromises.
According to WP Rocket’s security advisory, versions 3.15 through 3.24.1 are vulnerable when either of these features is enabled:
- LazyLoad for CSS background images
- Self-host Google Fonts
Both features are disabled by default. As with other WordPress plugin vulnerabilities, administrators must establish actual exposure rather than rely on installation counts.
How attackers exploit the flaw
Insufficient validation within WP Rocket’s optimization tools allows attackers to introduce and execute unauthorized PHP code. The official CVE record classifies the flaw as path traversal (CWE-22), with a CVSS 3.1 score of 9.8. Exploitation requires neither authentication nor user interaction.
Successful exploitation could allow attackers to modify website content, access sensitive information, or disrupt services. Attackers could also establish persistent access through malicious PHP web shells, a technique observed in previous WordPress plugin attacks.
How organizations can mitigate the threat
WP Rocket released version 3.24.2 on Nov. 19 to fix the vulnerability. Organizations unable to patch immediately can use the vendor’s mitigation helper plugin, which requires individual activation on each affected WordPress Multisite subsite.
Alongside the vendor’s guidance, security teams should prioritize the following measures:
- Identify exposed installations: Inventory WP Rocket deployments, review historical feature configurations, and address licensing restrictions that could delay updates.
- Apply and verify security updates: Install version 3.24.2 or later and confirm the installed version across production, staging, and managed customer environments.
- Apply temporary mitigations: Disable both affected features under Page Optimization > Image & Media, or Media on versions earlier than 3.24. Confirm both settings remain disabled until patching is complete.
- Conduct targeted threat hunting: Review historical access logs, unexpected outbound connections, and unauthorized accounts. Inspect WordPress content, upload, and WP Rocket configuration directories for suspicious PHP files. Use file integrity monitoring to detect unauthorized changes.
- Harden application defenses: Restrict unnecessary outbound connections, enforce least-privilege permissions, prevent PHP execution where unnecessary, and apply available web application firewall protections.
- Contain compromises and validate recovery: Preserve evidence, isolate affected systems as appropriate, revoke unauthorized sessions, and rotate potentially exposed credentials. Validate backups and rebuild systems if their integrity cannot be established.
- Test incident response plans: Exercise detection, containment, investigation, and recovery procedures with security teams and hosting providers.
Why patching alone is insufficient
Installing the security update closes the documented attack paths but does not remove malicious files or unauthorized accounts created before patching. Previously exposed installations require investigation even if they are now running a patched version.
As other WordPress remote code execution risks illustrate, security teams must also account for vulnerabilities in the software and components supporting their websites. Tracking configurations alongside software versions can help administrators identify exposure more accurately.
Read more: Regularly testing emergency patch and recovery procedures can help organizations respond when exploitation begins before security updates have been fully deployed.





