Headless WordPress Under Attack: What to Check After CVE-2026-119977 (and Why to Update Next.js and Nuxt Too)

A headless site has two layers: WordPress as the CMS on a subdomain, and a Next.js or Nuxt frontend. In late October and early November 2026, both layers got security releases. Here is what happened, with a short checklist for each layer.

1. What CVE-2026-119977 is

The bug. It’s a race condition (TOCTOU, CWE-367) in the WordPress core update process. During a full-package core update, vulnerable versions extract the new files into a predictable directory under wp-content/upgrade/, and the web server may serve that directory directly. The staged copy includes the installer, wp-admin/setup-config.php. An attacker who requests that file before it’s removed can run PHP code on the server, with no authentication.

What an attack needs:

  • it only works during the update window, which usually lasts a few seconds;
  • the web server must serve and execute PHP from wp-content/upgrade/;
  • affected versions are 4.7 through 7.1.3, each branch up to its own patch release.

Why the ratings differ so much. WordPress rates the issue Low in its own advisory. The CVE record lists CVSS 3.1 = 8.1 (High), vector AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H. That score comes from Wordfence, acting as the CNA. Both views are fair. CVSS scores the impact, and a successful attack means full RCE. WordPress’s Low most likely reflects how hard it is to hit a window of a few seconds. WordPress doesn’t explain its rating, so that part is my reading.

Why it matters now. Exploitation has moved past theory:

  • On November 3, CISA added the CVE to its Known Exploited Vulnerabilities (KEV) catalog. The remediation deadline for US federal agencies was November 6.
  • According to Wordfence, attacks started on the day the flaw was disclosed.
  • By November 5, the Wordfence firewall had blocked more than 240,000 requests for the staged installer, with a peak of over 74,000 on October 30.

Every one of those requests is a bet that the site happens to be updating at that exact second.

One detail matters here. Updating from a vulnerable version to 7.1.4 runs the vulnerable update process one last time. So close the directory at the web server first, then update.

2. WordPress backend checklist

2.1. Block wp-content/upgrade/ at the web server

The updater works with this directory through the file system, so it never needs HTTP access to it.

nginx (in the CMS server block, above the generic location ~ \.php$):

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

The ^~ modifier keeps the PHP regex location from catching the request first.

Apache 2.4, in the virtual host configuration:

<Directory "/var/www/cms/wp-content/upgrade">
    Require all denied
</Directory>

Without access to the vhost, add a rule to the root .htaccess, above the WordPress block:

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

Then check from outside that the rule actually works:

curl -s -o /dev/null -w "%{http_code}\n" https://cms.example.com/wp-content/upgrade/index.php
# expect 403

2.2. Update core to 7.1.4 or your branch’s backport

WordPress 7.1.4 shipped on October 28. The fixes were backported to every branch back to 4.7, for example 7.0.8, 6.9.11, 6.8.12 and so on down to 4.7.39. Branches 4.6 and older got no fix and need to move to a supported release.

wp core version
wp core update
wp core version   # confirm the version actually changed

2.3. Verify core file integrity

wp core verify-checksums
wp plugin verify-checksums --all   # for plugins from wordpress.org

Look into any extra or modified file in core separately.

2.4. Search the logs for PHP requests to the upgrade directory

# nginx, including rotated logs
zgrep -hE '"(GET|POST|HEAD) /wp-content/upgrade/[^" ]*\.php' /var/log/nginx/access.log* \
  | awk '{print $1, $4, $7, $9}' | sort | uniq -c | sort -rn | head -50

For Apache, the same grep works on /var/log/apache2/access.log* or /var/log/httpd/access_log*.

How to read the results:

  • 403 or 404: the rule worked, or someone was just scanning.
  • 200 on a .php file in wp-content/upgrade/, especially during an update, means incident response, not routine maintenance. In that case:
  • copy the logs off the server;
  • look for unfamiliar administrators, PHP files in uploads and mu-plugins, and new cron jobs;
  • rotate passwords and keys.

