Advisory · WP Rocket · CVE-2026-125812 · exploited

WP Rocket CVE-2026-125812: check, update and look back

WP Rocket, the premium caching plugin from WP Media, had an unauthenticated remote code execution flaw in every version before 3.24.2. A visitor’s crafted report to the public rocket_beacon endpoint can make the site download a file from the attacker and save it as PHP, on sites where LazyLoad for CSS background images or local hosting of Google Fonts is switched on. The fix shipped on 19 November 2026 under a changelog line that did not call it a vulnerability. Patchstack saw the first attack on 25 November and tens of thousands of blocked attempts the next day, and public exploit code is on GitHub. This page covers who is exposed, how to check a site or a whole server, what to do if you cannot update, and what to do if the look-back finds something.

First published in the weekly briefing of 30 November 2026 and moved here so the checks have a page of their own. The modified date changes when the exploitation status does.

Affected
WP Rocket before 3.24.2, on sites with LazyLoad for CSS background images or local Google Fonts switched on (both off by default)
Fixed in
3.24.2, 19 November 2026; 3.24.3 of 26 November is current. Updates need an active licence
Exploitation
Attacked since 25 November 15:27 UTC per Patchstack; public exploit code; not in CISA’s KEV as of 27 November
Severity
CVSS 3.1 9.8, no login, no user interaction (Patchstack, as CNA)
If you cannot update
Switch both features off and clear the cache
After updating
Look for PHP files in wp-content/, wp-rocket-config/ and uploads: the update removes nothing

Plugins · WP Rocket · CVE-2026-125812 · exploited

WP Rocket before 3.24.2: unauthenticated code execution through the rocket_beacon endpoint

WP Rocket runs a small script in visitors’ browsers that measures each page and reports what it finds to a public AJAX endpoint: a POST to /wp-admin/admin-ajax.php with action=rocket_beacon. WP Rocket then uses the URLs in those reports to optimise the page, for example by fetching a background image’s stylesheet or a Google Font and storing a local copy. According to Patchstack, it did not validate those URLs strictly enough. A crafted report can make the site download content from a server the attacker controls and save it as a PHP file, and the attacker’s code then runs on the server. Patchstack does not say exactly where the file lands or how it is triggered; NVD classifies the flaw as path traversal (CWE-22). No login is needed.

Two features lead there: LazyLoad for CSS background images, and hosting Google Fonts locally, which Patchstack calls Host Fonts Locally. Both are off by default, and Patchstack describes both as “common on performance-tuned sites”. Patchstack says attackers often target both paths in one request, so that whichever feature a site has on, one of them fires. A site with both features off is not exposed through this flaw, but should still be updated: settings change, and a later administrator may switch one on.

Patchstack’s entry lists every version before 3.24.2 as vulnerable and gives no lower bound. It credits Vorelito, who reported the flaw on 4 November, and scores it 9.8 under CVSS 3.1 with no privileges and no user interaction. Its database now shows the “Known to be exploited” marker on the entry. NVD lists the CVE as Deferred. CISA’s assessment on the NVD record, written at 14:57 UTC on 25 November, says exploitation “none”; the first attack Patchstack recorded came half an hour later. The CVE was not in CISA’s Known Exploited Vulnerabilities catalog as of its 27 November version.

What Patchstack has seen, from its own telemetry on the sites it protects. The first attempt came at 15:27:11 UTC on 25 November, from an attacker working by hand who retried with encoded variants after being blocked. Within a day, automated campaigns had taken over, with “tens of thousands” of blocked attempts on 26 November alone. Several independent operators are involved; one cluster sent byte-identical requests from four residential addresses. Payloads are hosted on bare IP addresses, wildcard DNS names under nip.io, temporary trycloudflare.com tunnels, and other WordPress sites that are probably compromised. These are blocked requests, not counted compromises, and as of 27 November Patchstack was the only primary source reporting exploitation.

How many sites are exposed is not known. WP Rocket is sold by WP Media rather than distributed through WordPress.org, so there is no public install count, and Patchstack’s article header shows “5.5M+” without saying what it counts. Neither figure says how many sites have one of the two features on. Treat it as a plugin with very wide reach rather than a measured exposure.

Why the timing matters. The fix was merged into WP Rocket’s public GitHub repository at 18:22 UTC on 18 November, as a “Merge commit from fork”, the form GitHub uses for private security fixes. Release 3.24.2 followed on 19 November. Its changelog’s only security line reads “Improve validation of cached CSS, font and preconnect files”, which does not tell a site owner that an unauthenticated code execution flaw was closed. The first attack came 6 days and 21 hours after the fix became public, and two days after Patchstack’s disclosure. That is the gap Wordfence warned about on 23 November, when it described attacker tooling that compares code before and after a security patch to find the flaw and write an exploit.

