WordPress Core Flaw Exploited During Updates: What Site Owners Must Check

Laptop showing code on a white desk next to a plant and a yellow mug

Attackers are exploiting a WordPress core flaw, CVE-2026-119977, that can let them run code on a site during the few seconds it takes to install a core update. No account is needed. CISA added it to its Known Exploited Vulnerabilities catalog on November 3. The fix is WordPress 7.1.4 or the matching security release for older branches. If your site updates automatically you’re probably already covered, but you should check, and you should check older and forgotten sites too.

What the flaw is

The bug is a race condition in the core update process. According to Beazley Security’s advisory, during a full-package update, affected versions:

  • unpack the new WordPress files into a predictable folder under wp-content/upgrade/ before swapping them into place;
  • delete the index.php file that normally stops the folder from being listed; and
  • include a staged copy of wp-admin/setup-config.php, the installer script, which runs without the site’s configuration file.

On many servers that staging folder is reachable from the web and PHP runs there. An attacker who requests the staged installer during the update window can use it to run code on the server. The window lasts only seconds, so attackers poll continuously and wait for a site to update.

The flaw is rated High (CVSS 8.1) rather than Critical because the timing is hard to hit. That hasn’t stopped attackers. Wordfence logged more than 18,500 requests to staged installer paths in the first 21 hours after details were published, and was blocking more than 12,000 attempts a day when The Hacker News reported on November 4. No public proof-of-concept exploit has been released.

Who is affected

  • Affected: WordPress 4.7.0 through 7.1.3, in every branch before its fixed release.
  • Fixed: 7.1.4 (released October 28), plus security releases for older branches, including 7.0.8, 6.9.11, 6.8.12, 6.7.11 and earlier (the full list is in the advisory).
  • Unfixable: WordPress 4.6 and earlier get no security updates. Upgrade them or take them offline.

WordPress recommends 7.1.4 over branch fixes, since only the latest version is fully supported. The fix adds 16 random characters to the staging folder name, keeps the index.php in place, and stops the configuration file from being copied out.

What site owners should do

  1. Check your version now. In wp-admin, go to Dashboard โ†’ Updates and confirm you’re on 7.1.4 or your branch’s fixed release. Background updates usually apply security releases automatically, but confirm it rather than assume.
  2. Find forgotten installs. Old staging copies, development sites, landing-page microsites and abandoned blogs often don’t auto-update. List every WordPress install on your hosting accounts and update or delete them.
  3. Block web access to the upgrade folder. WordPress writes to wp-content/upgrade/ from the server side, so visitors never need to reach it. On Apache, a small .htaccess file inside that folder containing Require all denied blocks direct requests. On Nginx, add a location rule that denies the path. This is extra protection, not a substitute for updating.
  4. Don’t rely on a security plugin alone. Patchstack says plugin-level firewalls can’t stop this attack, and Wordfence says its firewall covers it only with Extended Protection enabled.
  5. Check your logs. Search web server logs for requests to PHP files under wp-content/upgrade/, especially setup-config.php, and give extra attention to requests around the time of any core update.
  6. Look for signs of compromise. Look for unfamiliar admin accounts, plugins you didn’t install, unknown PHP files and changes to wp-config.php. If you find any, keep the logs, then rotate database credentials, salts and passwords before cleaning up. Updating now doesn’t undo a compromise that happened during an earlier update.

Why it matters

WordPress runs a large share of the web, and this bug is in core, not a plugin, so it reaches sites that otherwise follow good practice. It’s also a reminder that update mechanisms themselves are attack surface. The process meant to keep a site safe briefly left it exposed, in the same way the update channel was the point of failure in the CrowdStrike outage. For the web flaws that cause the most damage overall, see our guide to the CWE Top 25.

The bottom line

Most WordPress sites with automatic updates are already patched. The real risk sits in the sites nobody is watching: old branches, staging copies and client sites handed over years ago. Spend half an hour this week finding them, updating them, and closing off wp-content/upgrade/ to the web.

Leave a Reply

Your email address will not be published. Required fields are marked *

Newsletter

Get the WWCN brief

The week’s most important cybersecurity stories and practical guides, explained in plain English.

No spam. Unsubscribe at any time.

Latest

Sections

More from World Wide Cyber News

World Wide Cyber News is published by VisualNest, a web, SEO and cybersecurity studio.