3. Why a headless CMS on a subdomain is often just as exposed

The “frontend lives elsewhere, WordPress sits off to the side and nobody goes there” mindset works against you. Here is what I see regularly:

  • wp-admin is open to the whole internet. Editors need the admin, and the frontend only needs the API (REST or GraphQL). You can restrict the admin by IP, VPN or basic auth. Just check whether any of your plugins need admin-ajax.php to be publicly reachable.
  • Nobody checks the auto-updates. The Next.js site looks alive even when the CMS is six months behind because a background update quietly broke at some point. Check the version by hand (wp core version) instead of trusting the settings.
  • The CMS has no monitoring. Everyone watches the frontend logs, almost nobody watches the cms. logs, even though that’s what gets attacked.
  • Too much is exposed. xmlrpc.php, directory listing, staging copies on public hostnames. Disable or block anything the frontend doesn’t need.

4. Next.js 16.4.5 and 15.5.29

16.4.5 is the Active LTS line and 15.5.29 is Maintenance LTS. The release fixes seven issues: one High and six Medium.

npm install next@16.4.5    # 16.x line
npm install next@15.5.29   # 15.5 line

If you use Cache Components and use cache. This is the main part of the release:

  • Cross-tenant cache disclosure (High, GHSA-mfr8-8qww-v76h). The trigger is a public use cache function that reads a root parameter (such as a tenant ID) and is called both directly and from inside unstable_cache. During a cold cache fill, that call can receive another request’s result and store it.
  • Nested use cache functions (Medium, GHSA-vc7v-qv4w-wrv8). Content generated for one root-parameter value (tenant, site, locale) can be served for another.
  • Binary use cache arguments (Medium, GHSA-rhh4-g77r-r9qj). Different binary arguments can produce the same cache key. The result is another user’s cached data leaking, or cache poisoning.
  • Shared shell cache poisoning (Medium). Affects self-hosted next start with Cache Components and Partial Prefetching disabled or unset, and only on a specific route shape with dynamic parameters.

If you self-host behind an HTTP/1.1 proxy. A separate issue is cross-client response injection (Medium, GHSA-pc58-hwjq-p385). It appears when the app returns an attacker-controlled fetched Response unchanged and the proxy queues pipelined requests on a shared backend connection. It doesn’t apply to every proxy configuration.

If you set cookies in Edge routes. There’s an issue with HttpOnly cookies on Edge (Medium, GHSA-f3mh-rxg3-f5g2). NextResponse.cookies.set() in Edge Route Handlers and Edge API routes can copy the cookie into the internal x-middleware-set-cookie header, which same-origin JavaScript can read even when the cookie is marked HttpOnly. Exploiting it requires attacker JavaScript already running on your origin. Node.js handlers and cookies().set() were not affected in testing.

If you use next/image with external sources. This one applies: an SVG rejection bypass (Medium, GHSA-7qx7-33qx-rqx2). An image from a permitted source can be misclassified as AVIF and get past images.dangerouslyAllowSVG: false, if the native backend can decode SVG. On its own this doesn’t give XSS or RCE, but it exposes you to SVG parser vulnerabilities.

This matters especially for headless WordPress. Images are often pulled from cms. through remotePatterns, and multisite or multilingual setups are often built on root parameters.

5. Nuxt 4.6.4

Nuxt 4.6.4 shipped on November 2. It fixes eight advisories in Nuxt itself and pulls in nitropack 2.13.6, which fixes three more in Nitro.

npx nuxi upgrade
# or manually: nuxt@4.6.4

