TRENDING
Three Japanese emergency triage tags fanned out on a dark wooden table, with black, red, yellow and green priority bands along the bottom edge of the center tag
December 1, 2026
How to Triage Vulnerabilities in Python With CVSS, EPSS, and CISA KEV: Build a Decision Engine, Replay It on 71 Real KEV Additions, and See What Each Signal Missed
Three goats standing on top of a rusty steam locomotive boiler like winners on a podium, inside a roofed shed in Don Khon, Laos
December 1, 2026
The Register Gives China Mobile Credit for the “Most Capable” All-Domestic Open-Weight Model, but It Is China Telecom’s Xing4.1-Preview, Its Report Has No Capability Scores, the 4.68x Is a Simulation, and the Model Card’s Own Table Has It First or Tied for First on 2 of 18 Rows
A glass sugar dispenser with a steel lid beside a salt shaker and a pepper shaker with brass caps on a diner table
December 1, 2026
easyDNS Says Customer Records, Stored AWS Keys and Unsalted Mailbox Password Hashes Were Exposed, but the Public Notice Gives No Counts, the Entry Point Appears Only in the CEO’s Comments to a Reporter, and It Is the Second Security Incident Its Blog Has Posted This Year
Brass combination lock with three number wheels and a hinged latch on a black case
December 1, 2026
How to Lock Python Dependencies With Hashes So pip Refuses a Swapped File: Run a Tamper Test, Read pip’s Hash Errors, Build a Lock That Works on Windows and Linux, and Lint It in CI
A pair of unfinished pale wooden clogs, called sabots, on a clogmaker's workbench among wood shavings and hand tools.
December 1, 2026
Anthropic Denies Claude Is Trained to Sabotage Work, and Its Documents Fit the Denial but Show a Silent Safeguard Retired After About Two Days in June, a Training Cap on Kernel and LLM-Architecture Skills With No Released-Model Score, and Viral Evidence That Cannot Tell Them Apart
01 Dec 2026
SXZ.io SXZ.io
  • Home
Search the Site
Popular Searches:
Technology Amazon AI
Recent Posts
A bicycle chain with a missing link lying on an open palm beside the loose pin and clip that should have joined it
How to Fix SSL CERTIFICATE_VERIFY_FAILED in Python Without Turning Verification Off: Read the Error Code, Find Who Has to Fix It, Trust Your Own CA, and Catch Broken Chains in CI
November 30, 2026
Pale church wall with an arched window filled with a star-pattern stone lattice screen
The Unpublished Lattice Paper Attributed to Anthropic Reached the Public as Two Title Hashes That Match One Guessable String, the Coverage Splits on What It Breaks Because the Title Names Quantum Algorithms, Not a Key Recovery, and 21 of 24 Sites We Tested Still Pair ML-KEM With X25519
November 30, 2026
A tall cardon cactus with many upright arms stands in front of a field of cardon cacti under a blue sky with white clouds in the Sonoran Desert
Cacti’s 4HTTP2SHELL Chain Drew 1,793 Attack Attempts on One Honeypot Sensor in Four Days, but the Fix Is Still Only Source Patches With No 1.2.32 Release or CVE ID, the Advisory Calls It “Authenticated,” and on Our Reading of the Code the Guest Route Hinges on One Setting That Ships as “No User”
November 30, 2026
SXZ.io SXZ.io
  • Home

Categories

Articles 325 Posts
News 331 Posts
Learning Hub 297 Posts
Home/News/Patchstack Reports Attacks on an Unauthenticated WP Rocket Flaw, but the Fix Was Public in the Vendor’s Repository Nearly Seven Days Earlier and Shipped Under the Changelog Line “Improve validation of cached CSS, font and preconnect files”
News

Patchstack Reports Attacks on an Unauthenticated WP Rocket Flaw, but the Fix Was Public in the Vendor’s Repository Nearly Seven Days Earlier and Shipped Under the Changelog Line “Improve validation of cached CSS, font and preconnect files”

Patchstack says attackers have exploited WP Rocket CVE-2026-125812 since November 25; the fix reached the vendor’s public repository on November 18 and shipped on November 19 with a one-line...

November 27, 2026 19 Min Read
47

Patchstack says attackers have been exploiting CVE-2026-125812, an unauthenticated remote code execution flaw in the WP Rocket caching plugin, since 15:27 UTC on November 25. WP Rocket’s maker advertises “5.6M+ websites worldwide.” Patchstack’s post, dated November 27, says the flaw lets unauthenticated attackers “write and execute PHP code” on sites that run a version before 3.24.2 with either of two optional features turned on, and that tens of thousands of attempts were blocked on November 26 alone. In the places we looked, Patchstack is the only source reporting attacks: we found no second report, and CISA’s catalog (version 2026.11.27, released at 18:03 UTC) does not list the CVE.

Table Of Content

  • What Patchstack reports
  • The timeline
  • What the public commit shows
  • Where the accounts differ
  • Not the first problem in the same endpoint
  • What to do now
  • Find the installs and the files
  • If you cannot update yet
  • What we could not confirm
  • What we checked

The public record around the fix says more than the vendor’s release notes do. The patch was committed to WP Rocket’s public GitHub repository at 18:22 UTC on November 18 (the commit’s own timestamp), 6 days 21 hours before the first observed attack. Version 3.24.2 shipped the next day with one security line, “Improve validation of cached CSS, font and preconnect files,” which names no CVE, no severity and no attack. This post sets Patchstack’s account against that commit, the changelog, the CVE record, the vendor’s license docs and the plugin’s source, and ends with a read-only checker for the two things Patchstack tells site owners to look at: the installed version and planted PHP files.

