How To

WordPress 7.1.5 Security Release: Check and Patch Your Site

WordPress published 19 security advisories on 18 November 2026, and the WordPress 7.1.5 security release closes every one of them. Five are rated high. The worst lets an unauthenticated attacker turn one click from an Administrator into a new admin account, and from there into code execution. Another lets anyone who can post a comment store a script on pages where a Comments or Latest Comments block sits in the post content.

Original content from computingforgeeks.com - post 192618

The fixes were backported to every branch down to 4.7, so you don’t have to jump to 7.1 to be safe. This guide lists what each advisory exposes and who can reach it, then checks and patches a site with WP-CLI and from the dashboard. It finishes with the stopgaps we’d use on a site that can’t update today. Every step was run in November 2026 on Ubuntu 26.04 with PHP 8.5, MariaDB 11.8 and nginx, against a 7.1.4 site and a 6.9.11 site, and nothing here turns a security control off.

The advisories and who can trigger them

None of these issues has a CVE ID. WordPress published them as GitHub security advisories on the wordpress-develop advisory list, so the GHSA ID is the identifier to track. The last column is the oldest branch that carries the bug: a site on an older branch is not exposed to that row.

AdvisorySeverityWhat it exposesWho can trigger itBug present from
GHSA-pmp8-6cv8-q323HighPrivilege escalation through Template Part block attributes, can end in code executionAuthor and above, or no account at all if an Administrator opens a crafted editor link5.9
GHSA-cr2m-2j4r-3v3xHighStored XSS through shortcode attributes in commentsAny visitor who can comment, on pages with a Comments or Latest Comments block in the content4.7
GHSA-mwj7-xhp9-7773HighSuper Admin takeover through Customizer menu previewsSite Administrator on a multisite network with a classic theme and widgets4.7
GHSA-gm52-6h3w-97v4HighReflected XSS in the legacy media library popupNo account, if a logged-in user who can upload files opens a crafted link4.7
GHSA-jmhp-hg7w-w9c5HighXSS in the block editor through Openverse image metadataNo account on your site; fires for the user who inserts that Openverse image6.2
GHSA-xc9c-4hg4-h4jgMediumSQL injection in WP_Meta_Query through nested relation valuesWhoever reaches a plugin or theme that passes untrusted nested meta_query input4.7
GHSA-mcv9-c2pg-6m4vMediumSQL injection through the front page setting in Customizer previewsAdministrator; on multisite a site admin can read the shared database4.7
GHSA-56j2-5mp6-wr3xMediumDenial of service through batched XML-RPC pingbacksNo account4.7
GHSA-rcr3-43fx-wqfvMediumPrivate taxonomy terms such as menus leak through the REST search endpointNo account5.6
GHSA-p9x8-m3q4-9wg6MediumCommenter emails, IPs and private post comments leak through XML-RPC wp.getCommentsSubscriber and above4.7
GHSA-2frv-jg59-g699LowXSS in wp_interactivity_data_wp_context() through the store namespaceWhoever reaches a plugin or theme that passes an untrusted namespace6.5
GHSA-6955-723v-xvmmLowLoose JSON media type match that can help requests slip past upstream filtersHardening only, no direct vulnerability5.6
GHSA-jq8m-j7jq-c53mLowUser email addresses leak through the REST comments endpointAuthor and above4.7
GHSA-h24f-q5c7-c33gLowStored XSS through the Comment Date block date formatContributor and above6.0
GHSA-86p8-2wq3-x387LowXSS through scripts in oEmbed provider responsesContributor and above4.8
GHSA-v7qc-72mg-wgpcLowInformation leak through REST post and template author assignmentEditor and above on multisite4.7
GHSA-wx6p-jg9m-c5mjLowStored XSS through Customizer previewsAdministrator without unfiltered_html, such as a multisite site admin4.7
GHSA-qq5q-rw6p-gv4jLowAuthorization bypass when editing comments in the adminAuthor and above4.7
GHSA-g2r4-3wmg-48f7LowStored XSS through media filenames when a block is converted to a File blockContributor and above5.9

Read the table by who can reach the bug, not by severity alone. A single-author blog with comments closed and no multisite network is left with the unauthenticated XML-RPC and REST rows, plus the high-rated issues that need an Administrator to click a crafted link. A busy multisite network with open registration and dozens of Contributors is exposed to nearly all of it. The release post also lists a twentieth change, the removal of the Imgur embed variation, which is hardening rather than a fix.

