How to Check Your WordPress Sites for the Upgrade-Window RCE CISA Just Flagged
Most WordPress sites patched this one without anyone noticing, which is exactly why the leftovers are dangerous. CISA added CVE-2026-119977, a remote code execution bug in WordPress core, to its Known Exploited Vulnerabi
Most WordPress sites patched this one without anyone noticing, which is exactly why the leftovers are dangerous. CISA added CVE-2026-119977, a remote code execution bug in WordPress core, to its Known Exploited Vulnerabilities catalog on November 3, gave federal agencies until November 6, and ticked the box saying forensic triage is required. That last detail matters more than the deadline. It means CISA wants affected sites checked for signs of a break-in, not only updated.
If you run WordPress for yourself, a client, or a pile of small businesses that never log in, this is a one-hour job. Below is the order I would do it in: confirm versions, shut the door at the web server, look for what an attacker would have left behind, and then decide what to do about sites you can't touch.
Expand
WordPress 7.1 release artwork in blue and green from WordPress.org
What the bug actually is
During a full core upgrade, WordPress downloads the new release and unpacks it into a working folder under wp-content/upgrade/ before copying files into place. Before 7.1.4, the name of that folder was predictable, and on most servers PHP will run from anywhere under the web root. The CVE record from Wordfence, the CNA that assigned the number, describes it as predictable, web-accessible staging paths used during full-package core upgrades, which lets an unauthenticated attacker execute code during the upgrade window. The weakness class is CWE-367, a time-of-check time-of-use race.
The window is short. In practice that means seconds while the staged files exist on disk. An attacker who requests the staged installer script at the right moment can get further than a normal visitor ever should. Falcon Internet's write-up puts it plainly: the unpacked copy includes setup-config.php, and a request to it during those seconds is where the trouble starts.
Wordfence scores it 8.1 (High), which is lower than a typical "unauthenticated RCE" because the attacker needs the timing to line up, and the vector string carries high attack complexity. WordPress's own security team rated it lower still, according to Rescana's summary of the advisory. Don't let the score talk you into waiting. Attackers don't need to win once; they can poll a site all day and wait for you to run the next update.
The report came from Umut Bayram of Picus Security, according to ThreatAft's account, and the fix landed in the October 28 release. Wordfence says the patch randomizes the staging directory, adds an index guard, and stops unsafe promotion of staged configuration data.
Step 1: confirm the version on every site
Log in, open Dashboard, then Updates, and read the version at the top. You want one of these:
| Branch | Fixed release |
|---|---|
| 7.1 | 7.1.4 |
| 7.0 | 7.0.8 |
| 6.9 | 6.9.11 |
| 6.8 | 6.8.12 |
| 6.7 | 6.7.11 |
| 6.6 | 6.6.11 |
| 6.5 | 6.5.14 |
| 4.9 | 4.9.35 |
| 4.8 | 4.8.34 |
| 4.7 | 4.7.39 |
Older branches in between also got point releases; the full table is on the WordPress.org 7.1.4 release page. Anything at or below the top of its branch's affected band is exposed, and the affected range runs from 4.7 through 7.1.3. If your site is on 4.6 or earlier, there is no backport. The only fix is moving to a supported release, and that is a real upgrade project, not a ten-minute job.
WordPress said in its release post that sites with automatic background updates would update by themselves, and that is what happened for most installs. Carthage Electronics, which tracks this kind of thing for hosting customers, lists the sites it worries about: auto-updates turned off, sites pinned to an old branch, and sites a developer or host "manages" that nobody actually opens. If you have a client like that, don't ask them whether it's updated. Log in and look.
Take a backup first if there isn't a recent one. Then click Update Now. If you can, run the update at a quiet hour and keep the staging folder blocked (next step) so the window isn't exposed while it runs.
Step 2: block the staging folder at the web server
Nothing legitimate needs a browser to load files from wp-content/upgrade/. Blocking it removes the exposure window no matter what core version you run, and it protects you on the next update even if a future bug looks like this one.
On nginx, add a location block to the server config:
CodeCopy
location ^~ /wp-content/upgrade/ { deny all; }
On Apache, a single line in the main configuration or .htaccess does the same job:
CodeCopy
RedirectMatch 403 ^/wp-content/upgrade/
Reload the server, then request any path under that folder from a browser. A 403 is what you want. If you use a managed host, ask support to apply the rule; plenty of hosts already do, but "plenty" isn't an answer you can put in an incident note.
If the site sits behind Cloudflare or another web application firewall, check that the WordPress managed rules are switched on. That buys time. It does not replace updating.
Step 3: look for what an attacker would leave
CISA's forensic triage flag is the reason this step exists. Wordfence reported attackers polling for the vulnerable path within hours of the release, and ThreatAft's summary says Wordfence blocked 62,969 attacks in the first 24 hours. Up to November 3, nobody had publicly confirmed a site actually taken over this way, according to Carthage Electronics. That can change, and the sites most likely to have been hit are the ones that ran a core update between October 28 and when they finally patched.
Work through this list, in this order:
- Open
wp-content/upgrade/over SFTP or SSH. After a clean update it should be empty or nearly so. Leftover folders, or any PHP file in there that you didn't put there, is a red flag. - Search your web server access logs for repeated requests to
setup-config.phpor anything under/wp-content/upgrade/, especially clustered around the time an update ran. A burst from one IP is polling. A burst followed by a 200 on a path that should not exist is worth escalating. - In the dashboard, open Users and sort by role. Any administrator you don't recognise is a problem.
- Open Plugins and Themes. Anything you didn't install, or a plugin with a name that mimics a real one, gets treated as hostile.
- Check file modification times in the WordPress root for PHP files newer than your last deliberate change. The Linux
findcommand with the-nameand-mtimeoptions is a blunt tool for this, but it is fast.
If anything turns up, treat the site as compromised. Change every password, rotate the database password and the salts in wp-config.php, and restore from a clean backup taken before October 28. Don't clean it by hand and hope. A shell left behind by an attacker is the one thing a hand cleanup tends to miss.
Step 4: stop running updates blind
The deeper problem here is that the update process itself was the attack surface. That makes update habits matter more than usual.
Keep automatic core updates on for minor and security releases. On a managed site, that is the default, and the WordPress team's 7.1.4 post confirms it is how most sites received the fix. If someone disabled it years ago "to avoid surprises," make that person write down why. The surprise of a patched site is cheaper than the surprise of this one.
Make sure staging, backups and the folder block are part of your update routine, not a separate project. Then add the site to a list you actually review. A spreadsheet with domain, host, running version and who is responsible beats memory every time, because the dangerous sites are the ones nobody remembers owning.
Same release, other fixes
The October 28 release was not a single-bug release. The WordPress.org announcement lists a stack of stored cross-site scripting fixes, including ones in the Interactivity API, Customizer selective refresh, the Categories block, and the playlist and image blocks. It also lists a stored denial of service in the Interactivity API, an issue where unpublished Customizer changesets could be found by unauthenticated users, and an update to the bundled root certificates after the eMudhra revocation. Two of the XSS reports are credited to Anthropic.
None of those got a KEV entry. They do mean that sitting on 7.1.3 for another week costs you more than one bug. The WordPress team also says the next major release, 7.2, is planned for December 8, and 7.2 Beta 3 already carries the fixes, so there's no reason to jump to a beta to be safe.
Expand
WordPress 7.1 Release Candidate 1 graphic on a blue background
What to tell a client who asks
Clients ask two questions: "were we hacked" and "is it fixed." Answer the second with a screenshot of Dashboard, Updates showing the fixed version, plus the 403 from the staging folder test. Answer the first honestly: you checked the upgrade folder, the logs, the user list and the plugin list, and here is what you found. If you didn't check, say that. A vague reassurance now is the sentence that reads badly in six months.
For agencies with dozens of sites, a script that logs in with WP-CLI and runs wp core version across every install is the fastest inventory, and it takes ten minutes to write. Pair it with the blocked-folder test, and you have evidence for the whole portfolio in one afternoon.
I haven't run any of this against a live site; this is a checklist built from the WordPress.org release post, the CVE record, CISA's alert, and the write-ups cited above, so test the server rules on a staging copy before you push them to production.
Questions people keep asking
Does turning off automatic updates make me safe from this? It narrows the window to the times you update by hand, but it also means you are on 7.1.3 or older, which is the affected range. Patch, then think about the habit.
Is a site that updated on October 29 fine? The fix was out by then, but a site that ran a full core upgrade while still on the old code was exposed for those seconds. Check the folder and logs from that update.
What about WordPress.com or other fully managed hosts? Ask for the running version in writing. A written answer is better than an assumption.
Originally published on Mango Developer.
Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.