What Patchstack reports

  • Who is exposed. The flaw affects “WP Rocket versions before 3.24.2 on sites with either LazyLoad for CSS background images or Host Fonts Locally turned on,” and “both are off by default, but both are common on performance-tuned sites.”
  • How it works. “WP Rocket runs a small script in visitors’ browsers that measures each page and reports the results to a public AJAX endpoint.” An attacker “who sends a crafted report can make the site download content from a server the attacker controls and save it as a PHP file. The attacker’s code then runs on the server.” Every attempt goes to POST /wp-admin/admin-ajax.php with action=rocket_beacon.
  • Who is attacking. The first attacker worked by hand and retried with encoded variants when blocked; “within a day the activity had turned into automated campaigns.” Patchstack describes several independent operators, one of them sending byte-identical requests from four residential addresses, with payloads hosted on bare IP addresses, wildcard names such as nip.io, temporary trycloudflare.com tunnels, “and other WordPress sites that are likely compromised.”
  • What it does not say. The post gives no count of compromised sites and no payload. Its numbers are requests blocked by Patchstack’s own rule on sites it protects.

Patchstack’s table of the ten most active addresses since November 25 adds up to 25,806 blocked requests (our sum), which it calls “roughly half of all blocked attempts.” We read the registry record for each address through RDAP on November 27; every record is consistent with the network name in Patchstack’s table, and we did not try to attribute the addresses any further. The addresses are defanged here.

Address Patchstack’s label Blocked requests Registry record (RDAP)
103.235.74[.]71 Ikubaru (Indonesia) 5,352 IDNIC-IKUBARU-ID, ID
157.245.122[.]230 DigitalOcean 5,003 DIGITALOCEAN-157-245-0-0, DigitalOcean, LLC
152.89.170[.]194 C1V Hosting (Italy) 3,455 C1V-Hosting, IT
180.232.236[.]101 Eastern Telecom (Philippines) 2,288 IDS-Network, PH
103.235.74[.]72 Ikubaru (Indonesia) 1,950 IDNIC-IKUBARU-ID, ID
201.79.120[.]217 DigitalOcean 1,938 DO-13, DigitalOcean, LLC
112.78.154[.]32 Biznet (Indonesia) 1,876 BIZNET-PREPAID-BLOCK, ID
167.71.75[.]155 DigitalOcean 1,600 DIGITALOCEAN-167-71-0-0, DigitalOcean, LLC
43.163.8[.]253 Aceville / Tencent Cloud (Singapore) 1,326 ACEVILLEPTELTD-SG, SG
51.79.199[.]209 OVH (Singapore) 1,018 OVH-DEDICATED-FO, OVH Singapore PTE. LTD

The timeline

When (UTC) What the record shows Where we read it
Aug 28 NVD publishes CVE-2026-5934, an unauthenticated stored cross-site scripting flaw in the same rocket_beacon AJAX endpoint (versions up to 3.21.0.1) NVD
Oct 1, 19:49 Version 3.23.5 ships with five items labeled Security, one of them “Sanitize image srcset data collected by the beacon before storing it” GitHub release, vendor changelog
Nov 10, 12:37 Patchstack, as the CVE numbering authority, reserves CVE-2026-125812 CVE record
Nov 18, 18:22 The fix is committed to the public repository as “Merge commit from fork”: 12 entries, 9 code files GitHub commit
Nov 19, 14:52 Version 3.24.2 is released with the line “Improve validation of cached CSS, font and preconnect files” GitHub release, vendor changelog
Nov 23, 11:36 The CVE record’s public date; Patchstack’s database showed its entry as “4 days ago” when we read it on November 27 CVE record, Patchstack database
Nov 25, 12:09 The CVE record is published; NVD creates its entry at 13:17 with status Deferred CVE record, NVD
Nov 25, 14:57 CISA’s enrichment of the record: Exploitation none, Automatable yes, Technical Impact total CVE record history
Nov 25, 15:27 First exploitation attempt in Patchstack’s telemetry Patchstack
Nov 26, 11:48 Version 3.24.3 is released; its notes list no security item GitHub release
Nov 27, 13:32 The CNA adds the tag x_known-exploited-vulnerability to the record; Patchstack’s post appears in its feed at 13:48 CVE record history, feed
Nov 27, 18:03 CISA releases KEV catalog 2026.11.27; the CVE is not in it CISA KEV feed

The script below turns those stamps into intervals. Each stamp is copied from the source named in its comment.

# wpr_clock.py
"""Interval arithmetic for the CVE-2026-125812 timeline. Standard library only. Every stamp is UTC."""
from datetime import datetime, timezone


def utc(text):
    return datetime.strptime(text, "%Y-%m-%d %H:%M:%S").replace(tzinfo=timezone.utc)


CVE_RESERVED = utc("2026-11-10 12:37:30")    # CVE record, cveMetadata.dateReserved
FIX_PUBLIC = utc("2026-11-18 18:22:12")      # GitHub commit 0b37477c, "Merge commit from fork"
RELEASE_3242 = utc("2026-11-19 14:52:52")    # GitHub release v3.24.2 (vendor changelog says November 19)
DATE_PUBLIC = utc("2026-11-23 11:36:48")     # CVE record, datePublic
CVE_PUBLISHED = utc("2026-11-25 12:09:18")   # CVE record, datePublished
SSVC_STAMP = utc("2026-11-25 14:57:44")      # CISA ADP entry, Exploitation: none
FIRST_ATTEMPT = utc("2026-11-25 15:27:11")   # Patchstack telemetry, first exploitation attempt
RELEASE_3243 = utc("2026-11-26 11:48:51")    # GitHub release v3.24.3
KEV_TAG = utc("2026-11-27 13:32:12")         # CVE record: CNA adds the tag x_known-exploited-vulnerability


