All posts

WordPress 7.1.5 fixes 20 advisories: update, and check which of them apply to you.

WordPress 7.1.5 and the backports to 4.7 fix 20 advisories on GitHub, six rated High, from a Template Part block flaw to comment XSS. Versions, who is exposed, how to check.

Published
Reading time
8 min
By
Girish Babu GV

What happened#

The WordPress project publishes its security advisories on the wordpress-develop repository on GitHub. On 18 November it published 19 of them, and each one I read says the fix is in WordPress 7.1.5 and was backported to older branches. The repository’s tag page shows 7.1.5, 7.0.9, 6.9.12, 6.8.13 and 6.7.12 as the newest tags, plus 6.6.12, 6.5.15, 6.4.15, 6.3.15 and 6.2.16, all dated 18 November. The history of the 7.1 branch shows a commit titled “Security: Backport the WordPress 7.1.5 security fixes to the 7.1 branch”, followed by the “WordPress 7.1.5.” release commit. The commit list doesn’t say which vulnerabilities each commit addresses.

Counting the two pages of the list I read, there are 20 advisories: 19 from 18 November, and an older one from 29 October (GHSA-83c2-c4pc-wmp3, Interactivity API bindings) that the advisory says was fixed in 7.1.4. By the severity labels on the list, six are High, five are Moderate and nine are Low. None of the advisories I read has a CVE number, and none shows a CVSS score. The severity words are the project’s own.

The six rated High#

High-severity advisories, as described on their GitHub pages
AdvisoryWhat the advisory saysNeeds
GHSA-pmp8-6cv8-q323Template Part block attributes make an Administrator’s editor send requests to another URL on the same site; the advisory says this could create an Administrator account for the attacker, and allow code execution through plugin upload.An Author or above to set the attributes in a post, and an Administrator to open a crafted link
GHSA-cr2m-2j4r-3v3xStored XSS: a comment with a shortcode whose escaped attribute decodes into HTML after sanitization, rendered by a Comments or Latest Comments block in post content.No login to submit the comment; a Comments or Latest Comments block in post content
GHSA-mwj7-xhp9-7773Multisite: a site Administrator can reuse a Customizer widget hash as the signature for nav menu refresh arguments and take over a Super Admin account.Multisite, a site Administrator, and a classic theme with widgets enabled
GHSA-gm52-6h3w-97v4Reflected XSS in the legacy media library popup: a REST API error on that page can print attacker markup into the HTML.A logged-in user who can upload files opening a crafted link
GHSA-jmhp-hg7w-w9c5XSS in the block editor: Openverse creator metadata was added to an inserted image’s caption without escaping.Someone inserting an image from the editor’s Openverse search
GHSA-83c2-c4pc-wmp3Stored XSS and denial of service in Interactivity API bindings (inherited property lookups reaching innerHTML, __proto__ as a directive name and more). Fixed in 7.1.4 on 29 October.A Contributor or above

The Template Part advisory is the one to read first, and it is worth being precise about it. Its title calls it an “unauthenticated privilege escalation”, but its description describes a chain: a user with the Author role or above can set the block’s theme and slug attributes in a post, and an unauthenticated attacker then has to get an Administrator to open a crafted editor link. The advisory doesn’t say how many sites have an Author-level account an attacker can use, and it doesn’t say whether anyone has exploited it.

The comment XSS (GHSA-cr2m-2j4r-3v3x) is the other one with no login on the attacker’s side, but the advisory ties it to a Comments or Latest Comments block appearing in post content, so how exposed a site is depends on its templates and content.

The rest of the list#

Moderate advisories, as described on their GitHub pages
AdvisoryWhat the advisory says
GHSA-xc9c-4hg4-h4jgSQL injection in WP_Meta_Query: the “relation” value of some nested clauses wasn’t sanitized, so a plugin or theme that passes untrusted nested meta_query input can allow read access to the database.
GHSA-mcv9-c2pg-6m4vSQL injection via the front page setting in Customizer changeset previews. Creating the changeset needs manage_options; on multisite a site Administrator could read the shared database, including network tables such as users.
GHSA-rcr3-43fx-wqfvUnauthenticated information disclosure: combining the term search type with a post subtype in the REST API search endpoint returned terms from every taxonomy, including private ones such as navigation menus.
GHSA-56j2-5mp6-wr3xUnauthenticated denial of service: batched pingbacks through XML-RPC system.multicall, each pausing the request for a second and making an outbound HTTP request, can tie up a PHP worker.
GHSA-p9x8-m3q4-9wg6Subscriber-level information disclosure via XML-RPC wp.getComments (title and severity only; I did not open it).

