News , updated · 10 min read

WordPress 7.1.4 Security Release: Update Now, RCE Fixed

By WP Vanguard Team

WordPress 7.1.4, released on October 28, 2026, fixes a remote code execution bug in the way core upgrades itself. Wordfence tracks it as CVE-2026-119977 and says its firewall has blocked more than 240,000 attempts against it. On November 3, CISA added it to its Known Exploited Vulnerabilities catalog, where it's listed as a time-of-check time-of-use race condition. If your site hasn't updated to 7.1.4 yet, read the section on updating safely before you click Update Now. The update that installs the fix is itself exposed.

The same release closes eleven other security issues, mostly stored cross-site scripting. Only the upgrade bug can be reached without logging in.

WordPress 7.1.4 Security Release: Update Now, RCE Fixed
On this page

8.1

CVSS for the upgrade-window RCE, the only 7.1.4 fix above 6.4

Source: Wordfence Intelligence feed, as recorded in the WP Vanguard vulnerability database.

What the WordPress 7.1.4 security release fixes

The official announcement lists the fixes in one paragraph each. Grouped by what they let an attacker do:

Class Who can trigger it Fixed in
Upgrade-window RCE Anyone, no login 7.1.4
Customizer changesets readable Anyone, no login 7.1.4
Stored XSS (blocks, Customizer, Interactivity API) Contributor and above 7.1.4
Stored XSS (user logins, privacy requests) Admin-created data 7.1.4
Stored denial of service (Interactivity API) Contributor and above 7.1.4
Notes readable without edit access Privileged users 7.1.4

WordPress also updated its bundled root certificates because of the eMudhra revocation. Wordfence's feed splits the Interactivity API work into several separate entries, which is why you'll see more rows in scanners than in the announcement.

The scores are modest outside the headline bug. The XSS entries sit at CVSS 6.4 or below, and the Customizer leak scores 5.3. Stored XSS still matters when a Contributor account is one weak password away from an admin session, as we showed in our stored XSS research.

Which of the stored XSS fixes matter for your site

Stored XSS in core needs an account that can save content, so the risk depends on who has one. Three questions sort most sites quickly:

  • Do you accept Contributor or Author registrations? Most of the block and Interactivity API fixes need Contributor access. A membership, community or multi-author site has far more exposure than a one-person blog.
  • Do you use block themes or interactive blocks? The Interactivity API fixes only matter where those blocks render. Classic themes with few blocks see less of it.
  • Do admins process privacy requests or create users by hand? The privacy request and user login fixes hit data an admin creates or views, so the payload rides in on something that looks routine.

None of that makes waiting a good plan. Each issue is fixed in the same download, so one update covers all of them. The questions only tell you how hard to look afterwards. On a site with open registration, review recent Contributor posts and any block content with unusual attributes before you assume the site is clean.

The Customizer changeset leak is the other unauthenticated fix. It exposes unpublished changes, such as draft menus, widget content and site settings someone was previewing. It won't give an attacker access, but it can leak work you hadn't announced.

How the upgrade-window bug works

We diffed core 7.1.3 against 7.1.4 in the public SVN repository. Three changes in the upgrade path stand out. On November 5 the researcher who found the bug, Umut Bayram of Picus Security, published a technical write-up, and it matches what the diff shows.

First, core used to unpack a downloaded package into a folder under wp-content/upgrade/ named after the package file. That name was predictable. 7.1.4 appends 16 random characters to it.

Second, 7.1.4 writes an index.php into wp-content/upgrade/ so the folder can't be listed. The code comment says the directory is web-served and that the working directory's name should not be discoverable from a directory index.

Third, update-core.php now refuses to copy a wp-config.php out of the working directory. The comment reads: "Never copy a wp-config.php, which could have been written to the working directory."

Key finding

During a full-package core update, WordPress unpacks a second copy of itself, installer included, into a folder the web server can reach. For a few seconds an attacker who knows the folder's name can run that installer.

Picus describes the chain this way. The temporary installer looks for a wp-config.php in only two places, neither of which holds the live one, so it decides the site isn't set up yet and starts the normal install. The attacker points it at a database they control, and it writes a new wp-config.php into the temporary copy. The old updater then copies that file over the real one. With the site pointed at an empty database, the attacker creates the first administrator and uploads a plugin to run PHP. We haven't reproduced it and won't publish how to.

The race is narrow. Wordfence measured the window at seconds in its lab, which is why it scores the flaw 8.1 and not higher. Its logs show attackers polling the predictable path over and over to catch it, with requests to setup-config.php under wp-content/upgrade/wordpress-<version>/. A single request rarely wins, but automated polling against thousands of sites doesn't need to.