def span(a, b):
    seconds = int((b - a).total_seconds())
    sign = "-" if seconds < 0 else ""
    days, rest = divmod(abs(seconds), 86400)
    hours, rest = divmod(rest, 3600)
    minutes, secs = divmod(rest, 60)
    return f"{sign}{days}d {hours:02d}h {minutes:02d}m {secs:02d}s"


PAIRS = [
    ("CVE reserved to fix public in the repository", CVE_RESERVED, FIX_PUBLIC),
    ("fix public to 3.24.2 released", FIX_PUBLIC, RELEASE_3242),
    ("3.24.2 released to CVE datePublic", RELEASE_3242, DATE_PUBLIC),
    ("fix public to first attempt", FIX_PUBLIC, FIRST_ATTEMPT),
    ("3.24.2 released to first attempt", RELEASE_3242, FIRST_ATTEMPT),
    ("CVE datePublic to first attempt", DATE_PUBLIC, FIRST_ATTEMPT),
    ("CVE datePublished to first attempt", CVE_PUBLISHED, FIRST_ATTEMPT),
    ("SSVC 'Exploitation: none' stamp to first attempt", SSVC_STAMP, FIRST_ATTEMPT),
    ("first attempt to 3.24.3 released", FIRST_ATTEMPT, RELEASE_3243),
    ("first attempt to known-exploited tag", FIRST_ATTEMPT, KEV_TAG),
]
for label, start, end in PAIRS:
    print(f"{label:50s} {span(start, end)}")
CVE reserved to fix public in the repository       8d 05h 44m 42s
fix public to 3.24.2 released                      0d 20h 30m 40s
3.24.2 released to CVE datePublic                  3d 20h 43m 56s
fix public to first attempt                        6d 21h 04m 59s
3.24.2 released to first attempt                   6d 00h 34m 19s
CVE datePublic to first attempt                    2d 03h 50m 23s
CVE datePublished to first attempt                 0d 03h 17m 53s
SSVC 'Exploitation: none' stamp to first attempt   0d 00h 29m 27s
first attempt to 3.24.3 released                   0d 20h 21m 40s
first attempt to known-exploited tag               1d 22h 05m 01s

The fix was public 20 hours 31 minutes before 3.24.2 shipped and 6 days 21 hours before the first observed attack. The CISA enrichment that lists Exploitation as none was written 29 minutes 27 seconds before that attack, and the CNA marked the record as known exploited 1 day 22 hours later. Six days from release to first observed attack is close to the six days between the patch and CISA’s listing of the WordPress core updater flaw in an earlier report of ours.

What the public commit shows

The commit of November 18 is titled “Merge commit from fork,” and its message lists every change in it. The script below summarizes it from GitHub’s API.

# wpr_diffstat.py
"""Summarize the public security merge in wp-media/wp-rocket. GitHub REST API, no token. Needs: pip install requests"""
import re

import requests

SHA = "0b37477cd276274e81b91464e312ceac16f84b33"
resp = requests.get(f"https://api.github.com/repos/wp-media/wp-rocket/commits/{SHA}",
                    headers={"Accept": "application/vnd.github+json", "User-Agent": "wpr-diffstat"}, timeout=60)
resp.raise_for_status()
data = resp.json()
message = data["commit"]["message"]
code = [f for f in data["files"] if not f["filename"].startswith("tests/")]
tests = [f for f in data["files"] if f["filename"].startswith("tests/")]


def total(files, key):
    return sum(f[key] for f in files)


print(data["sha"][:12], data["commit"]["committer"]["date"], message.splitlines()[0])
print(f"files {len(data['files'])}: code {len(code)} (+{total(code, 'additions')} -{total(code, 'deletions')}), "
      f"tests {len(tests)} (+{total(tests, 'additions')} -{total(tests, 'deletions')})")
subjects = re.findall(r"^\* (fix|refactor)\(([^)]+)\): (.+)$", message, re.M)
print(f"entries {len(subjects)}; Co-Authored-By trailers naming Claude Opus 5.5: "
      f"{message.count('Co-Authored-By: Claude Opus 5.5')}")
for kind, scope, subject in subjects:
    print(f"  {kind}({scope}): {subject}")
print("code files:")
for f in code:
    print(f"  {f['status']:8s} +{f['additions']:<4d} -{f['deletions']:<4d} {f['filename']}")
0b37477cd276 2026-11-18T18:22:12Z Merge commit from fork
files 45: code 9 (+442 -36), tests 36 (+2775 -96)
entries 12; Co-Authored-By trailers naming Claude Opus 5.5: 12
  fix(extract-css): read rel and as from parsed link attributes
  fix(preconnect): keep only origins for external domain hints
  fix(cache): keep background CSS cache paths inside their root
  fix(cache): reject reserved file name characters in cache paths
  fix(fonts): match Google Fonts URLs on parsed host and path
  fix(fonts): keep downloaded font files inside the fonts cache
  fix(fonts): reject font content that starts like markup
  fix(preconnect): reject non-numeric ports in external domain hints
  fix(cache): reject more script extensions in background CSS cache names
  fix(fonts): disallow dots in font cache directory names
  refactor(preconnect): split origin validation into smaller helpers
  fix(cache): stop matching longer names that start like PHP extensions
code files:
  modified +2    -2    inc/Engine/Common/Cache/CacheInterface.php
  modified +111  -15   inc/Engine/Common/Cache/FilesystemCache.php
  modified +57   -5    inc/Engine/Common/ExtractCSS/Subscriber.php
  modified +92   -7    inc/Engine/Media/Fonts/Filesystem.php
  modified +18   -3    inc/Engine/Media/Fonts/Frontend/Controller.php
  modified +11   -1    inc/Engine/Media/Lazyload/CSS/Subscriber.php
  modified +13   -2    inc/Engine/Media/PreconnectExternalDomains/AJAX/Controller.php
  modified +15   -1    inc/Engine/Media/PreconnectExternalDomains/Frontend/Controller.php
  added    +123  -0    inc/Engine/Media/PreconnectExternalDomains/OriginTrait.php

