WordPress 7.1.5 has been released with fixes for 20 security issues, including SQL injection, cross-site scripting (XSS), and privilege escalation. The release addresses several vulnerabilities that can be exploited without authentication, including one involving Template Part block attributes that could lead to remote code execution.
This marks the eight security release this year, following WordPress 7.0.2 on July 17 that fixed critical RCE and SQL injection vulnerabilities, 7.0.3 released on August 6 with fixes for 12 security vulnerabilities, 7.0.4 patched Author-Level RCE via malicious file upload on August 12, 7.1.1 provided patches for 11 security issues on September 17, 7.1.2 on September 22, and 7.1.3 on October 6 and 7.1.4 on October 28.
Privilege escalation, SQL injection, and XSS vulnerabilities
One of the vulnerabilities addressed in this release involves privilege escalation through Template Part block attributes, reported by Logan Homolka. The issue could allow an unauthenticated attacker to manipulate REST API request paths when an editor or administrator opens malicious block content. According to Patchstack, “It counts as unauthenticated because the attacker only has to get the block markup in front of someone who can open it.” The vulnerability could potentially lead to remote code execution through the administrator’s plugin-installation capabilities.
Another privilege escalation vulnerability affects WordPress Multisite. Reported by Yuval Miller, it could allow a site Administrator to take over a Super Admin account through Customizer menu previews.
Anthropic reported two vulnerabilities in this release, marking its fifth contribution to a WordPress core security release this year. The first is a reflected cross-site scripting (XSS) vulnerability in the legacy media library popup. The second is an unauthenticated information disclosure vulnerability that exposes private taxonomy terms through the REST API search endpoint.
The release also fixes two SQL injection vulnerabilities. Christiaan Swiers reported an issue in WP_Meta_Query involving nested relation values, which can be exploited without authentication when a caller passes request data into meta_query.
Members of the WordPress Security Team reported several other vulnerabilities. Rudy Faile reported the second SQL injection vulnerability through the front page setting in Customizer changeset previews. Weston Ruter reported stored XSS through Customizer previews, while Weston Ruter and Jeremy Felt reported stored XSS in the Comment Date block through its date format.
Ben Bidner reported an information disclosure vulnerability exposing user email addresses through the REST API comments endpoint, and Jarda Snajdr reported information disclosure involving post and template author assignment through the REST API. Mo Jangda also reported a malformed regular expression that broadened JSON media type matching, which was addressed as a hardening measure.
Other XSS fixes include an issue in wp_interactivity_data_wp_context() through the store namespace, reported by Juliette Reinders Folmer, and stored XSS through shortcode attributes in comments, reported by Rafie Muhammad of Awesome Motive, Inc. vvh1te3zz reported XSS through scripts in oEmbed provider responses, while Shu Takahashi reported an issue involving Openverse image metadata in the block editor. CryptoFox reported stored XSS through media filenames when converting a media block to a File block.
The remaining fixes include an unauthenticated denial-of-service vulnerability involving batched XML-RPC pingbacks, reported by Giovanni Cintolo (founder of Dynamic.coo and Novamira), and an authorization bypass involving comment editing in the admin area, reported by Jesse McNeil. Jaewook Lee reported an information disclosure vulnerability through XML-RPC’s wp.getComments method, which could expose commenter email addresses and IP addresses.
The other hardening change removes the block editor’s Imgur embed variation because its server-side provider is no longer available. This was reported by Zhengyu Liu, Jingcheng Yang, and Gavin Zhong.
Patchstack notes that five fixes came through a Gutenberg package update rather than the core PHP backport. These changes are included in the release even though they do not appear in the official list of revised core files.
The security fixes have also been backported to WordPress branches eligible to receive security updates, currently extending back to version 4.7. WordPress 7.2 RC 2 has also been released with all applicable fixes.
WordPress 7.2 is scheduled to be released on December 8.