The update that installs the fix is still exposed

Here's the part most update notices skip. A core update runs code from two versions of WordPress. The old code already on your site unpacks the new package, and the new code then copies the files into place. The three fixes don't all land at the same moment:

  • The wp-config.php skip works straight away. It lives in the new package's update-core.php.
  • The random folder name and the index.php guard don't. They live in the old updater that does the unpacking, so on this one update the folder name is still predictable.

So clicking Update Now on an unpatched site leaves the window open one last time. An attacker can no longer swap your live configuration. They can still set up the temporary copy with their own database, log in to it and run PHP with the web server's permissions, and from there read or write files in your live site. Once 7.1.4 or your branch's fix is installed, later updates use a random folder name.

Whether a given update exposes you depends on two things. The package has to contain the installer files, and the folder name has to be guessable. Complete packages always carry the installer. A partial package, built for one starting version, only does if that archive happens to include them. WordPress also falls back to a complete package when your core files don't match the official checksums or when you're reinstalling. Picus puts the rule plainly: what matters is whether the updater already on your site has been fixed.

On the folder name, Picus's reading of the old code gives this:

WordPress version Where the temporary folder name comes from Guessable?
2.7.0 to 2.7.1 Fixed path, wp-content/upgrade/core Yes
2.8.0 to 4.3.x The downloaded package's filename Yes
4.4.0 to 5.8.x Filename plus 6 random characters Only if the path leaks, for example in an error message
5.9.0 to 7.1.3 The package filename again, from the download's Content-Disposition header Yes

Wordfence lists the affected range as 4.7 through 7.1.3, because those are the branches that got a fix. Picus says the updater behavior goes back to 2.7. WordPress 4.6 and earlier get no patch at all, so a site on one of those has to move to a supported version.

What to do now

  1. Block web access to wp-content/upgrade/ first. WordPress reads and writes that folder on disk and never needs to serve it over HTTP, so denying it doesn't break updates. On Nginx, add location ^~ /wp-content/upgrade/ { deny all; }. On Apache, add Require all denied for that directory in the virtual host. If you can only edit .htaccess, put RedirectMatch 403 ^/wp-content/upgrade/ in the root file, above the WordPress rewrite rules. Don't create an .htaccess inside wp-content/upgrade/ itself, because the old updater empties that folder before it unpacks. Then confirm that a request to /wp-content/upgrade/ returns 403.
  2. Update to 7.1.4 or the fixed release for your branch. Open Dashboard, then Updates. The branch releases include 6.9.11, 6.8.12, 6.7.11 and 7.0.8. Sites with automatic background updates should have it already, but check. Automatic updates use the same updater, so the same window applies to them.
  3. Or update by hand, outside the web root. Back up files and the database, unpack the release somewhere the web server doesn't serve, copy the core files over without touching wp-config.php or wp-content, then run wp core update-db. No temporary installer is ever created. wp core update is no substitute: it uses the same updater and unpacks into the same folder.
  4. Confirm the version. wp core version should print 7.1.4 or a patched backport.
  5. Verify core files. wp core verify-checksums flags any core file that doesn't match the official release.
  6. Look inside wp-content/upgrade/. After a finished upgrade it should hold nothing except index.php. Leftover folders with long package-style names, or any PHP file you didn't put there, deserve a look. Search your access logs for requests to setup-config.php under that folder, and review the administrator list for accounts nobody created.
  7. Check the web root for a stray wp-config.php outside the place you expect it, and for PHP files you don't recognize. Our guide to the signs of a hacked WordPress site lists what else to check.

Wordfence's free firewall rule for this flaw arrives on November 27, 30 days after the paid one, so free users shouldn't count on it for this update. A firewall rule also doesn't replace the steps above.

If the site was mid-upgrade when it was probed, treat unexplained files as suspicious until you've compared them to the release. For the broader picture of how attackers get in, see how WordPress sites get hacked.

PHP also had a critical release on October 21. If you haven't dealt with it, our PHP2Shell update guide covers it.

Let us check it

A surface scan is free and tells you whether your WordPress version is on our vulnerability list. The free deep scan goes inside the server over SSH. It checks core files, the upgrade folder, users, cron jobs and the database, which is where the persistence from an attack like this lives. If it finds something, Wbcom's engineers can clean it up for a fixed price.

For this week's other critical updates, see the plugins to patch this week.

References

Check your WordPress site security

Free scan, no login required. Find vulnerabilities before attackers do.

Scan your site free

Related reading

Get weekly WordPress security tips

Vulnerability alerts, plugin updates, and security guides. No spam. Unsubscribe any time.