Of the 45 changed files, 36 are tests (2,775 lines added); the 9 code files add 442 lines and remove 36. By scope the 12 entries are cache 4, fonts 4, preconnect 3 and extract-css 1. Between them they change how the preconnect hints the beacon collects are stored and printed (only origins, canonical ports), how link tags are classified as stylesheets (parsed attributes instead of text matching), how Google Fonts addresses are recognized (parsed host and path), how local paths are built for background CSS and fonts (kept inside their folders, script-like names and extensions refused), and what a downloaded font has to look like before it is saved (a recognized font signature). Each of the 12 entries carries a Co-Authored-By trailer crediting Claude Opus 5.5.

The 3.24.1 source shows why a “public AJAX endpoint” matters here. The plugin registers the beacon action for logged-out visitors (wp_ajax_nopriv_rocket_beacon), and the nonce its handlers check is minted by wp_create_nonce( 'rocket_beacon' ) and printed into the page itself as rocket_beacon_data, so any visitor who loads a page that carries the beacon already holds it. In 3.24.1 the preconnect handler stored each reported entry after only passing it through WordPress’s URL sanitizer, the Google Fonts test matched a pattern anywhere in an address, and the font writer derived a local file name from the path of each remote address with no check on where it pointed or what the downloaded bytes were. One route consistent with these changes, and with Patchstack’s description, is that a stored entry is later treated as a stylesheet or a Google Fonts address, fetched, and saved under a name the sender influenced. That is our reading of the diff, not the vendor’s account, and we did not run the plugin.

The commit message is more specific than any other vendor text we found. It says entries are now stored only when they are http(s) origins, that “rows stored by earlier versions are validated again when the head items are built,” that a Google Fonts address “carried only in another URL’s query or fragment is no longer fetched,” and that “downloaded bytes are stored only when they start with a WOFF2, WOFF, TrueType, OpenType or collection signature.” The changelog line compresses all of that into “Improve validation of cached CSS, font and preconnect files.” The line does name the three areas, but not the severity, the missing login or the CVE.

Where the accounts differ

  • Code execution or path traversal. The CVE record’s title says “Remote Code Execution (RCE) vulnerability,” while its description, its weakness field (CWE-22) and its impact field (CAPEC-126) all say path traversal. The commit fits both: six of the 12 entries concern where a downloaded file may be written and what it may be called, and a script file written under a web-served folder is what turns a file write into code execution.
  • Who is exposed. The record lists every version “from n/a before 3.24.2,” with no lower bound. Patchstack narrows that to sites with either of two options on. In the 3.24.2 source both settings are defined with 'default' => 0 on the Media tab, and their labels are “Enable for CSS background images” (under LazyLoad) and “Self-host Google Fonts,” not the names in Patchstack’s post. The vendor’s changelog dates the features: CSS background lazy loading arrived in 3.15 (August 31, 2023) and self-hosted fonts in 3.18 (January 7, 2025). The first stage, preconnect hints, has been “enabled by default” since 3.19 (June 5, 2025) and has no setting of its own: the handler runs unless a filter turns it off or the plugin has recorded a license failure.
  • How many sites. Patchstack’s post lists “5.5M+” as a stat for the plugin; WP Rocket’s home page says “5.6M+ websites worldwide” and “+5,655,000 Websites.” None of these counts exposed sites. WP Rocket is sold from the vendor’s own site and is not hosted on WordPress.org (the WordPress.org plugin API answers “Plugin not found.” for the wp-rocket slug), so there is no public active-install figure or version breakdown to size the exposed group, even though the CVE record’s collection URL points to wordpress.org/plugins.
  • Who can update. The vendor’s license docs say “When your license expires, you will lose access to the following,” and the list that follows begins with “Support” and “Plugin updates.” Its FAQ adds that “the latest version of WP Rocket released at this point will continue to operate on your website(s),” and the docs’ remedy is to renew. A site whose license lapsed before November 19 can therefore keep running 3.24.1 or earlier with no update offered, and we found no statement on whether security releases are treated differently. The source suggests a partial shield: the preconnect handler returns early while the option wp_rocket_no_licence is set, the plugin sets it when the Remove Unused CSS queue request is answered with code 401, and it clears it when a license key validates. Whether a given lapsed site carries that flag depends on whether it used the cloud features, and we did not test either state. Vendor-run update channels have been a weak point before, as in our report on the Rank Math PRO downloads that carried malware.
  • Whether it is exploited. Exploitation rests on Patchstack’s telemetry. CISA’s enrichment on the record still lists Exploitation as none, and the record’s edit history, read on the evening of November 27 (UTC), shows no later change to it. Patchstack, as the CNA, added its known-exploited tag on November 27, and CISA’s catalog does not list the CVE.
  • How loud the fix was. GitHub lists no published security advisory for the repository (the API returned an empty list), the repository’s SECURITY.md sends reports to Patchstack’s disclosure program, and the one vendor sentence we found is the changelog line. The CVE record credits “Vorelito | Patchstack Bug Bounty Program,” and Patchstack says its own rule “was live more than two days before the first attack arrived,” so its customers were covered before the CVE record was published. Sites without that service had the changelog line and a public commit.

Not the first problem in the same endpoint

NVD’s record for CVE-2026-5934, published on August 28, describes unauthenticated stored cross-site scripting “via the rocket_beacon AJAX endpoint” in versions up to 3.21.0.1. The 3.23.5 notes list five Security items on October 1, including “Sanitize image srcset data collected by the beacon before storing it,” and Patchstack’s database page for the plugin shows 8 patched entries, among them a cross-site scripting entry dated November 18 for versions before 3.24.1. Read together, they describe an endpoint open to every visitor whose stored values later flow into other features, which is the shape the November fix tightens at each joint.

