Quick Answer
WordPress 7.1.4 fixes an actively exploited remote code execution flaw, CVE-2026-119977 — but the update that installs the fix can expose your site one final time. The reason is simple and unsettling: the update unpacks its files using your site’s old, unpatched code, and on WordPress 5.9 and later that old code gives the temporary folder a predictable name. An attacker who times it right can reach the installer inside that folder, set up a copy of WordPress with their own database, log in, and run code on your server before the folder is deleted.
The fix is still urgent — do not skip the update. But update safely: first block all web access to your site’s wp-content/upgrade folder, confirm it returns a 403 error, and only then update to 7.1.4 or the fixed release for your branch. The block takes two minutes, does not break updates, and closes the one window attackers are actively watching for. CISA has added the flaw to its Known Exploited Vulnerabilities catalog, and security firm Wordfence saw attack attempts begin just nine minutes after it deployed a firewall rule for the flaw.
Introduction
Most security advice follows a simple pattern: a flaw is found, a patch is released, and you update. This time, that pattern has a twist. The patch for one of the most serious WordPress flaws of the year works — but the act of installing it can briefly reopen the very hole it closes.
The flaw, tracked as CVE-2026-119977, lives in the WordPress core update process itself. It affects WordPress 4.7 through 7.1.3, and it has been exploited in the wild. WordPress released the fix in version 7.1.4, along with matching updates for older supported branches back to 4.7. That should have been the end of the story.
It was not. Security researcher Umut Bayram of Picus Security, who discovered the flaw, has now explained that the update installing the fix still unpacks its files with the site’s old, unpatched code. That creates a short window — seconds long in lab tests — during which an attacker can strike. Attackers are already trying: Wordfence, the WordPress security company that assigned the CVE identifier, recorded attack attempts starting nine minutes after it deployed a firewall rule for the flaw on release day, and two of the busiest sources kept probing small groups of sites for about 14.5 hours, a pattern the company says matches attempts to catch sites mid-update.
This article explains how the trap works, who is exposed during the update, and the exact steps to patch your site without giving an attacker that final opening.
What CVE-2026-119977 Is
CVE-2026-119977 is a race condition — a timing flaw — in the way WordPress handles a core update that uses a complete package. When you update WordPress core, the updater downloads the new version and unpacks a copy of it into a temporary folder inside wp-content/upgrade. That copy includes the full WordPress installer, and in most server setups the web server can reach that folder directly through a browser.
An unauthenticated attacker — someone with no account on your site at all — who can work out the temporary folder’s name and reach the installer before WordPress deletes the copy can end up running code on the server. The flaw is scored 8.1 out of 10 on the CVSS severity scale, which puts it firmly in the high-severity range.
Before the fix, the attack worked like this: the attacker used the installer to write a new configuration file, wp-config.php, into the temporary copy of WordPress. When the update finished, WordPress copied that file over the site’s real configuration. From that point, the attacker effectively owned the site’s database connection and could take control.
The flaw is old. According to the researcher, it goes back to WordPress 2.7, released in 2008. It stayed hidden for almost two decades because it only matters during the brief moments of a core update — and because exploiting it requires hitting that moment precisely.
Why Installing the Fix Can Expose You One Last Time
Here is the part that catches most site owners by surprise. The fix in WordPress 7.1.4 gives the temporary folder a random, unpredictable name. That sounds like it solves the problem completely. But there is a catch: the update that installs the fix is itself unpacked using the code already on your site — the old, unpatched code.
On sites running WordPress 5.9 or later, that old code names the temporary folder after the downloaded update file. That name can be predicted. So during the one update that moves you from a vulnerable version to the fixed version, the folder name is still guessable, and the installer inside it is still reachable.
The second half of the fix does work during that same update. The part that stops a wp-config.php file in the temporary copy from overwriting the real one is already effective, because WordPress copies the files into place using the new code. But the researcher warns that an attacker who catches the window can still do serious damage another way: they can set up the temporary copy of WordPress with their own database, log in to it, and run PHP code with the web server’s permissions before the copy is deleted. From there, they can read or write files in the live WordPress site.
In short, the fix closes the front door during the update, but a side window stays open for a few seconds — and automated attack tools are built to find windows exactly like that.
Who Is Exposed During the Update
Not every update exposes the installer. It depends on what kind of update package WordPress uses.
Complete packages always include the installer files, so a complete-package update always creates the exposure. A smaller partial package, built for one specific starting version, exposes a site only if that package happens to contain the installer files.
WordPress’s own update service offers partial packages for updates within a branch — for example, from 7.1.3 to 7.1.4 — including for automatic background updates. A move from an older branch, such as from 7.0.7 to 7.1.4, gets only a complete package. So the sites most exposed during this update are the ones jumping between branches, or any site whose core files do not match the official checksums, or any site doing a reinstall — in both cases WordPress falls back to a complete package.
There is another version split worth knowing. On WordPress 4.4 through 5.8, the old code adds random characters to the folder name, which hides the name unless the site leaks it some other way, such as in an error message. On 5.9 and later, the name is predictable. That means the newest vulnerable versions — the ones most sites actually run — are the ones most exposed during the fix update.
Sites that allow automatic background updates are not exempt. WordPress installs the fix automatically, through the same updater and the same steps, so the same window opens on its own schedule — possibly while nobody is watching.
Once 7.1.4 or a branch fix is installed, the danger passes. Later updates use a random folder name, and a wp-config.php file in the temporary copy is never copied over the real one. The risk is specific to this one transition: from a vulnerable version to the fixed version.
How to Patch Safely: Block the Upgrade Folder First
The researcher’s first recommendation is straightforward: stop the web server from serving the wp-content/upgrade folder at all, before you update. WordPress works with that folder directly on the disk, so blocking web access to it does not break updates in any way.
Step 1: Block web access to wp-content/upgrade
If your server runs Nginx, add this to your site’s server configuration:
location ^~ /wp-content/upgrade/ { deny all; }
If your server runs Apache, add Require all denied inside a Directory block for that folder in your virtual host configuration.
If you can only edit .htaccess, add this line to the .htaccess file in your WordPress root, above the WordPress rewrite rules:
RedirectMatch 403 ^/wp-content/upgrade/
One important warning: do not put an .htaccess file inside wp-content/upgrade itself. The old updater deletes everything in that folder before it unpacks an update, so your blocking file would be gone exactly when it is needed.
Step 2: Confirm the block works
Before updating, open https://yoursite.com/wp-content/upgrade/ in a browser and confirm it returns a 403 Forbidden error. If it loads anything else, the block is not in place yet — fix that first.
Step 3: Update to the fixed version
Now update to WordPress 7.1.4, or to the fixed release for your branch if you run an older supported version. With the folder blocked, the predictable folder name no longer matters, because no web request can reach the installer inside it.
The other safe route: update outside the web root
If you prefer, you can update manually in a folder the web server does not serve. Back up your site files and database first, unpack the new release in a folder outside the web root, copy the core files into place without touching wp-config.php or wp-content, and then run the WordPress database update. This way, no temporary installer is ever created in a folder the web can reach.
Note that WP-CLI’s wp core update command is not a substitute for this. It runs the same updater and unpacks the package into the same folder, so it carries the same risk unless the folder is blocked first.
If you run WordPress 4.6 or earlier
WordPress 4.6 and earlier no longer receive security updates, so there is no fix for those versions. The researcher says those sites should move to a supported version. If that is not possible immediately, blocking the upgrade folder is still essential, but it is a bandage, not a cure.
Attacks in the Wild and What to Check
CISA added CVE-2026-119977 to its Known Exploited Vulnerabilities catalog earlier this week, based on evidence of active exploitation — although the agency did not describe the attacks in detail. The timing evidence from Wordfence fills in part of the picture: attack attempts began nine minutes after the company deployed a firewall rule for the flaw, and two of the busiest sources kept checking small groups of sites for about 14.5 hours, which the company says matches attempts to catch the moment a site updates.
Code that its authors describe as an exploit for the flaw has also appeared in public GitHub repositories since earlier this week. One repository claims its code also works on sites that still use a predictable folder during complete-package updates. Whether that code actually works has not been established — but its existence means the barrier to trying has dropped to near zero.
For sites that stayed on an affected version after the release, Wordfence suggests looking for these signs of compromise:
- Unexpected requests to PHP files under wp-content/upgrade in your access logs
- Administrator accounts nobody on your team recognizes
- Plugins nobody installed
- PHP files sitting in wp-content/upgrade that nobody put there
If you find any of these, treat the site as compromised: restore from a clean backup made before the suspicious activity, change every password and secret, and check your database for injected content. A simple update will not remove an attacker who is already inside.
Why This Flaw Matters Beyond One Update
This story is bigger than a single bug. WordPress powers more than 40 percent of all websites, which makes its core update process one of the most widely used pieces of software on the internet. A flaw in that process is not a niche problem — it is a problem for millions of site owners, from small blogs to business sites and online stores.
The episode also carries a lesson about how patching actually works. Security advice usually treats updating as the safe action and delaying as the risky one. Here, both are risky in different ways: delaying leaves the flaw open indefinitely, while updating without preparation opens a short window. The correct answer is not to choose between the two, but to prepare first and then update — a two-minute configuration change turns a risky update into a safe one.
It is also a reminder that the update process itself deserves the same scrutiny as any other feature. The flaw survived since WordPress 2.7 because it hid in a path that only runs for a few seconds, a few times a year. Attackers, however, only need those few seconds — and with automated tools watching millions of sites, a few seconds is plenty.
Frequently Asked Questions
Is WordPress 7.1.4 safe to install?
Yes — 7.1.4 is the fixed version, and installing it is the right move. The risk is not in the new version; it is in the few seconds during the update itself, while the old code is still unpacking the files. Block web access to wp-content/upgrade before updating, and that window closes.
Do I need to worry if my site updated automatically?
Automatic background updates use the same updater and the same steps, so the same window opens. If your site already updated to 7.1.4 automatically, the danger has passed for future updates — but check your site for the compromise signs listed above, especially unfamiliar admin accounts and unknown plugins, just in case the window was caught.
Which WordPress versions are affected by CVE-2026-119977?
WordPress 4.7 through 7.1.3. The fix is in 7.1.4 and in matching security updates for older branches back to 4.7. WordPress 4.6 and earlier receive no security updates and have no fix.
Does blocking wp-content/upgrade break WordPress updates?
No. WordPress accesses that folder directly on the server’s disk, not through the web server. Blocking web requests to it changes nothing about how updates work — it only stops outside visitors, including attackers, from reaching the files inside.
How long does the attack window last?
In the researcher’s lab tests, the window lasted only seconds. That sounds short, but attackers use automated tools that probe many sites continuously, and Wordfence observed probing lasting about 14.5 hours from some sources — consistent with tools waiting for a site to update.
What should I do if my site is still on a vulnerable version?
Block the wp-content/upgrade folder first, then update to 7.1.4 or your branch’s fixed release. After updating, check your logs for requests to PHP files under wp-content/upgrade, and look for administrator accounts and plugins you do not recognize.
Key Takeaways
- CVE-2026-119977 is a high-severity (CVSS 8.1) race condition in the WordPress core update process, affecting versions 4.7 through 7.1.3, and it is actively exploited — CISA has added it to its Known Exploited Vulnerabilities catalog.
- The fix in WordPress 7.1.4 works, but the update that installs it unpacks files using the old, unpatched code, so on WordPress 5.9 and later the temporary folder name is predictable one last time.
- An attacker who catches that window can set up the temporary WordPress copy with their own database, log in, and run code on the server before the folder is deleted.
- Before updating, block all web access to wp-content/upgrade — via Nginx, Apache, or a .htaccess rule in the WordPress root — and confirm it returns a 403 error. WordPress updates still work normally with the folder blocked.
- The other safe route is a manual update outside the web root. WP-CLI’s wp core update is not a safe alternative on its own, because it uses the same updater and the same folder.
- After updating, check for signs of compromise: requests to PHP files under wp-content/upgrade, unknown administrator accounts, unfamiliar plugins, and stray PHP files.
Conclusion
CVE-2026-119977 is a rare kind of flaw: one where the cure itself needs care. The update to WordPress 7.1.4 is essential — the flaw is actively exploited, exploit code is circulating publicly, and attackers were probing for it within minutes of the fix’s release. But updating blindly hands an attacker one last, predictable window.
The good news is that closing that window is a two-minute job. Block web access to wp-content/upgrade, confirm the 403, and then update with confidence. For a platform that runs such a large share of the web, the margin between a safe update and a compromised site can be a single folder that nobody thought to protect.
Update now — but block the folder first.
Source: The Hacker News — Installing the Fix for an Exploited WordPress Flaw Can Expose Some Sites One Last Time — https://thehackernews.com/2026/11/installing-fix-for-exploited-wordpress.html
