Skip to content

WordPress security update: how to patch safely in late 2026

Installing WordPress 7.1.4 could open the very hole it fixed, and 7.1.5 followed three weeks later with 20 more fixes. What changed this autumn, the order to patch in, and the server rule to add first.

Dev's Club Engineering · 11 min read
ShareShare on LinkedInX
Illustration of a WordPress update from 7.1.3 to 7.1.4. While the 'Unpack to staging' step is open for seconds, an incoming request for /wp-content/upgrade/wordpress-7.1.4/…/setup-config.php reaches the server and is answered with 403, blocked at the server.
Dev's Club

On 28 October WordPress shipped 7.1.4 to fix a flaw in its own updater. The awkward detail emerged in early November: on many sites, installing that WordPress security update briefly reopened the hole it was meant to close, because the old, unpatched code does the unpacking. By then CISA had added the flaw, CVE-2026-119977, to its list of vulnerabilities exploited in real attacks, and Wordfence had blocked 13,095 attempts in a single day.

That matters to a lot of businesses. As of November 2026, WordPress runs 38.3% of all websites, and it was not the only problem this autumn. Release 7.1.5 followed on 18 November with 20 more core fixes, a Ghostscript flaw turned ordinary media uploads into a way onto the server, and the 7.2 major release lands on 8 December.

This guide puts those events in the order you should act on them. You'll get the one server rule to add before you touch the update button, a patch checklist you can hand to whoever maintains your site, and an honest view of when hardening WordPress stops being worth the effort.

What changed in WordPress security this autumn

For years the advice was simple: core is solid, plugins are the risk. The numbers backed it. Patchstack's State of WordPress Security in 2026 counted 11,334 new vulnerabilities across the ecosystem in 2025, 91% in plugins and 9% in themes, with just six in core, all low priority.

In 2026 that changed. CISA's Known Exploited Vulnerabilities catalogue has now listed four WordPress core flaws since July: two on 21 July, one on 25 September and CVE-2026-119977 on 3 November. A KEV listing means someone is attacking the flaw in the wild, not that a researcher found it in a lab.

Date-to-scale timeline of WordPress security events from July to December 2026, headed by '4 core flaws on CISA's exploited list (KEV) since July': two core flaws listed on 21 July, a third on 25 September, WordPress 7.1.4 on 28 October, CVE-2026-119977 listed on 3 November, WordPress 7.1.5 with 20 core fixes on 18 November, Upload2Shell (Ghostscript) on 21 November and WordPress 7.2 due on 8 December. The four events from 28 October to 21 November are bracketed as 4 events in 24 days.
In 2025 Patchstack counted six core vulnerabilities, all low priority. In 2026 four core flaws reached CISA's exploited list.Dev's Club

Plugins haven't got safer either. The same Patchstack report found that 46% of vulnerabilities had no developer fix at the time they were made public, and the weighted median time to first exploit for heavily targeted flaws was five hours. Five hours is shorter than most teams' gap between "the alert arrived" and "someone looked at it".

Why the WordPress update itself became the attack window

CVE-2026-119977 is a race condition, and the researcher who found it, Umut Bayram of Picus Security, has published a clear technical write-up. The short version runs like this.

During a full core update, WordPress unpacks the new release into a folder under wp-content/upgrade/. That copy includes setup-config.php, the installer. The temporary installer looks for an existing config in only two places, doesn't find the live one, and decides the site is unconfigured. An attacker who reaches it in those few seconds can point it at a database they control. The resulting wp-config.php was not on the updater's skip list, so it overwrote the real one. From there, the attacker creates an admin account and uploads a plugin that runs their code.

The attack only works if the folder name is predictable. On WordPress 5.9 to 7.1.3 it is, because it's derived from the download's filename.

Two-lane diagram of the WordPress upgrade race (CVE-2026-119977). Without the rule: an attacker requests /wp-content/upgrade/wordpress-7.1.4/…/setup-config.php during the seconds-long window between unpacking into the guessable upgrade/wordpress-7.1.4/ folder and copying files to the live site, a rogue wp-config.php overwrites the live one, and the site ends up on the attacker's database, with a new admin, a plugin upload and code running. With the rule: the same request is blocked at the server with a 403.
Why the first update to 7.1.4 is still exposed: the old updater names the staging folder, so the fix arrives through the weakness it closes.Dev's Club

