Attackers are exploiting a critical WP Rocket flaw that lets them run code on WordPress sites
CVE-2026-125812 lets an unauthenticated attacker plant and run PHP on sites using two common WP Rocket features. The fix is version 3.24.2, released November 19; Patchstack says exploitation began November 25.
Disclosure: This article cites notices published by EverThread, which, like The Parameter, is owned by PB Digital LLC.
Drafted by The Parameter's AI desk and reviewed by PB Digital before publication.

Attackers are exploiting a critical flaw in WP Rocket, a widely used caching plugin for WordPress, that lets them write and run their own PHP code on a site without logging in. The bug, CVE-2026-125812, is rated 9.8 out of 10 on the CVSS scale by Patchstack, the security firm that is tracking the attacks. WP Rocket fixed it in version 3.24.2, released on November 19.
Who is affected
WP Rocket's advisory says the flaw affects versions 3.15 through 3.24.1, but only on sites where at least one of two optimization features is switched on: LazyLoad for CSS background images, or Self-host Google Fonts (Patchstack calls the second one Host Fonts Locally). Patchstack notes that both features are off by default but are "common on performance-tuned sites." Patchstack's advisory lists the plugin at more than 5.5 million sites.
How the attack works
According to Patchstack, WP Rocket runs a small script in visitors' browsers that measures each page and reports back to a public endpoint, admin-ajax.php with the action rocket_beacon. The plugin then uses the URLs in that report to optimize the page, but does not check them strictly enough. A crafted report can make the site download a file from an attacker's server and save it as PHP, which then runs on the server.
What the attacks look like
Patchstack says its telemetry recorded the first exploitation attempt on November 25 at 15:27 UTC (10:27 a.m. Eastern). The first attacker appeared to work by hand, retrying with encoded variants when blocked. Within a day, Patchstack says, the activity had turned into automated campaigns, with "tens of thousands of blocked attempts on November 26 alone." It reports several independent operators, some sending one identical payload to site after site, with payloads hosted on bare IP addresses, nip.io names, temporary trycloudflare.com tunnels and other WordPress sites that are likely compromised.
As of Sunday morning, the flaw was not in CISA's Known Exploited Vulnerabilities catalog (catalog version 2026.11.27, the latest available). The exploitation reports so far come from Patchstack, which WP Rocket's own advisory cites.
What WP Rocket and Patchstack advise
WP Rocket's guidance is to update to 3.24.2 or later. For sites that cannot update yet, including those with expired licenses, it says to turn off both features under Page Optimization, Image & Media, which "mitigates the documented attack paths immediately." It has published a small helper plugin that switches both features off, aimed at agencies and hosts that manage many sites.
Both companies say an update does not undo a past compromise. "Any files or accounts an attacker already created require separate investigation," WP Rocket writes. Patchstack suggests looking for unexpected PHP files in wp-content/wp-rocket-config/, wp-content/uploads/ or directly in wp-content/ (for example, files named wp-media-*.php), and for outbound requests from the web server to unfamiliar hosts. The issue was also listed in EverThread notices.
Why it matters
WP Rocket is one of the more widely installed performance plugins for WordPress, and this flaw needs no login, only a crafted request to a public endpoint. The fix has been out since November 19, so sites that update promptly are covered, but any site that ran a vulnerable version with either feature on during the past week should be checked for planted files, not just patched.
Sources
- WP Rocket security advisory and mitigation steps for CVE-2026-125812 — WP Rocket, updated Nov. 27, 2026
- Critical WP Rocket RCE (CVE-2026-125812) Under Active Attack — Patchstack, Nov. 27, 2026
- Known Exploited Vulnerabilities Catalog (version 2026.11.27) — CISA
- WP Rocket CVE-2026-125812 (via EverThread notices) — EverThread notices
The Parameter reports only what its sources support. Corrections and how we work: editorial policy or hello@theparameter.ai.