What to do now

Find the installs and the files

Patchstack’s advice has two parts: update to 3.24.2 or later, and look for unexpected PHP files in three places, because the update “does not remove files an attacker already planted.” The script below does both across a web root. It is read-only and standard library only (Python 3.8 or later). It reads the Version: header of each wp-content/plugins/wp-rocket/wp-rocket.php and lists PHP-family files that do not belong directly in wp-content/, anywhere under uploads/ and cache/, or in wp-rocket-config/. WordPress’s own drop-ins, the one-comment “Silence is golden” index.php files and genuine WP Rocket config files (the ones that define $rocket_ settings) are skipped. A hit is a lead, not a verdict: some plugins keep PHP data files in uploads or in their own cache folders. The drop-in list comes from _get_dropins() in WordPress’s wp-admin/includes/plugin.php, and the cache folder names from the 3.24.2 source.

# wpr_triage.py
"""Read-only triage for WP Rocket CVE-2026-125812 (fixed in 3.24.2). Python 3.8+, standard library only.

Usage: python wpr_triage.py ROOT
Exit code: 0 nothing to report, 1 a version before 3.24.2 was found, 2 a PHP file worth reviewing was found.
A hit is a lead, not a verdict: some plugins keep PHP data files in uploads/ or in their own cache folders.
"""
import os
import re
import sys
from datetime import datetime, timezone

FIXED = (3, 24, 2, 0)
PHP_EXT = re.compile(r"\.(php\d*|phtml|phar|pht|phps)$", re.I)
# Files WordPress itself loads from wp-content (_get_dropins() in wp-admin/includes/plugin.php).
DROPINS = {"advanced-cache.php", "db.php", "db-error.php", "install.php", "maintenance.php",
           "object-cache.php", "php-error.php", "fatal-error-handler.php", "sunrise.php",
           "blog-deleted.php", "blog-inactive.php", "blog-suspended.php"}
ROCKET_CACHE = {"background-css", "fonts", "min", "busting", "wp-rocket", "used-css", "critical-css"}
SILENCE = re.compile(rb"\A<\?php\s*(?://\s*Silence is golden\.?)?\s*\Z", re.I)
CODE_MARKERS = re.compile(rb"\b(?:eval|assert|system|shell_exec|passthru|proc_open|popen|base64_decode|gzinflate)\s*\("
                          rb"|\$_(?:POST|GET|REQUEST|COOKIE)\b", re.I)
VERSION = re.compile(r"^[ \t*]*Version:[ \t]*([0-9][0-9.]*)", re.M)
LABELS = {
    "cache-rocket": "PHP file in a WP Rocket cache folder",
    "cache-other": "PHP file in another plugin's cache folder",
    "uploads": "PHP file in uploads/",
    "content": "unexpected PHP file in wp-content/",
    "config-nosettings": "PHP file in wp-rocket-config/ without $rocket_ settings",
    "config-code": "config file with code markers",
}


def version_tuple(text):
    nums = [int(n) for n in re.findall(r"\d+", text)][:4]
    return tuple(nums + [0] * (4 - len(nums)))


def read(path, limit=65536):
    with open(path, "rb") as fh:
        return fh.read(limit)


def find_installs(root):
    for dirpath, dirnames, filenames in os.walk(root):
        dirnames.sort()
        if os.path.basename(dirpath) == "wp-rocket" and "wp-rocket.php" in filenames:
            plugins = os.path.dirname(dirpath)
            if os.path.basename(plugins) == "plugins":
                yield dirpath, os.path.dirname(plugins)
            dirnames[:] = []


def scan_site(plugin_dir, content_dir):
    head = read(os.path.join(plugin_dir, "wp-rocket.php"), 8192).decode("utf-8", "replace")
    found = VERSION.search(head)
    version = found.group(1) if found else "unknown"
    result = {"version": version, "findings": [],
              "vulnerable": version == "unknown" or version_tuple(version) < FIXED}

    def note(code, path):
        stat = os.stat(path)
        when = datetime.fromtimestamp(stat.st_mtime, timezone.utc).strftime("%Y-%m-%dT%H:%M:%SZ")
        result["findings"].append((code, path, stat.st_size, when))

    def is_silence(path, name):
        return name.lower() == "index.php" and SILENCE.match(read(path, 512)) is not None

    for sub in ("cache", "uploads"):
        base = os.path.join(content_dir, sub)
        for dirpath, dirnames, names in os.walk(base):
            dirnames.sort()
            top = os.path.relpath(dirpath, base).split(os.sep)[0]
            for name in sorted(names):
                path = os.path.join(dirpath, name)
                if not PHP_EXT.search(name) or is_silence(path, name):
                    continue
                if sub == "uploads":
                    note("uploads", path)
                else:
                    note("cache-rocket" if top in ROCKET_CACHE else "cache-other", path)

    for name in sorted(os.listdir(content_dir)):
        path = os.path.join(content_dir, name)
        if os.path.isfile(path) and PHP_EXT.search(name) and name not in DROPINS and not is_silence(path, name):
            note("content", path)

    config = os.path.join(content_dir, "wp-rocket-config")
    if os.path.isdir(config):
        for name in sorted(os.listdir(config)):
            path = os.path.join(config, name)
            if os.path.isfile(path) and PHP_EXT.search(name):
                data = read(path)
                if b"$rocket_" not in data:
                    note("config-nosettings", path)
                elif CODE_MARKERS.search(data):
                    note("config-code", path)
    return result