Release 7.1.4 adds a random 16-character suffix to the folder and puts wp-config.php on the skip list. The catch, as The Hacker News reported, is that the update which installs the fix still "unpacks its files using the site's old, unpatched code". So the first jump to a fixed release uses the old, guessable name. Wordfence saw attack attempts nine minutes after deploying its firewall rule, and some sources kept probing small groups of sites for about 14.5 hours, which looks like waiting for the moment a site updates.

A firewall plugin running inside WordPress can't stop this. The request goes straight to a PHP file in the staging folder and never passes through WordPress, so the block has to live at the web server.

How to apply a WordPress security update safely

If your site isn't yet on the latest fixed release for its branch, work through these steps in order. The first step comes before the update, not after.

  1. Block web access to wp-content/upgrade/. WordPress reads that folder from disk, so denying HTTP access doesn't break updates.
  2. Check the block works. A request to the folder should return 403.
  3. Take a backup you have actually restored once. Database and wp-content, stored off the server.
  4. Update core to 7.1.5, or the fixed release for your branch: 7.0.9, 6.9.12, 6.8.13 and so on, down to 4.7.40, per the official release notes.
  5. Look for signs you were hit before the patch: requests to PHP files under wp-content/upgrade/, admin accounts nobody recognises, unfamiliar plugins, and PHP files in the staging folder that nobody put there.
  6. Leave the block in place. It costs nothing and covers whatever comes next.

The server rules come straight from the researcher's and The Hacker News's guidance. Use the one that matches your stack:

nginx: inside the server block
location ^~ /wp-content/upgrade/ {
    deny all;
}
Apache: in the virtual host config
<Directory "/var/www/html/wp-content/upgrade">
    Require all denied
</Directory>

# Shared hosting with only .htaccess? Put this in the ROOT .htaccess,
# above the WordPress rewrite rules:
# RedirectMatch 403 ^/wp-content/upgrade/
verify.sh
# Expect 403. A 404 or 200 means the rule isn't active.
curl -s -o /dev/null -w "%{http_code}\n" https://example.com/wp-content/upgrade/

# Confirm the core version afterwards (needs WP-CLI on the server)
wp core version

If you can't change server config at all, the only other safe route is a manual update outside the web root: unpack the release elsewhere, copy the core files across without touching wp-config.php or wp-content, then run the database upgrade. Picus documents that path in its write-up.

What WordPress 7.1.5 fixes, and who should worry most

If you patched to 7.1.4 and stopped, you're still three weeks behind. Version 7.1.5 fixes 20 issues, and the one that matters most is an unauthenticated privilege escalation via Template Part block attributes that the release notes say could lead to remote code execution.

Patchstack's analysis of 7.1.5 explains how. An attacker gets crafted block markup in front of an editor, and the block editor then sends requests to attacker-chosen endpoints using that editor's cookies and nonce. With an administrator's session, that reaches plugin installation. No CVE numbers had been assigned when the release shipped, and neither WordPress nor Patchstack reported exploitation in the wild. Don't read that as permission to wait: the previous release went from patch to KEV listing in six days.

The rest of the list rewards a look at who has which role. Patchstack points out that six fixes concern what Contributor-level users and above can reach, and that a site Administrator is the attacker in two of the three highest-scoring issues. One lets a site Administrator on Multisite take over a Super Admin account through Customizer menu previews. So, after you update:

  • Remove Contributor, Author and Editor accounts that belong to former staff, agencies and freelancers.
  • On Multisite, check who holds site Administrator and whether they still need it.
  • Turn on two-factor authentication for every account that can publish.

The flaw underneath WordPress: Ghostscript and your media uploads

Not every WordPress risk lives in WordPress. On 21 November researchers published Upload2Shell (CVE-2026-125396), a use-after-free in Ghostscript's font loader that lets a crafted file run commands as the rendering process.

WordPress reaches it through ImageMagick. When WordPress generates a preview of an uploaded PDF, Imagick hands PostScript content to Ghostscript, and in the researchers' test a file named .pdf that actually contained PostScript did just that. In core, uploading needs an Author account. Two popular plugins, Forminator and Essential Addons for Elementor, exposed the same path to signed-out visitors.

The fixes are split across layers, which is why this one slips through. WordPress shipped its core mitigation in 7.0.4 (and 6.9.7). Ghostscript fixed the root cause in 10.08.0 on 8 September 2026, with distribution backports for Debian and Ubuntu. The researchers add a warning that catches containerised sites: "Updating the host operating system does not update a separate copy of Ghostscript" inside an existing container or bundle. If your WordPress runs in Docker, rebuild the image; patching the host isn't enough.

