What’s going on (in plain, slightly panicked English)

WordPress patched a nasty update-time bug (CVE-2026-119977) that affects versions from 4.7 up through 7.1.3. Sounds great — until you realize the act of installing the patch can briefly create a tiny, temporary WordPress copy in a web-accessible location. If a sneaky attacker guesses that folder’s name at exactly the right second, they can log into that temporary site and run PHP as the webserver. A blink-and-you’ll-miss-it window becomes a one-shot backdoor.

The core of the problem: the updater unpacks the new version using the old code that’s still on the site. That means, for a final update or two, the temporary folder name can be predictable. After the fix lands on a site, the updater switches to a truly random folder name, and the risky behavior fades away — but the installation step that brings the fix onto the site can itself be a last vulnerable moment.

How to stop this from turning into a disaster

Good news: you don’t need to flail wildly. Two safe approaches:

  • Block web access to the wp-content/upgrade directory. WordPress updates read and write there directly on disk, so denying HTTP access won’t break updates.
  • Perform the update outside the web root — unpack the release somewhere the web server can’t reach, copy the core files (but don’t overwrite wp-config.php or wp-content), then run the DB update. This is the manual update approach: slower, but safe.

Practical server rules (copy-paste friendly):

  • Nginx: add location ^~ /wp-content/upgrade/ { deny all; } to the site config.
  • Apache (virtual host): add a block containing Require all denied for the upgrade folder (use a <Directory> block for that path in your vhost file).
  • If you can only edit .htaccess: put RedirectMatch 403 ^/wp-content/upgrade/ in the WordPress root, above the rewrite rules.
  • Do not drop an .htaccess file inside the upgrade folder itself — the old updater wipes that folder before unpacking updates.
  • After making changes, confirm a request to /wp-content/upgrade/ returns a 403 response.
  • Then update to version 7.1.4 or the fixed release for your branch.

Did an attacker get through? What to check

If you didn’t block the folder and the site stayed on a vulnerable version during updates, look for these signs:

  • Unexpected web requests hitting PHP files under wp-content/upgrade.
  • Unknown administrator accounts created after the update window.
  • Plugins that no one installed, or PHP files sitting in wp-content/upgrade that you didn’t put there.
  • Any weird new wp-config.php variants in temp copies (attacker-written config files used to be a popular trick).

A few final bits of sanity:

  • Automatic background updates use the same updater flow, so they can be exposed unless the web access to the upgrade folder is blocked or the site already has the fixed updater.
  • WP-CLI’s core update is not a safe bypass — it uses the same unpacking path as the web updater.
  • If you’re still on very old releases (4.6 and earlier), there’s no patch — move to a supported version.

Short version: block access to the temporary upgrade folder or update manually outside the web root, then make sure you’re on the patched release. Do that and you’ll probably sleep better tonight.