WordPress 7.1.4: Close the Update-Window RCE Bug

On this page
WordPress 7.1.4, released October 28, 2026, fixes a core update bug that can let an attacker with no account run code on your server during the few seconds an update unpacks.[1][3] Attackers began probing for that moment within minutes.[3]
TL;DR: What to do right now
- Confirm every site shows WordPress 7.1.4 or the fixed release for its branch (table below).[2][3]
- Keep automatic minor updates switched on.[5]
- Block web access to
wp-content/upgrade/at the web server, before any manual update.[4]
What happened
WordPress 7.1.4 is a security release. WordPress lists 12 security fixes plus an update to the bundled root certificates after the eMudhra revocation, and recommends updating immediately.[1] Counted individually, that comes to 22 vulnerabilities, according to Wordfence and Patchstack.[3][4] Fixes were backported to every branch back to WordPress 4.7.[1][2]
One fix stands out. During a core update that uses a complete WordPress package, older versions unpack the new files into a predictable folder inside wp-content/upgrade. On many servers that folder can be reached from the web.[2][3] The temporary copy includes the WordPress installer. An attacker who requests it at just the right moment can take over the staged copy and work up to running PHP code.[3]
Wordfence tracks it as CVE-2026-119977 and rates it 8.1 (High).[3] Its firewall rule caught the first attack request nine minutes after it went live. In the first 21 hours it logged more than 18,500 requests aimed at staged installer paths.[3] Two of the busiest sources polled small groups of sites for about 14.5 hours, trying to catch an update in progress.[3] These are attempts. Wordfence’s report doesn’t describe any confirmed break-ins.[3]
Why it matters for your site
The window is small. In Wordfence’s lab tests the staging folder usually existed for only seconds, so a single lucky request is unlikely to work. Repeated automated polling improves the odds, which is exactly what attackers are doing.[3] That’s also why WordPress rates the issue Low while Wordfence rates it High: the impact is severe, but the attack is hard to pull off.[2][3]
Three things make it worth your attention anyway:
- The risky moment is the update itself. Patchstack notes the window returns on every update, “including unattended ones.”[4] In our reading, that means a vulnerable site opens the window one last time while it installs the fix.
- Plugin firewalls may not see it. The attack goes straight to a PHP file without loading WordPress, so a firewall that runs inside WordPress can’t stop it.[3][4] Wordfence says its own firewall needs Extended Protection mode to run before such requests reach the file.[3]
- Free protection lags. Wordfence Premium, Care and Response customers got the rule on October 28. Wordfence Free users get it on November 27, 2026.[3]
Most sites get this release on their own. WordPress turns on automatic minor updates by default, and existing installs receive them unless someone switched them off.[5] The sites at risk are the ones where that’s not true: auto-updates disabled, staging copies, old client sites and anything still on WordPress 4.6 or earlier, which gets no fix at all.[3]
WordPress 7.1.4 fixed versions by branch
If a site can’t move to 7.1.4 yet, it needs at least the patched release for its branch.[2]
| Your branch | Affected | Fixed in |
|---|---|---|
| 7.1 | 7.1.0 to 7.1.3 | 7.1.4 |
| 7.0 | 7.0.0 to 7.0.7 | 7.0.8 |
| 6.9 | 6.9.0 to 6.9.10 | 6.9.11 |
| 6.8 | 6.8.0 to 6.8.11 | 6.8.12 |
| 6.4 to 6.7 | all earlier releases | 6.4.14, 6.5.14, 6.6.11, 6.7.11 |
| 5.0 to 6.3 | all earlier releases | 5.0.31 up to 6.3.14 |
| 4.7 to 4.9 | all earlier releases | 4.7.39, 4.8.34, 4.9.35 |
| 4.6 and older | no longer supported | no fix, upgrade[3] |
The fix randomizes the staging folder name, adds an index guard so the folder can’t be listed, and stops staged configuration data from being promoted unsafely.[3][4]
Step by step
- Check the version on every site. Go to Dashboard, Updates and confirm 7.1.4 or your branch’s fixed release. Wordfence advises checking rather than assuming the automatic update ran.[3]
- Keep automatic minor updates on. If
WP_AUTO_UPDATE_COREis set tofalseinwp-config.php, minor updates are off. Set it to'minor'or remove the line.[5] - Block web access to the staging folder. Patchstack recommends denying
wp-content/upgrade/at the web server, not in PHP.[4] The rules below do that. We know of no reason for visitors to load files from that folder. On a test server, both rules returned a 403 for the staging path while other pages loaded normally. - Updating by hand? Add the block first. That covers the few seconds while the old version unpacks the fix. This is our advice, based on Patchstack’s note above.[4]
- Look for signs of trouble if a site stayed unpatched. Wordfence suggests checking for requests to PHP files under
wp-content/upgrade, unfamiliar administrator accounts, unexpected plugins and PHP files you didn’t put there.[3] - On managed hosting? Ask your host whether it already blocks
wp-content/upgrade/for your sites. Many hosts manage server rules you can’t edit.
Apache or LiteSpeed (.htaccess in the site root)
# Block web access to WordPress's update staging folder
RedirectMatch 403 ^/wp-content/upgrade/Put it above the # BEGIN WordPress block in the site-root file, not in a file inside the upgrade folder, which WordPress uses as scratch space. If WordPress lives in a subfolder, add it to the path, for example ^/blog/wp-content/upgrade/.
Nginx (inside your server block)
location ^~ /wp-content/upgrade/ {
deny all;
}The ^~ makes this rule win over your PHP location. Reload Nginx, then open /wp-content/upgrade/ in a browser. You should get a 403 error, while the rest of the site loads normally.
The other fixes in this release
Most of the remaining issues are stored cross-site scripting (XSS) bugs. XSS means an attacker plants a script in content that runs in someone else’s browser. Many need a Contributor, Author or Editor account, and several also need a victim to view the planted content.[3] That matters most for sites with many writers or open registrations. One more issue let visitors without an account find unpublished Customizer changes.[1] Two of the XSS reports came from Anthropic.[1]
This is the second WordPress security release in three weeks, after WordPress 7.1.3 fixed a pending-comment XSS.[7] It also lands in the middle of PHP2Shell, which needs a PHP update from your host.[8] Updating WordPress doesn’t update PHP.[6] The next major release, WordPress 7.2, is planned for December 8.[1]
Where Zero Spam fits
Zero Spam doesn’t patch WordPress core and can’t block this attack, because the request never loads WordPress. Updates and the server rule above do that. What our free WordPress plugin does is block spam bots, fake registrations and known bad IPs on your forms. If you want that, start on the free Explorer plan.
FAQ
Frequently Asked Questions
Check that the site actually shows 7.1.4 or your branch’s fixed release. WordPress applies minor updates automatically by default, but Wordfence recommends confirming rather than assuming.[3][5]
WordPress 7.1.4, or the matching release on older branches, such as 7.0.8, 6.9.11 or 6.8.12. Fixes go back to 4.7.39. WordPress 4.6 and older get no fix.[2][3]
Wordfence has reported exploitation attempts, more than 18,500 requests in the first 21 hours, but its report describes no confirmed break-ins.[3]
Sources & References
- WordPress.org: WordPress 7.1.4 security release, 12 security fixes and a root certificate update (Oct 28, 2026)
- WordPress security advisory GHSA-4w3m-c66w-69mg: race condition during core updates, affected and patched versions by branch (Oct 29, 2026)
- Wordfence: WordPress 7.1.4 upgrade-window RCE (CVE-2026-119977), exploitation attempts and firewall rule dates (Oct 29, 2026)
- Patchstack: WordPress 7.1.4 security release, 22 vulnerabilities in 17 advisories, block wp-content/upgrade at the web server (Oct 28, 2026)
- WordPress Developer Resources: Upgrading WordPress, automatic updates and WP_AUTO_UPDATE_CORE (updated Oct 28, 2026)
- Wordfence: PHP2Shell update, updating WordPress does not update PHP (Oct 28, 2026)
- Zero Spam: WordPress 7.1.3 security release, pending-comment XSS (Oct 7, 2026)
- Zero Spam: PHP2Shell explained, live updates (updated Nov 1, 2026)
