All vulnerabilities

WordPress core

GHSA-cr2m-2j4r-3v3x

An unauthenticated stored cross-site scripting (XSS) issue via shortcode attributes in comments

Severity
High
Published
18 Nov 2026
Last changed
18 Nov 2026
Added to UpHeron
19 Nov 2026
Fixed in
6.6.12, 6.7.12, 6.8.13, 6.9.12, 7.0.9, 7.1.5
Sources
WordPress

Description

An unauthenticated visitor could post a comment containing a shortcode whose escaped attribute value decoded into HTML after the comment was sanitized. Where a Comments or Latest Comments block was placed in post content, that markup was rendered under the post allowlist, which allowed stored cross-site scripting.

WordPress 7.1.5 has been released containing a fix for the vulnerability, and as a courtesy to users on older branches the fix has been backported to all branches back to 4.7.

Discovered and responsibly disclosed by rafiem.

From WordPress/wordpress-develop's security advisory.

Affected software

SoftwareAffected versions
WordPressWordPress core · cpe:a:wordpress:wordpress
  • From 7.1.0 before 7.1.5
  • From 7.0.0 before 7.0.9
  • From 6.9.0 before 6.9.12
  • From 6.8.0 before 6.8.13
All 25 release lines
  • From 4.7.0 before 4.7.40
  • From 4.8.0 before 4.8.35
  • From 4.9.0 before 4.9.36
  • From 5.0.0 before 5.0.32
  • From 5.1.0 before 5.1.29
  • From 5.2.0 before 5.2.31
  • From 5.3.0 before 5.3.28
  • From 5.4.0 before 5.4.26
  • From 5.5.0 before 5.5.25
  • From 5.6.0 before 5.6.24
  • From 5.7.0 before 5.7.22
  • From 5.8.0 before 5.8.20
  • From 5.9.0 before 5.9.21
  • From 6.0.0 before 6.0.19
  • From 6.1.0 before 6.1.17
  • From 6.2.0 before 6.2.16
  • From 6.3.0 before 6.3.15
  • From 6.4.0 before 6.4.15
  • From 6.5.0 before 6.5.15
  • From 6.6.0 before 6.6.12
  • From 6.7.0 before 6.7.12
  • From 6.8.0 before 6.8.13
  • From 6.9.0 before 6.9.12
  • From 7.0.0 before 7.0.9
  • From 7.1.0 before 7.1.5

About WordPress

content management system

From Wikidata, CC0 1.0.
Share of websites with a known CMS
57.6%W3Techs, Nov 2026
Developers who used it in the past year
13.6%Stack Overflow Developer Survey 2025, 2025
Docker Hub pulls
1,510,625,792Docker Hub, 15 Nov 2026
GitHub stars
21,544GitHub, 15 Nov 2026
Forks
13,040GitHub, 15 Nov 2026
Developer
WordPress FoundationWikidata
License
GNU General Public License, version 2.0 or laterWikidata
Written in
PHP, JavaScriptWikidata
First released
27 May 2003Wikidata
First published on GitHub
1 Dec 2011GitHub

Release lines

ReleaseLatestSecurity fixes
7.17.1.4Yes
7.07.0.8Yes
6.96.9.11Yes
6.86.8.12Yes
6.76.7.11Yes
6.66.6.11Yes

From endoflife.date.

References