def main(argv):
    if len(argv) != 2:
        print("usage: python wpr_triage.py ROOT")
        return 64
    worst, installs = 0, 0
    for plugin_dir, content_dir in find_installs(argv[1]):
        installs += 1
        res = scan_site(plugin_dir, content_dir)
        state = "VULNERABLE, fixed in 3.24.2" if res["vulnerable"] else "ok, 3.24.2 or later"
        print(f"{plugin_dir.replace(os.sep, '/')}\n  version {res['version']}: {state}")
        for code, path, size, when in res["findings"]:
            shown = os.path.relpath(path, content_dir).replace(os.sep, "/")
            print(f"  REVIEW {LABELS[code]}: {shown} ({size} bytes, modified {when})")
        worst = max(worst, 2 if res["findings"] else (1 if res["vulnerable"] else 0))
    if not installs:
        print("no WP Rocket install found under", argv[1])
    return worst


if __name__ == "__main__":
    sys.exit(main(sys.argv))

The version test is where a quick script goes wrong. Compared as strings, 3.24.10 sorts before 3.24.2 and 3.9.9 sorts after it, and a header of 3.24 has no patch part at all, so the script compares numbers padded to four parts. The script below builds twelve made-up sites (the plugin header is trimmed from the 3.24.2 tag, and every planted file is a harmless stub that is never executed) and checks what the tool reports for each.

# triage_cases.py
"""Build a made-up WordPress tree and check what wpr_triage.py reports for each site."""
import os
import shutil
import sys
from calendar import timegm

import wpr_triage as T

HEADER = """<?php
/**
 * Plugin Name: WP Rocket
 * Plugin URI: https://wp-rocket.me
 * Description: The best WordPress performance plugin.
 * Version: {version}
 * Requires at least: 5.8
 * Requires PHP: 7.4
 * Code Name: Iego
 * Author: WP Media
 * Author URI: https://wp-media.me
 * Licence: GPLv2 or later
 */

defined( 'ABSPATH' ) || exit;
"""
SILENCE = "<?php\n// Silence is golden.\n"
CONFIG = "<?php\n$rocket_cookie_hash = 'abc';\n"  # only the $rocket_ settings matter to the check
STUB = "<?php // test stub, never executed\n"
STAMP = timegm((2026, 11, 26, 4, 12, 9))  # fixed modification time for every made-up file
ROOT = "demo_root"

# name, header version (None = no Version line), files under wp-content, vulnerable?, expected findings
CASES = [
    ("old-version", "3.24.1", {}, True, set()),
    ("fixed-and-tidy", "3.24.2", {
        "index.php": SILENCE, "advanced-cache.php": STUB, "object-cache.php": STUB, "backup.php/readme.txt": "x",
        "uploads/index.php": SILENCE, "wp-rocket-config/index.html": "", "wp-rocket-config/example.com.php": CONFIG,
        "cache/wp-rocket/example.com/index.html": "<html></html>",
        "cache/background-css/1/example.com/style.css": "a{}"}, False, set()),
    ("string-compare-3.24.10", "3.24.10", {}, False, set()),
    ("string-compare-3.9.9", "3.9.9", {}, True, set()),
    ("two-part-3.24", "3.24", {}, True, set()),
    ("four-part-old-3.23.5.1", "3.23.5.1", {}, True, set()),
    ("four-part-new-3.24.2.1", "3.24.2.1", {}, False, set()),
    ("no-version-line", None, {}, True, set()),
    ("planted-in-wp-content", "3.24.2", {"wp-media-9f3a.php": STUB, "object-cache.php": STUB},
     False, {("content", "wp-media-9f3a.php")}),
    ("planted-in-uploads", "3.24.2", {
        "uploads/2026/11/img-1.php": STUB, "uploads/2026/11/photo.jpg": "x", "uploads/index.php": SILENCE,
        "uploads/2026/index.php": "<?php // Silence is golden.\nsystem($_GET[0]);\n",
        "uploads/2026/x.php/readme.txt": "a folder named like a script"},
     False, {("uploads", "uploads/2026/11/img-1.php"), ("uploads", "uploads/2026/index.php")}),
    ("planted-in-cache", "3.24.2", {
        "cache/background-css/1/example.com/a.php": STUB, "cache/fonts/1/google-fonts/s/b.PHP": STUB,
        "cache/min/c.phtml": STUB, "cache/autoptimize/autoptimize_single_1.php": STUB,
        "cache/background-css/1/example.com/style.css": "a{}"},
     False, {("cache-rocket", "cache/background-css/1/example.com/a.php"),
             ("cache-rocket", "cache/fonts/1/google-fonts/s/b.PHP"), ("cache-rocket", "cache/min/c.phtml"),
             ("cache-other", "cache/autoptimize/autoptimize_single_1.php")}),
    ("config-folder", "3.24.2", {
        "wp-rocket-config/example.com.php": CONFIG, "wp-rocket-config/index.html": "",
        "wp-rocket-config/wp-media-1.php": STUB, "wp-rocket-config/example.org.php": CONFIG + "eval($x);\n"},
     False, {("config-nosettings", "wp-rocket-config/wp-media-1.php"),
             ("config-code", "wp-rocket-config/example.org.php")}),
]


def build(root):
    shutil.rmtree(root, ignore_errors=True)
    for name, version, files, _, _ in CASES:
        plugin = os.path.join(root, name, "wp-content", "plugins", "wp-rocket")
        os.makedirs(plugin)
        header = HEADER.format(version=version) if version else HEADER.replace(" * Version: {version}\n", "")
        with open(os.path.join(plugin, "wp-rocket.php"), "w", newline="\n") as fh:
            fh.write(header)
        for rel, text in files.items():
            path = os.path.join(root, name, "wp-content", *rel.split("/"))
            os.makedirs(os.path.dirname(path), exist_ok=True)
            with open(path, "w", newline="\n") as fh:
                fh.write(text)
            os.utime(path, (STAMP, STAMP))