Behaviour changes to check after updating:

  • Errors in production. Previously, an unhandled error during SSR could send the client its message and data, for example the URL of a failed $fetch with its query string and the upstream response body (GHSA-96×6-fvhx-49hg). Now the payload only carries what you explicitly create with createError. If you showed users throw new Error('…'), switch to createError.
  • devServer.allowedHosts. The webpack and rspack dev servers now reject unexpected Host headers, as Vite already did (DNS rebinding protection, GHSA-x2wv-5868-p7v2). If you work through a tunnel or a custom hostname, add it to devServer.allowedHosts.
  • Route rules caching. The cache, swr and isr rules now cache only GET and HEAD. They no longer store responses that set a cookie or send Cache-Control: private or no-store. Wildcard proxy and redirect rules no longer let a request escape their scope.
  • Encoded slashes. Route rules now match paths like /api%2Fadmin, so a /api/** rule actually covers them (GHSA-f3x9-2chm-73c8).
  • Leading // in the path. A bypass of server/middleware and route rules through such paths is fixed (GHSA-r99w-jh2x-3mg9, affected 4.6.0–4.6.3).

Nuxt 3 is end of life and won’t get fixes for some of these advisories. If a project is still on Nuxt 3, it’s time to plan the migration.

6. Bonus for Laravel: 12.72.0

Laravel 12.72.0 shipped on November 10; for the 13.x line, the fix is in 13.41.0. The release closes two temporary signed URL expiry bypasses, both Moderate with CVSS 4.8:

  • GHSA-6rv8-qj5v-p8ch. If numeric keys from user input were passed to temporarySignedRoute() or signedRoute(), an attacker could append a second expires and make the link never expire.
  • GHSA-v5ch-g375-82r6. If max_input_vars caused expires to drop out of the parsed query, an expired link could pass validation.
composer update laravel/framework

After updating, run your tests for redirects with query strings: issue #62416 reports a regression in 12.72.0.

7. Patch day in 15 minutes

Here’s a routine you can repeat weekly, or on the day a security release ships.

WordPress (5 minutes):

  1. curl on /wp-content/upgrade/index.php returns 403.
  2. wp core version and wp plugin list --update=available: update core and plugins.
  3. wp core verify-checksums.
  4. zgrep the logs for PHP requests to wp-content/upgrade/ with status 200.

Frontend (5 minutes):

  1. npm outdated next nuxt (or pnpm outdated), then move to your line’s patch release.
  2. npm audit --omit=dev: see what’s still open.
  3. Build and smoke-test the pages that use caching, images and auth.

Wrap-up (5 minutes):

  1. Confirm wp-admin isn’t reachable from a public IP.
  2. Write down what you updated and to which version. It saves time next round.

If you’d like someone outside the project to take a look, I offer a free “first look”. It’s a quick review of your code and configuration that highlights weak points such as an open admin, outdated branches or risky caching. It isn’t a full audit, but it usually shows where to start. Get in touch, and I’ll reply within one working day.


Sources:

  • WordPress 7.1.4 — https://wordpress.org/news/2026/10/wordpress-7-1-4/
  • WordPress security advisory GHSA-4w3m-c66w-69mg (severity Low) — https://github.com/WordPress/wordpress-develop/security/advisories/GHSA-4w3m-c66w-69mg
  • NVD, CVE-2026-119977 — https://nvd.nist.gov/vuln/detail/CVE-2026-119977
  • CISA KEV — https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-119977
  • Wordfence — https://www.wordfence.com/blog/2026/11/attackers-actively-probing-for-upgrade-window-rce-vulnerability-in-wordpress-core/
  • WP Server Guard, week to November 9 — https://wpserverguard.com/blog/wordpress-security-news-2026-11-09/
  • Next.js November 2026 Security Release — https://nextjs.org/blog/november-2026-security-release
  • Nuxt v4.6.4 — https://github.com/nuxt/nuxt/releases/tag/v4.6.4 and https://github.com/nuxt/nuxt/security/advisories
  • Laravel v12.72.0 — https://github.com/laravel/framework/releases/tag/v12.72.0, GHSA-6rv8-qj5v-p8ch, GHSA-v5ch-g375-82r6