Figure 1 · At a glance

Below 3.24.2 with either feature on: update today, then look back.

QuestionAnswer
AffectedWP Rocket before 3.24.2, with CSS-background lazy load or local Google Fonts on
ExploitationAttacked since 25 Nov per Patchstack; public exploit code; not in KEV
Fixed in3.24.2, 19 November 2026 (3.24.3 current); needs an active licence
If you cannot updateSwitch both features off and clear the cache
After updatingLook for PHP in wp-content/, wp-rocket-config/ and uploads
The points that decide what to do about the WP Rocket unauthenticated code execution flaw CVE-2026-125812, as stated in the sections below.
When (UTC)What happenedSource
4 NovVorelito reports the flaw to PatchstackPatchstack entry
18 Nov, 18:22The fix is merged into WP Rocket’s public GitHub repositoryGitHub commit history
19 NovWP Rocket 3.24.2 released; the changelog says “Improve validation of cached CSS, font and preconnect files”WP Rocket changelog
23 NovPatchstack publishes the vulnerability, CVSS 9.8Patchstack entry
25 NovCVE-2026-125812 published on NVDNVD
25 Nov, 15:27First exploitation attemptPatchstack
25 Nov, 17:31A public proof-of-concept repository is created on GitHubGitHub
26 Nov“Tens of thousands” of blocked attempts in a day. WP Rocket 3.24.3 released, with no security line in its changelogPatchstack; WP Rocket changelog
27 NovPatchstack publishes “under active attack”. Not in CISA’s KEV (catalog 2026.11.27)Patchstack; CISA

WP Rocket · who is exposed

Three conditions decide exposure: the version and two optional features

A site is exposed to CVE-2026-125812 only when the first condition and at least one of the other two are true. All three can be read in a minute with the commands in the next section.

Who is most likely to be caught out. Sites whose WP Rocket licence has lapsed, because they keep the last release they received and may not show an update notice. Sites an agency built and handed over, where the speed settings were tuned once and nobody owns the plugin now. Staging and development copies reachable from the internet, which are rarely updated. And multisite networks, where WP Rocket keeps its settings for each site of the network separately, so one subsite can have a feature on while the main site does not.

A firewall can help but is not the fix. Patchstack says its own mitigation rule for this flaw was live more than two days before the first attack. We have not seen published statements from other firewall vendors about this CVE, so do not assume a security plugin or a hosting firewall blocks it. The update is the fix; the firewall buys time.

Turning the two features off after updating is not necessary. 3.24.2 changes how the URLs are validated, so a site on the fixed version can keep using both. Turning them off is the interim step for a site that cannot be updated yet.

ConditionExposed whenNot exposed when
WP Rocket versionAny release before 3.24.2. Patchstack gives no lower bound3.24.2 or later (3.24.3 is current)
LazyLoad for CSS background imagesSwitched onOff, the default
Hosting Google Fonts locally (Patchstack: Host Fonts Locally)Switched onOff, the default

WP Rocket · checks, update and look-back

Which version, are the two features on, and did anything get written