def main():
    build(ROOT)
    bad = 0
    print(f"{'case':24s} {'version':9s} {'vulnerable':11s} {'findings':9s} result")
    for name, _, _, want_vulnerable, want in CASES:
        plugin = os.path.join(ROOT, name, "wp-content", "plugins", "wp-rocket")
        content = os.path.dirname(os.path.dirname(plugin))
        res = T.scan_site(plugin, content)
        got = {(code, os.path.relpath(path, content).replace(os.sep, "/")) for code, path, _, _ in res["findings"]}
        ok = res["vulnerable"] == want_vulnerable and got == want
        bad += not ok
        print(f"{name:24s} {res['version']:9s} {str(res['vulnerable']):11s} {len(got):<9d} {'ok' if ok else 'FAIL'}")
        if not ok:
            print("   expected", want_vulnerable, sorted(want), "\n   got     ", res["vulnerable"], sorted(got))
    print(f"{len(CASES) - bad} of {len(CASES)} cases match")
    return 1 if bad else 0


if __name__ == "__main__":
    sys.exit(main())
case                     version   vulnerable  findings  result
old-version              3.24.1    True        0         ok
fixed-and-tidy           3.24.2    False       0         ok
string-compare-3.24.10   3.24.10   False       0         ok
string-compare-3.9.9     3.9.9     True        0         ok
two-part-3.24            3.24      True        0         ok
four-part-old-3.23.5.1   3.23.5.1  True        0         ok
four-part-new-3.24.2.1   3.24.2.1  False       0         ok
no-version-line          unknown   True        0         ok
planted-in-wp-content    3.24.2    False       1         ok
planted-in-uploads       3.24.2    False       2         ok
planted-in-cache         3.24.2    False       4         ok
config-folder            3.24.2    False       2         ok
12 of 12 cases match

All twelve match. Planting ten bugs in the tool one at a time (string comparison of versions, no padding, drop-ins no longer exempt, the “Silence is golden” exemption removed, a case-sensitive extension match, every cache hit treated as WP Rocket’s own, folders named like scripts flagged, the config marker test inverted, a missing version treated as fixed, and code markers ignored) made the cases fail every time. Run against single sites, the tool prints this:

$ python wpr_triage.py demo_root/planted-in-cache
demo_root/planted-in-cache/wp-content/plugins/wp-rocket
  version 3.24.2: ok, 3.24.2 or later
  REVIEW PHP file in another plugin's cache folder: cache/autoptimize/autoptimize_single_1.php (35 bytes, modified 2026-11-26T04:12:09Z)
  REVIEW PHP file in a WP Rocket cache folder: cache/background-css/1/example.com/a.php (35 bytes, modified 2026-11-26T04:12:09Z)
  REVIEW PHP file in a WP Rocket cache folder: cache/fonts/1/google-fonts/s/b.PHP (35 bytes, modified 2026-11-26T04:12:09Z)
  REVIEW PHP file in a WP Rocket cache folder: cache/min/c.phtml (35 bytes, modified 2026-11-26T04:12:09Z)
exit code 2

$ python wpr_triage.py demo_root/config-folder
demo_root/config-folder/wp-content/plugins/wp-rocket
  version 3.24.2: ok, 3.24.2 or later
  REVIEW config file with code markers: wp-rocket-config/example.org.php (45 bytes, modified 2026-11-26T04:12:09Z)
  REVIEW PHP file in wp-rocket-config/ without $rocket_ settings: wp-rocket-config/wp-media-1.php (35 bytes, modified 2026-11-26T04:12:09Z)
exit code 2

$ python wpr_triage.py demo_root/old-version
demo_root/old-version/wp-content/plugins/wp-rocket
  version 3.24.1: VULNERABLE, fixed in 3.24.2
exit code 1

$ python wpr_triage.py demo_root/fixed-and-tidy
demo_root/fixed-and-tidy/wp-content/plugins/wp-rocket
  version 3.24.2: ok, 3.24.2 or later
exit code 0

The exit code is 0 for nothing to report, 1 for a version before 3.24.2 and 2 for a file worth reviewing, so it can run from a scheduled job. A file it lists is a reason to look, not proof of compromise. If you find one that you cannot explain, treat the site as compromised: restore from a backup that predates it, then change the database, API and admin credentials and the WordPress salts. Patchstack also suggests watching for outbound requests from the web server to unfamiliar hosts, nip.io names and trycloudflare.com tunnels.

If you cannot update yet

Patchstack’s stop-gap is to turn off both options. On the Media tab they are “Enable for CSS background images” and “Self-host Google Fonts.” With WP-CLI you can read the saved values for each site (the commands follow the wp plugin get and wp option get documentation; this machine has no PHP, so we could not run WP-CLI itself):

# WP-CLI, once per site (add --path=/var/www/site-a to target another install)
wp plugin get wp-rocket --field=version
wp option get wp_rocket_settings --format=json | grep -o -E '"(lazyload_css_bg_img|host_fonts_locally)":[^,}]*'

A value of 1 means on. If neither key appears, open the settings screen to be sure. We tried the grep on made-up JSON shaped like that output:

$ cat settings_demo.json
{"cache_logged_user":"0","minify_css":1,"lazyload_css_bg_img":"1","host_fonts_locally":0,"delay_js":1}
$ grep -o -E '"(lazyload_css_bg_img|host_fonts_locally)":[^,}]*' settings_demo.json
"lazyload_css_bg_img":"1"
"host_fonts_locally":0

One caution follows from the commit message. Because 3.24.2 validates stored rows again, the database can hold hint rows saved by earlier versions, and switching the two options off hides the later stages without removing those rows. That is our inference. The safe order is to update first and to turn an option back on only after that.