Plugins are still the bigger risk, and WordPress.org now screens them

Core grabbed the headlines, but with 91% of 2025's vulnerabilities in plugins, your plugin list is still where most of the exposure sits. There is one structural improvement worth knowing about. Since 5 June 2026, every plugin and theme release on WordPress.org has gone through a six-hour cooldown before it is offered as an update, while several AI models and Jetpack Scan review the changes. High-risk releases are blocked automatically. On 28 July that review caught a backdoor in a release for a plugin with about 20,000 active installations, and the version was never distributed.

That cooldown protects you from a hijacked developer account. It does nothing about plugins installed from outside WordPress.org, abandoned plugins nobody updates, or the 46% of flaws that go public before a fix exists. A short plugin policy closes most of that gap:

  • Every plugin has a named reason to exist. If nobody can say what it does, remove it.
  • No plugin without an update in the past 12 months, unless you have read its code.
  • Premium plugins come from the vendor's own update channel, never a "nulled" download.
  • Auto-updates stay on for plugins with a good track record; anything that touches checkout, forms or uploads also gets a staging test.
  • Someone receives the vulnerability alerts for your exact plugin list, and has the access to act within a day.

WordPress 7.2 on 8 December: update now or wait

WordPress 7.2 is the last major release of the year, with the final build scheduled for 8 December after a fourth release candidate on 1 December. It ships with a new default theme.

Don't confuse the two jobs. Security releases like 7.1.5 should go on within days, on every site. A major release changes features and APIs, so test it on staging against your theme and plugins first, and give your critical plugins a week or two to ship compatibility updates. Holding 7.2 for a fortnight is sensible. Holding 7.1.5 for a fortnight is not. Staying on 7.1 for a while is fine: the 7.1.5 notes show security fixes backported to every branch down to 4.7.

When to stop hardening and move off WordPress

For most marketing sites, the steps above are enough, and a rebuild would be wasted money. Moving to a headless CMS with a framework such as Next.js starts to pay off when several of these are true:

  • Stay on WordPress when editors depend on its admin, the site needs fewer than about ten plugins, and someone owns patching with server access.
  • Harden and outsource maintenance when the site makes money but nobody internal can apply a server rule or read a security advisory.
  • Plan a move when the site carries 30-plus plugins, custom code nobody wants to touch, or forms and uploads from the public, and you're paying for repeated clean-ups. A statically rendered front end with no PHP on the public server removes whole classes of attack, including this autumn's upgrade race.

Whichever way you lean, the first hour is the same: add the wp-content/upgrade rule, confirm the 403, update to 7.1.5 and audit your accounts. If you're weighing a rebuild instead, our web development team builds fast, server-rendered sites on Next.js, and our SEO and performance work makes sure a migration keeps the rankings you already have.

Sources

  1. Version 7.1.5, WordPress.org, Nov 18, 2026
  2. Version 7.1.4, WordPress.org, Oct 28, 2026
  3. CVE-2026-119977: When Updating WordPress Becomes the Vulnerability, Picus Security, Nov 4, 2026
  4. Installing the Fix for an Exploited WordPress Flaw Can Expose Some Sites One Last Time, The Hacker News, Nov 6, 2026
  5. CISA flags WordPress RCE flaw as actively exploited in attacks, BleepingComputer, Nov 4, 2026
  6. CISA Lists a Fourth WordPress Core Flaw Since July. WordPress Rates This One Low, WebHosting.Today, Nov 4, 2026
  7. WordPress 7.1.5 Security Release, Patchstack, Nov 18, 2026
  8. How We Hacked the Pipes: Upload2Shell, pwn.ai, Nov 21, 2026
  9. State of WordPress Security in 2026, Patchstack, Feb 25, 2026
  10. WordPress adds automated security checks to block risky plugin releases, Help Net Security, Sep 10, 2026
  11. WordPress 7.2, Make WordPress Core, Feb 12, 2026
  12. Usage statistics and market share of WordPress, W3Techs
  • #wordpress
  • #web-security
  • #patching
  • #cve
  • #website-maintenance
Written byDev's Club Engineering

The team behind real-time auction platforms, SaaS products and ERPs for clients in Europe, the US and India.

Have an idea? Let's build it.

Start a project