PHPCheck.net

WordPress flaw CVE-2026-119977: why the update itself is risky – and how to update to 7.1.4 safely

In short
  • What: a flaw in WordPress core (CVE-2026-119977): during a core update an attacker can run their own PHP code without logging in.
  • Affected: WordPress 4.7 to 7.1.3. Fixed in 7.1.4 (28 Oct 2026) and in fix releases for every older branch from 4.7.
  • Status: actively exploited – in the CISA KEV catalogue since 3 Nov 2026.
  • The catch: the update itself still runs through the old, vulnerable updater. So block wp-content/upgrade first, then update.

What happened?

During a core update WordPress first unpacks the new version into a folder under wp-content/upgrade. That copy also contains the installer – which is usually reachable through the web server. From WordPress 5.9 on the folder name is predictable because it is derived from the download's file name. Anyone who reaches the installer in the few seconds before WordPress cleans up can set it up with their own database and run PHP code with the web server's privileges – and read and modify files of the live site.

The flaw was reported by Umut Bayram (Picus Security). WordPress released 7.1.4 on 28 Oct 2026; CISA added the flaw to its list of actively exploited vulnerabilities on 3 Nov 2026. Wordfence counted more than 18,500 attack attempts on the installer paths in the first 21 hours, the first ones nine minutes after its firewall rule went live. Public exploit code has appeared on GitHub.

Why the update itself is the risky moment

Whether an update is safe depends on the updater already installed – not on the new version. Updating from 7.1.3 to 7.1.4 therefore uses the vulnerable code one last time. Full packages (e.g. when jumping branches, 7.0.x → 7.1.4) and automatic background updates are most exposed. Only once 7.1.4 or your branch fix is installed do later updates use random folder names. wp core update (WP-CLI) uses the same process and is not a safe substitute.

Update safely – in this order

  1. Block web access to wp-content/upgrade (see below). Updates still work because WordPress reads the folder from disk.
  2. Do not put an .htaccess inside wp-content/upgrade – the old updater empties the folder before unpacking.
  3. Test the block: requesting https://your-domain.com/wp-content/upgrade/test.php must return 403 (not 404).
  4. Update to 7.1.4 or the fix release of your branch (table below).

nginx

location ^~ /wp-content/upgrade/ {
    deny all;
}

Apache (vhost or .htaccess in the WordPress root)

<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteRule ^wp-content/upgrade/ - [F,L]
</IfModule>

The rule belongs in the .htaccess in the WordPress root – before the # BEGIN WordPress block. If WordPress lives in a subfolder, adjust the path.

Alternative: manual update

Unpack the new version outside the web root, replace the files (keeping wp-config.php and wp-content) and then run the database update in the admin area.

Fix releases per branch

BranchSafe fromBranchSafe from
WordPress 7.17.1.4WordPress 5.85.8.19
WordPress 7.07.0.8WordPress 5.75.7.21
WordPress 6.96.9.11WordPress 5.65.6.23
WordPress 6.86.8.12WordPress 5.55.5.24
WordPress 6.76.7.11WordPress 5.45.4.25
WordPress 6.66.6.11WordPress 5.35.3.27
WordPress 6.56.5.14WordPress 5.25.2.30
WordPress 6.46.4.14WordPress 5.15.1.28
WordPress 6.36.3.14WordPress 5.05.0.31
WordPress 6.26.2.15WordPress 4.94.9.35
WordPress 6.16.1.16WordPress 4.84.8.34
WordPress 6.06.0.18WordPress 4.74.7.39
WordPress 5.95.9.20

WordPress 4.6 and older no longer gets security updates – according to the researcher the flaw goes back to 2.7. Those sites should move to a current branch. A higher version number in the same branch is not automatically enough: what counts is reaching at least the fix release.

How to check your site

Signs of an attack

zgrep -E "/wp-content/upgrade/.*\.php" /var/log/apache2/*access*.log* /var/log/nginx/access.log*
find /var/www -path "*wp-content/upgrade*" -name "*.php" -mtime -14

A match is a lead, not proof. If there are concrete signs: preserve the logs, rotate credentials and restore from a clean backup or fresh packages. More on basic hardening: Harden WordPress.

Other current reports (early November 2026)

Sources

More guides