Your exposure is wider than the minimum when any of these conditions holds on the site, so rank those sites first in the patch queue:

  • Visitors can post comments, and a Comments or Latest Comments block sits in post or page content.
  • The site is part of a multisite network where site Administrators are not also Super Admins.
  • Accounts at Contributor, Author or Editor level belong to people outside your team.
  • The /xmlrpc.php endpoint answers POST requests from the internet.

A site that meets none of them still needs the update. It just buys you a day to schedule it properly instead of patching in a hurry.

Fixed versions on every branch

Staying on an older branch is a valid choice, as long as it’s the last point release of that branch. The WordPress 7.1.5 release post confirms backports to all branches through 4.7, and the update API offered every one of these builds when we queried it. Find your branch on the left and make sure the site reports the version on the right.

BranchFixed inBranchFixed in
7.17.1.55.95.9.21
7.07.0.95.85.8.20
6.96.9.125.75.7.22
6.86.8.135.65.6.24
6.76.7.125.55.5.25
6.66.6.125.45.4.26
6.56.5.155.35.3.28
6.46.4.155.25.2.31
6.36.3.155.15.1.29
6.26.2.165.05.0.32
6.16.1.174.94.9.36
6.06.0.194.84.8.35
4.74.7.40

Two notes on the older builds. The release post says the 6.9.12 build and everything older also drop 1024-bit root certificates from the bundled certificate file. A plugin that still talks to an endpoint chained to one of those roots will start failing TLS checks. And a site older than 4.7 gets nothing at all: no backport exists, so that site needs a branch jump, not a point release.

The version your site runs right now

Do not trust the footer of the admin screen or a cached report from a plugin. Ask the install itself. WP-CLI reads the same version file WordPress loads, and its check-update subcommand asks the update API what is available for that exact build. If WP-CLI is not on the server yet, the official phar is a single file:

curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
sudo install -m 0755 wp-cli.phar /usr/local/bin/wp

Point a variable at your document root so the rest of the commands copy cleanly. Our lab used /var/www/site-a for the 7.1.4 site; yours is probably /var/www/html or a per-site directory.

export WP_PATH=/var/www/site-a

Run WP-CLI as the user that owns the files, which is www-data on Ubuntu and Debian. WP-CLI refuses to run as root unless you add --allow-root, and an update run that way leaves root-owned files in the docroot.

sudo -u www-data wp core version --extra --path="${WP_PATH}"
sudo -u www-data wp core check-update --path="${WP_PATH}"

On the 7.1.4 site the API offered 7.1.5 as a minor update with a partial package. The 6.9.11 site, checked the same way, got two rows: 6.9.12 as the minor update on its own branch and 7.1.5 as a major jump. Either minor build closes the advisories.

wp core version and wp core check-update on WordPress 7.1.4 and 6.9.11 showing 7.1.5 and 6.9.12 as minor updates

Without WP-CLI, the version string lives in one PHP file, and reading it needs no database access or login:

grep "wp_version =" "${WP_PATH}/wp-includes/version.php"

Our unpatched site answered with the line below. Anything lower than the fixed build for your branch in the table above means the site is exposed.

$wp_version = '7.1.4';

For a fleet, the same grep across every docroot gives a quick inventory. A scanner such as WPScan on Linux also reports the core version from outside, which is how an attacker sees it.

Core files that fail their checksums

Before patching, verify that core files match what WordPress shipped. A modified core file is a sign of an earlier compromise, and an update only replaces files it knows about. We ran wp core verify-checksums on the 7.1.4 site and it failed, though nothing had touched it since install.

sudo -u www-data wp core verify-checksums --path="${WP_PATH}"

A clean install prints one success line. Ours printed the warning below dozens of times.

Warning: File should not exist: wp-includes/php-ai-client/…

The output listed 25 files under wp-includes/php-ai-client that did not exist and 21 that should not, ending in Error: WordPress installation doesn't verify against checksums. The “should not exist” names were all clipped at about 90 characters as printed, which is 100 once the wordpress/ prefix inside the archive is counted. That site had been installed with wp core download, and WP-CLI’s tarball extraction cut the long paths of the AI client library the 7.1 branch ships. GNU tar lists the same tarball with full names:

tar tzf wordpress-7.1.4.tar.gz | awk 'length > 100' | grep -c php-ai-client

It counted 25 long paths, the same 25 files WP-CLI reported missing, so the release itself is fine. The same archive holds 14 long font paths under wp-content/themes, and verify-checksums never looks there. If a bundled theme renders with a fallback font after a wp core download install, that’s the reason.

Do not delete anything yet. The update restores the missing files, and the clipped leftovers are removed after it, in the next section. Any other file in the warning list, especially one in wp-admin or the docroot, is not this bug. Restore that site from a known good backup before you patch it.

Patching with WP-CLI

Take a database dump and a copy of wp-content first. A minor update rarely breaks anything, but this one touches comments, the Customizer and the REST API, and a plugin hooked deep into any of those can misbehave. With the backup done, the update itself is one command, followed by the database migration check:

sudo -u www-data wp core update --path="${WP_PATH}"
sudo -u www-data wp core update-db --path="${WP_PATH}"

WP-CLI pulled the no-content package, unpacked it and reported success. The warning about /var/www/.wp-cli/cache/ only means the www-data user has no writable home for the download cache; the update still completed. The database was already at revision 61833, so update-db had nothing to do on a minor release.

wp core update moving WordPress 7.1.4 to 7.1.5 with update-db and check-update confirming the latest version

On a site installed with wp core download, the update brings back the 25 missing files but leaves the clipped ones behind, so verification passes with 21 warnings. Read the warning list before deleting anything: every entry should sit under php-ai-client and end in a clipped name. If one does not, stop and treat that file as suspect. Once the list looks right, run this loop after the update to remove exactly what the checker flags:

sudo -u www-data wp core verify-checksums --path="${WP_PATH}" 2>&1 | sed -n 's/^Warning: File should not exist: //p' | while read -r f; do sudo rm -v "${WP_PATH}/$f"; done | tail -3

The next run of verify-checksums came back clean. The capture below starts with the run from before the update, trimmed where it says so, and then jumps to the cleanup after it; the update itself is the screenshot above.

wp core verify-checksums warnings for truncated php-ai-client file names and the cleanup loop that makes it pass

Proof the patch holds is three checks, not one: wp core version reports the fixed build, verify-checksums passes, and check-update prints Success: WordPress is at the latest version. On a 6.9 site, the last check still lists the major jump after the patch, which is expected and harmless.

Patching from the dashboard

A site without shell access gets the same build from Dashboard > Updates. Open Updates in the sidebar, read the Auto-update status line before anything else, then click Update to version 7.1.5. The status line on our 7.1.4 site said it was kept up to date with each new version of WordPress, which means major updates were on. The next section explains why that matters.

WordPress Updates screen on 7.1.4 with the auto-update status and the Update to version 7.1.5 button marked
  1. 1Updates
  2. 2Auto-update status
  3. 3Update to version 7.1.5

The site goes into maintenance mode while the files are replaced, then lands on the About screen, where Maintenance and Security Releases now lists the new build at the top.

WordPress About screen after the dashboard update listing version 7.1.5 under Maintenance and Security Releases

Go back to Updates to confirm. The screen should say you have the latest version, with no update button left on the page.

WordPress Updates screen reporting that the site runs the latest version 7.1.5

On a site with DISALLOW_FILE_MODS set, there is no update screen to act on, and when the web server user cannot write to the docroot, WordPress asks for FTP or SSH credentials after the click. Both are deliberate on hardened hosts, and both mean the patch should come from WP-CLI or your deploy pipeline instead.

Automatic updates that stay on your branch

Minor auto-updates are how most WordPress sites will get this release without anyone logging in, so confirm they’re on. The control is the WP_AUTO_UPDATE_CORE constant in wp-config.php, and two other constants can switch automatic updates off entirely. On our 6.9.11 site none of them was set:

sudo -u www-data wp config get WP_AUTO_UPDATE_CORE --path="${WP_PATH}"
sudo -u www-data wp config has AUTOMATIC_UPDATER_DISABLED --path="${WP_PATH}"; echo $?
sudo -u www-data wp config has DISALLOW_FILE_MODS --path="${WP_PATH}"; echo $?