Read-only checks first. Run them on every site with WP Rocket, including staging copies that are reachable from the internet. The file checks matter even after the update, because the update closes the endpoint and leaves any planted file where it is.

  1. 01

    Which version is installed

    The plugin folder is wp-rocket whether it came from a licence or a zip:

    WP-CLI
    wp plugin get wp-rocket --field=version --skip-plugins --skip-themes

    3.24.2 or later is fixed; 3.24.3 is current. Anything lower is vulnerable whatever its settings.

  2. 02

    Every site on the server at once

    For hosts with many accounts. Adjust the paths to where your sites live:

    shell
    for s in /home/*/public_html /var/www/*; do v=$(wp plugin get wp-rocket --field=version --path="$s" --skip-plugins --skip-themes 2>/dev/null) && echo "$s $v"; done

    Each line is a site and its WP Rocket version. Sites that print nothing do not have WP Rocket, or are not WordPress.

  3. 03

    Are the two features switched on

    WP Rocket keeps its settings in one option. This prints every setting whose name mentions lazy loading or fonts, with its value:

    WP-CLI
    wp option get wp_rocket_settings --format=json --skip-plugins --skip-themes | grep -oE "\"[a-z_]*(lazyload|font)[a-z_]*\":[^,}]*"

    A value of 1 on the CSS-background lazy-load setting or on the local-fonts setting means the vulnerable path was reachable on this site. Setting names differ between versions, so read the list rather than looking for one exact key.

  4. 04

    Update

    With an active licence the update arrives like any other:

    WP-CLI
    wp plugin update wp-rocket --skip-plugins --skip-themes
    wp plugin get wp-rocket --field=version --skip-plugins --skip-themes

    If the update is not offered, download the current zip from the WP Rocket account and install it over the old one. Clear WP Rocket’s cache afterwards.

  5. 05

    If you cannot update today

    Turn off LazyLoad for CSS background images and the local Google Fonts option in WP Rocket’s settings, save, and clear the cache. Patchstack names this as the interim step. It closes both paths the attack uses, at the cost of those two optimisations, until the update is in.

    WP-CLI
    wp option get wp_rocket_settings --format=json --skip-plugins --skip-themes | grep -oE "\"[a-z_]*(lazyload|font)[a-z_]*\":[^,}]*"

    Run the settings check again afterwards: both should now print 0.

  6. 06

    PHP files that should not be there

    Patchstack names three places, with wp-media-*.php as an example file name. Files changed since the fix became public:

    shell
    find wp-content -maxdepth 1 -type f -name "*.php" -newermt 2026-11-18 -ls
    find wp-content/wp-rocket-config wp-content/uploads -type f -name "*.php" -newermt 2026-11-18 -ls 2>/dev/null
    find wp-content -name "wp-media-*.php" -ls

    At the top of wp-content, expect index.php and drop-ins such as advanced-cache.php and object-cache.php; WP Rocket rewrites advanced-cache.php itself, so a new date on it is normal, but read it. wp-rocket-config/ normally holds configuration files named after the site’s host names. Any PHP file in uploads is suspect. Run the find again without -newermt if the site was on a vulnerable version for a long time.

  7. 07

    Requests from the addresses Patchstack published

    The rocket_beacon action travels in the POST body, which access logs do not record, so look for POSTs to admin-ajax.php from Patchstack’s ten most active addresses:

    shell
    zgrep -hE "^(103\.235\.74\.7[12]|157\.245\.122\.230|152\.89\.170\.194|180\.232\.236\.101|201\.79\.120\.217|112\.78\.154\.32|167\.71\.75\.155|43\.163\.8\.253|51\.79\.199\.209) .*POST /wp-admin/admin-ajax.php" /var/log/nginx/access.log* /var/log/httpd/*access_log* /var/log/apache2/access.log* 2>/dev/null | head -20

    No output is a good sign, not proof: attackers rotate addresses, and behind Cloudflare or another proxy the first field is the proxy’s address unless the real client IP is logged. A match on a site that was vulnerable with a feature on is a reason to treat it as an incident.

  8. 08

    Outbound fetches to the attackers’ hosting

    The site downloads the payload itself, so look for the hosting Patchstack names in what the site saved:

    shell
    grep -rlE "nip\.io|trycloudflare\.com" wp-content --include=*.php --include=*.css 2>/dev/null | head

    Also check firewall or egress logs for connections from the web server to nip.io names, trycloudflare.com tunnels or bare IP addresses since 18 November. A web server rarely needs to reach either.

  9. 09

    If a file or a request matched

    Treat the site as compromised, not as updated. Copy the logs off the server first, update WP Rocket, then list what else an attacker could have added before deleting anything:

    shell
    wp user list --role=administrator --fields=ID,user_login,user_email,user_registered --skip-plugins --skip-themes
    ls -la wp-content/mu-plugins/ 2>/dev/null
    wp cron event list --fields=hook,next_run_relative --skip-plugins --skip-themes

    Then rotate the database password, the salts in wp-config.php and every administrator password from a clean device.

WP Rocket · if the site was attacked

A planted file turned up: what to do, in order

Patching after the fact closes the door behind the attacker. If the checks above found a file you cannot explain, or requests from the published addresses, work through these steps before the site is called clean.

  1. 01

    Preserve first

    Copy the logs and the suspicious files off the server before changing anything, with their timestamps:

    shell
    mkdir -p ~/ir-$(date +%F) && cp -a --parents wp-content/wp-rocket-config ~/ir-$(date +%F)/ 2>/dev/null
    find wp-content -type f -name "*.php" -newermt 2026-11-18 -print0 | xargs -0 -r cp -a --parents -t ~/ir-$(date +%F)/
    cp -a /var/log/nginx /var/log/httpd /var/log/apache2 ~/ir-$(date +%F)/ 2>/dev/null

    Keep the copy somewhere the site’s own account cannot write to. The timestamps tell you when the attacker arrived, which decides how far back a restore has to go.

  2. 02

    Update WP Rocket, or switch the two features off

    So the same hole cannot be used again while you clean:

    WP-CLI
    wp plugin update wp-rocket --skip-plugins --skip-themes

    If the licence has lapsed, install the current zip from the WP Rocket account, or turn off both features until you can.

  3. 03

    Look for what else the attacker added

    Code execution as the web user lets an attacker add accounts, must-use plugins, scheduled tasks and code in other files. Each of these survives deleting the planted file:

    shell
    wp user list --role=administrator --fields=ID,user_login,user_email,user_registered --skip-plugins --skip-themes
    ls -la wp-content/mu-plugins/ 2>/dev/null
    wp cron event list --fields=hook,next_run_relative --skip-plugins --skip-themes
    find . -name "*.php" -newermt 2026-11-18 -not -path "./wp-content/cache/*" -ls | head -50
    ls -la wp-config.php .htaccess .user.ini 2>/dev/null

    Compare the PHP files that changed with plugin and theme updates you made yourself. Core files can be checked with wp core verify-checksums, and WordPress.org plugins with wp plugin verify-checksums --all.

  4. 04

    Clean, or restore from before the attack

    A restore is usually faster and more certain than hunting. Use a backup from before 18 November, when the fix became public, or from before the earliest suspicious timestamp, and update WP Rocket before the restored site takes traffic.

    WP-CLI
    wp core verify-checksums --skip-plugins --skip-themes
    wp plugin verify-checksums --all --skip-plugins --skip-themes

    WP Rocket is not on WordPress.org, so the plugin checksum command cannot verify it: replace its folder with a fresh copy from the WP Rocket account instead.

  5. 05

    Rotate what the attacker could read

    PHP running as the site could read wp-config.php. Change the database password, the salts and every administrator password, from a clean device, and revoke application passwords:

    WP-CLI
    wp config shuffle-salts --skip-plugins --skip-themes
    wp user application-password list 1 --fields=uuid,name,created --skip-plugins --skip-themes

    Also rotate API keys stored in the database or wp-config.php: payment gateways, SMTP, CDN and backup storage.

  6. 06

    On shared servers, check the neighbours

    If several sites run as the same system user, or the web user can read other accounts’ files, one planted file can reach them all. Run the WP Rocket file check on every site on the server, not only the one where the file turned up.

Common questions

Common questions about the WP Rocket vulnerability

Is my site vulnerable to the WP Rocket flaw?

Only if WP Rocket is below 3.24.2 and one of two features is on: LazyLoad for CSS background images, or hosting Google Fonts locally. Both are off by default. Check the version with wp plugin get wp-rocket --field=version, or on the Plugins screen, and the two settings in WP Rocket’s options. If either feature was on with an older version, also check for PHP files that should not be there, because the update does not remove them.

I updated WP Rocket. Am I done?

If both features were always off, yes. If one was on while the site ran an older version, look in wp-content/, wp-content/wp-rocket-config/ and wp-content/uploads/ for PHP files you cannot explain, and in your access logs for POSTs to admin-ajax.php from the addresses Patchstack published. Attacks began on 25 November, so a site that updated automatically on 19 or 20 November was never exposed to them.

Why did WP Rocket not update on my site?

WP Rocket is a premium plugin. It updates through your WP Rocket licence, not WordPress.org, and stops receiving updates when the licence expires. Download 3.24.2 or later from your WP Rocket account and install it over the old version, or turn off the two features until you can.

Is WP Rocket in CISA’s exploited list?

Not as of its 27 November catalog. The exploitation evidence comes from Patchstack, which records attacks against the sites it protects. CISA’s catalog often lags for WordPress plugins, so do not wait for it.

Do I have to keep the two WP Rocket features switched off after updating?

No. 3.24.2 fixes how WP Rocket validates the URLs it is sent, so a site on the fixed version can use LazyLoad for CSS background images and local Google Fonts again. Switching them off is only the interim step for a site that cannot be updated yet.

Should I stop using WP Rocket because of this?

Not because of this alone. The flaw was fixed before the attacks started. What made sites vulnerable is that the fix did not reach them: lapsed licences, unowned speed settings and staging copies nobody updates. If you keep WP Rocket, keep its licence current and check its version as part of your regular updates, as you would for any premium plugin.

Choose the response path

WP Rocket runs on sites nobody checks every week: choose the response path.

Active compromise or indicator found

A planted file or a suspicious request turned up on a WP Rocket site.

Best when the look-back found PHP you cannot explain in wp-content, wp-rocket-config or uploads, or the access log shows the published attack addresses, and you want the site cleaned, credentials rotated and persistence removed in one pass.

Preventive WordPress review

Get every site’s WP Rocket version, licence and settings checked.

Best when you look after several sites with premium plugins that update only through a licence, and want versions, risky settings and the file look-back done once with a written result per site.