What we could not confirm

  • A second report of attacks. Every figure about exploitation comes from Patchstack. We found no other vendor write-up, no vendor statement from WP Media and no count of compromised sites.
  • When the commit became public. We have the commit’s own timestamp. GitHub’s public events feed no longer reaches back to November 18, so we could not read the push time.
  • The oldest affected release. The CVE record gives no lower bound. The features involved date from 3.15, 3.18 and 3.19, but we did not test any release.
  • What 3.24.3 changes. Its notes list no security item. We did not diff it against 3.24.2.
  • How license status affects exposure. The vendor’s docs and the source point two ways, as described above, and we tested neither.
  • What the attackers drop. Patchstack gives wp-media-*.php as an example name and no payload, and we did not look for samples.
  • What “5.5M+” counts. Patchstack does not say whether it means sites or installs.

What we checked

We read each source on the evening of November 27 (UTC). Patchstack says it is monitoring the campaign and “will update this post as the activity evolves,” so its figures may have moved since.

  • Patchstack: the post and its database page for the plugin.
  • CVE data: the CVE record, its edit history in the CVE list repository, the NVD entry (status Deferred, one score, 9.8, supplied by Patchstack), CVE-2026-5934 and the CISA KEV feed.
  • Vendor: the changelog, the 3.24.2 release, the security commit, the compare view and source archives of the v3.24.1 and v3.24.2 tags, the repository’s SECURITY.md, and the docs on license expiry and updating, the FAQ and the home page.
  • Other: the WordPress.org plugin API lookup for the slug (api.wordpress.org/plugins/info/1.2/?action=plugin_information&request[slug]=wp-rocket, which answers HTTP 404 with the JSON error “Plugin not found.”), WordPress’s drop-in list, and RDAP lookups for the ten addresses.
  • Scripts: the interval and diff scripts above ran on November 27 against the live records. The checker ran on made-up trees only. We did not run WP Rocket or any exploit, fetched no payload, and sent nothing to any address in Patchstack’s table.

Tags:

CVE-2026-125812PatchstackPath TraversalPlugin VulnerabilitiesRemote Code ExecutionWordPress SecurityWP Rocket

Share

A faded 1840 promissory note for one thousand dollars that promises payment seventeen months after its date, signed in ink
Previous Post

How to Use Python 3.14 Deferred Annotations: Drop Quoted Forward References, Read Annotations Safely With annotationlib, and Catch the Decorator, Dataclass, and FastAPI Traps

A worn aluminum survey marker disk set in rough ground, its stamped digits scratched and overstamped
Next Post

Ars Technica’s Physics Feature Turns a 98% Benchmark Score Into a Forecast, but the Answer Key Was Corrected Where Astra Disagreed, One Run Per Agent Cannot Separate Astra From Opus, the Thesis Story Is an Audit, and the Yang-Mills Group Says It Does Not Yet Fully Understand the Proof

No Comment! Be the first one.

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Latest
30 Nov
How to Fix SSL CERTIFICATE_VERIFY_FAILED in Python Without Turning Verification Off: Read the Error Code, Find Who Has to Fix It, Trust Your Own CA, and Catch Broken Chains in CI
30 Nov
The Unpublished Lattice Paper Attributed to Anthropic Reached the Public as Two Title Hashes That Match One Guessable String, the Coverage Splits on What It Breaks Because the Title Names Quantum Algorithms, Not a Key Recovery, and 21 of 24 Sites We Tested Still Pair ML-KEM With X25519
Trending
November 30, 2026
How to Fix SSL CERTIFICATE_VERIFY_FAILED in Python Without Turning Verification Off: Read the Error Code, Find Who Has to Fix It, Trust Your Own CA, and Catch Broken Chains in CI
November 30, 2026
The Unpublished Lattice Paper Attributed to Anthropic Reached the Public as Two Title Hashes That Match One Guessable String, the Coverage Splits on What It Breaks Because the Title Names Quantum Algorithms, Not a Key Recovery, and 21 of 24 Sites We Tested Still Pair ML-KEM With X25519
November 30, 2026
Cacti’s 4HTTP2SHELL Chain Drew 1,793 Attack Attempts on One Honeypot Sensor in Four Days, but the Fix Is Still Only Source Patches With No 1.2.32 Release or CVE ID, the Advisory Calls It “Authenticated,” and on Our Reading of the Code the Guest Route Hinges on One Setting That Ships as “No User”
November 30, 2026
How to Triage Vulnerabilities in Python With CVSS, EPSS, and CISA KEV: Build a Decision Engine, Replay It on 71 Real KEV Additions, and See What Each Signal Missed
November 30, 2026
The Register Gives China Mobile Credit for the “Most Capable” All-Domestic Open-Weight Model, but It Is China Telecom’s Xing4.1-Preview, Its Report Has No Capability Scores, the 4.68x Is a Simulation, and the Model Card’s Own Table Has It First or Tied for First on 2 of 18 Rows
November 30, 2026
easyDNS Says Customer Records, Stored AWS Keys and Unsalted Mailbox Password Hashes Were Exposed, but the Public Notice Gives No Counts, the Entry Point Appears Only in the CEO’s Comments to a Reporter, and It Is the Second Security Incident Its Blog Has Posted This Year

Related Posts

Rows of server racks in a data center representing network infrastructure targeted by botnets
News

C0XMO Botnet Shows Why Old Router Firmware Still Matters

June 7, 2026
Close-up of a USB flash drive, representing physical data-theft risk in office security incidents
News

Fake IT Support Is Now Walking Through the Front Door

June 7, 2026
A phone security app on a smartphone resting on a laptop keyboard.
News

Everest Forms Pro Flaw Is Being Exploited to Create Rogue WordPress Admins

June 7, 2026
A phone secured by a padlock, illustrating AI data-leak containment and security controls.
News

OpenAI’s Lockdown Mode Is a Data-Leak Brake, Not a Prompt-Injection Cure

June 8, 2026
SXZ.io SXZ.io
  • [email protected]

Categories

Articles
Learning Hub
News

All Rights Reserved by SXZ.io ©2026