The first command returned Error: The constant or variable 'WP_AUTO_UPDATE_CORE' is not defined in the 'wp-config.php' file. and both has checks exited with 1, meaning not defined. These checks only read wp-config.php; a plugin can still switch updates off through the automatic_updater_disabled or auto_update_core filters, so grep wp-content for those names too. That looks safe, and it is, but it surprised us. When we ran the version check cron on that fresh 6.9.11 install, it didn’t stop at 6.9.12. It went straight to 7.1.5, because a new install defaults to major core auto-updates, the same setting the dashboard showed as “kept up to date with each new version”.

A surprise branch jump on a production site, with plugins nobody tested against 7.1, is its own outage. We rebuilt the 6.9.11 site and set the constant to minor before the cron ran. This time it stopped at 6.9.12 and left the major jump for a human to schedule:

sudo -u www-data wp config set WP_AUTO_UPDATE_CORE minor --path="${WP_PATH}"
sudo -u www-data wp cron event run wp_version_check --path="${WP_PATH}"

The sendmail: not found line in the capture is the update notice email failing on a lab VM with no mail server. On a real host that email is your record that the update ran, so make sure it can be sent.

wp config set WP_AUTO_UPDATE_CORE minor keeping a WordPress 6.9.11 site on its branch at 6.9.12 after the version check cron

Auto-updates also depend on WP-Cron firing. A site with DISABLE_WP_CRON set and no system cron job calling wp cron event run --due-now never checks for updates at all, whatever the constant says. Our lab sites had WP-Cron disabled, which is why we triggered the check by hand.

Stopgaps for a site that can’t update today

Nothing below replaces the update. These controls shrink what an attacker can reach while you wait for a change window, a vendor-locked host or a plugin fix. Each row names what it closes and what it leaves open, so you can see the gap that remains.

ControlClosesLeaves open
Deny /xmlrpc.php at nginx or the WAFGHSA-56j2 pingback flood, GHSA-p9x8 wp.getComments leakEvery REST, editor and comment issue; breaks any client or plugin that still talks XML-RPC
Hold every comment for moderationGHSA-cr2m stays off public pages until someone approves the commentComments you approve; remove Comments and Latest Comments blocks from post content for full cover
Turn off Openverse in the block editorGHSA-jmhpEvery other editor issue
Audit Contributor, Author and Editor accountsThe logged-in paths of GHSA-pmp8, h24f, 86p8, g2r4, jq8m and qq5qThe unauthenticated link path of GHSA-pmp8 and GHSA-gm52
Users who can edit posts or upload files do not open editor or media links they did not createThe crafted link paths of GHSA-pmp8 and GHSA-gm52Depends on people; treat it as a reminder, not a control
WAF virtual patch from your vendorWhatever rules your vendor actually shipped for these GHSA IDsAnything that reaches the origin directly; we did not test any vendor ruleset
Allow only the CDN or WAF ranges to reach port 443Requests that bypass the WAF by hitting the origin IPAttacks that come through the CDN itself

The last row is what makes a WAF rule worth having. If the origin answers on its public IP, an attacker skips the edge entirely. On a firewalld host, rich rules that accept 443 only from your CDN’s published ranges close that path, and the firewalld cheat sheet on zones, ports and rich rules covers the syntax for Rocky Linux and Ubuntu. For Cloudflare custom rules that block a path at the edge, our PHP2Shell mitigation guide walks through the same pattern.

Blocking XML-RPC in nginx

First check that the endpoint is live and offering the methods the advisories name. Asking it for its method list is harmless and needs no login:

curl -s -X POST -H 'Content-Type: text/xml' --data '<?xml version="1.0"?><methodCall><methodName>system.listMethods</methodName></methodCall>' https://example.com/xmlrpc.php | grep -oE 'pingback\.[a-zA-Z]+|system\.multicall|wp\.getComments'

On our 7.1.4 site it returned all three of the methods that matter here:

  • system.multicall is listed, so one request can batch many calls.
  • pingback.ping is listed, and it needs no login.
  • wp.getComments is listed, and a Subscriber login is enough to call it.

The xmlrpc_enabled filter that many hardening plugins use only switches off methods that need a login, so pingbacks keep working behind it. Block the file in the web server instead:

echo 'location = /xmlrpc.php { deny all; access_log off; log_not_found off; }' | sudo tee /etc/nginx/snippets/block-xmlrpc.conf

Include the snippet inside the site’s server block. Open the vhost file:

sudo vim /etc/nginx/sites-available/example.com

Add this line under the index directive, then save:

include snippets/block-xmlrpc.conf;

Test the syntax, reload, and prove the block holds with a POST to the endpoint:

sudo nginx -t && sudo systemctl reload nginx
curl -s -o /dev/null -w '%{http_code}\n' -X POST https://example.com/xmlrpc.php

Our first curl, sent straight after the reload, still got 200 from an old worker. The second one got 403. Always check twice before you call it done, and check from outside the server too, because a CDN can cache or route the request differently.

nginx location block denying xmlrpc.php with curl returning 403 after the reload

Pair the block with Fail2ban on Ubuntu 26.04 if the access log keeps filling with denied XML-RPC requests from the same addresses. If nginx itself is behind on patches, the nginx CVE-2026-93479 check covers that side of the stack.

Holding comments for moderation

The comment XSS only renders when the comment is published. In Settings > Discussion, tick Comment must be manually approved and save. The box below it, which lets a commenter through once they have one approved comment, was already ticked on our install, and that’s the gap: a returning commenter skips the queue unless manual approval is on.

WordPress Discussion Settings with the Comment must be manually approved checkbox marked

Don’t approve anything in the queue that contains square-bracket shortcode syntax until the site is patched. Approving it puts the payload on the page, which is exactly what the setting is there to prevent.

Turning off Openverse in the editor

The Openverse issue needs an editor user to search Openverse and insert an image, so removing the media category from the inserter closes it. A must-use plugin does that in one line and cannot be deactivated from the dashboard:

sudo mkdir -p "${WP_PATH}/wp-content/mu-plugins"
echo '<?php add_filter( "block_editor_settings_all", function ( $s ) { $s["enableOpenverseMediaCategory"] = false; return $s; } );' | sudo tee "${WP_PATH}/wp-content/mu-plugins/disable-openverse.php"
sudo chown -R www-data: "${WP_PATH}/wp-content/mu-plugins"
php -l "${WP_PATH}/wp-content/mu-plugins/disable-openverse.php"

php -l returned No syntax errors detected, and the block editor on our patched site then reported enableOpenverseMediaCategory as false. Keep the file after you patch if nobody on the site uses Openverse; it’s one less third-party feed rendering into your editor.

Post-patch audit checklist

Run this on every site once the update is in, and keep the output with your change record. A site that fails any line is not done. The same checks apply to the sites in our WordPress on Ubuntu 26.04 build, and they carry over from the earlier CVE-2026-87902 patch.

  1. wp core version reports the fixed build for the site’s branch from the table above.
  2. wp core verify-checksums ends in Success with no warnings outside the truncated php-ai-client names, which you then removed.
  3. wp config get WP_AUTO_UPDATE_CORE returns minor, or true on a site where someone owns the risk of major jumps.
  4. WP-Cron fires, either from traffic or from a system cron job, and the update notice email reaches a monitored inbox.
  5. A POST to /xmlrpc.php returns 403 from outside the network, unless a named client still needs XML-RPC.
  6. The user list holds no Contributor, Author or Editor account that nobody can vouch for.
  7. The origin accepts port 443 only from the CDN or WAF ranges when a WAF sits in front of it.

The stopgaps can stay once the patch is in. Moderation, a closed XML-RPC endpoint and a locked-down origin each close a class of bug, not just this month’s, and the next WordPress security release will find a smaller surface to land on.

Keep reading

Java4Shell (CVE-2026-114938): Find and Patch Vulnerable JVMs Security Java4Shell (CVE-2026-114938): Find and Patch Vulnerable JVMs UFW Firewall Commands with Examples on Ubuntu 26.04 / 24.04 Security UFW Firewall Commands with Examples on Ubuntu 26.04 / 24.04 nginx HTTP/2 RCE CVE-2026-123007: Check, Disable HTTP/2, Patch Security nginx HTTP/2 RCE CVE-2026-123007: Check, Disable HTTP/2, Patch GL.iNet Security Notice: Check Your Router for Malware and Update Networking GL.iNet Security Notice: Check Your Router for Malware and Update Flatpak 1.18.6 Sandbox Escape CVEs: Check Version and Patch Security Flatpak 1.18.6 Sandbox Escape CVEs: Check Version and Patch How Evolving Email Security Practices Have Influenced Modern Cybersecurity Email How Evolving Email Security Practices Have Influenced Modern Cybersecurity

Leave a Comment

Press ESC to close