The nine Low items, which I read by title only, are: a Contributor-level stored XSS in the block editor via media filenames, an Author-level authorization bypass via comment editing in the admin, an Administrator-level stored XSS via Customizer previews, an Editor-level information disclosure via post and template author assignment in the REST API, a Contributor-level XSS via oEmbed provider responses, a Contributor-level stored XSS in the Comment Date block, an Author-level disclosure of user email addresses via the REST API comments endpoint, an XSS in wp_interactivity_data_wp_context(), and a hardening fix for a malformed regular expression that broadened JSON media type matching.

Am I affected?#

The advisories I read list the same pattern: affected from the first release of a branch up to the version before its fix. They differ in how far back they go, so the table shows the current lines and the older ones are summarized below it.

Affected and fixed versions, from the Template Part and comment XSS advisories
BranchAffectedFixed in
7.17.1.0 to 7.1.47.1.5
7.07.0.0 to 7.0.87.0.9
6.96.9.0 to 6.9.116.9.12
6.86.8.0 to 6.8.126.8.13
6.76.7.0 to 6.7.116.7.12
6.66.6.0 to 6.6.116.6.12

Older branches were patched too. The Template Part advisory lists backports down to 5.9 (5.9.21), and the comment XSS advisory lists every branch back to 4.7 (4.7.40). Whether a site is in scope for a given advisory then depends on what it runs: multisite for the Super Admin takeover, a classic theme with widgets for that same one, a Comments block for the comment XSS, and plugins or themes that build meta_query from user input for the SQL injection.

What to do now#

  1. Check the version of every site you run or manage, including staging copies and old client sites.
  2. Update to the fixed release for the branch (7.1.5, 7.0.9, 6.9.12 and so on). The advisories list no workaround, so updating is the fix.
  3. On multisite, treat the Super Admin takeover as the priority and update the network, not just individual sites.
  4. Review your own code: search your plugins, themes and mu-plugins for places that pass request data into meta_query, because the SQL injection advisory describes exactly that exposure.
  5. Look at Administrator accounts and installed plugins if a site was exposed for a while. The advisory describes new Administrator accounts and plugin upload as the route for the Template Part flaw, but it doesn’t say what traces an attempt would leave, so this is general hygiene, not guidance from the advisory.
Check and update with WP-CLI
# Which version is this site on?
wp core version

# Is an update available for it?
wp core check-update

# Update core (take a backup first)
wp core update

# Multisite: list the sites, then check them
wp site list --field=url

# Review Administrator accounts
wp user list --role=administrator --fields=ID,user_login,user_email,user_registered

The advisories don’t mention automatic background updates, so I can’t say from them whether a given site has already updated itself. Check the version rather than assuming.

If WordPress is your headless back end#

Two of the advisories touch the REST API that headless front ends rely on: GHSA-rcr3 (private taxonomy terms returned from the search endpoint to unauthenticated visitors) and the Author-level disclosure of user email addresses through the comments endpoint. Both are fixed in the core update, so the origin needs the update even when visitors never see WordPress directly. I wrote about the same idea after the PHP flaws in October: the front end is not the weak point, the origin is.

How I checked this site#

This portfolio is a Next.js project on Vercel. I searched its source and package.json outside the blog for wp-json, wp-content and WordPress code and found no WordPress install, REST calls to one or a WordPress dependency (the matches were text about my work, topic styling and blog tags), so none of this applies to the site itself. I work with WordPress, including headless setups, so I am telling you what the advisories say, not what I found on my own sites.

What the sources don’t say#

  • Whether anyone has exploited any of these. None of the advisories I read says.
  • CVE numbers or CVSS scores. The ones I read list none; the severity labels are the project’s.
  • Whether auto-updates have rolled the fix out to your site.
  • Any workaround for a site that can’t update today. None is listed.
  • The ten advisories I read only by title: I haven’t checked their ranges or details.
  • What the 7.1.5 release announcement says, because I couldn’t read it.

My take#

My own opinion, not from the advisories.

Twenty advisories is a lot to read, but the useful split is simple: the first question is “which branch am I on?”, and the second is “do I run multisite, comment blocks or custom meta queries?”. For most single sites the whole answer is one update. The part worth the extra time is the SQL injection note, because that one lives in plugin and theme code you wrote or installed, and a core update can’t audit that for you.

Sources#

Keep reading

Esc