Site Security
Estimated reading time: 7 min read

WordPress 7.1.4: Close the Update-Window RCE Bug

Ben Marshall Ben Marshall Full-stack Developer & Engineering Manager
Glowing shield over a network pattern, illustrating the WordPress 7.1.4 update-window vulnerability
On this page
WordPress 7.1.4 fixes a no-login code execution bug that opens for a few seconds during core updates, and attackers are already probing for it. What to check and block.

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

  1. Confirm every site shows WordPress 7.1.4 or the fixed release for its branch (table below).[2][3]
  2. Keep automatic minor updates switched on.[5]
  3. 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 branchAffectedFixed in
7.17.1.0 to 7.1.37.1.4
7.07.0.0 to 7.0.77.0.8
6.96.9.0 to 6.9.106.9.11
6.86.8.0 to 6.8.116.8.12
6.4 to 6.7all earlier releases6.4.14, 6.5.14, 6.6.11, 6.7.11
5.0 to 6.3all earlier releases5.0.31 up to 6.3.14
4.7 to 4.9all earlier releases4.7.39, 4.8.34, 4.9.35
4.6 and olderno longer supportedno 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

  1. 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]
  2. Keep automatic minor updates on. If WP_AUTO_UPDATE_CORE is set to false in wp-config.php, minor updates are off. Set it to 'minor' or remove the line.[5]
  3. 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.
  4. 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]
  5. 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]
  6. 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

Do I need to do anything if automatic updates are on?

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]

Which version fixes the WordPress update race condition?

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]

Has anyone been hacked through CVE-2026-119977?

Wordfence has reported exploitation attempts, more than 18,500 requests in the first 21 hours, but its report describes no confirmed break-ins.[3]

Does a security plugin protect me?

Only partly. The attack goes straight to a PHP file without loading WordPress, so plugin firewalls can miss it. A web server rule and the update are the real fixes.[3][4]

Why does WordPress call it Low severity?

Because an attacker has to hit a window that usually lasts only seconds. Wordfence rates it High because a successful attack runs code on your server.[2][3]

Sources & References